Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Execute Tophat Via Java

    Hi all,

    I'm trying to run tophat via an Java interface. With other mapping tools like bowtie etc. it works perfect. If i execute the tophat start command via java runtime exec() it doesn't work!
    But if i copy the command into the shell it works fine...so what is wrong?!
    Is it becaue of the nested program structure, that java doesn't allow tophat to execute bowtie??

    Can anyone help me or has experiences about that??

    Cheers!
    Steve

  • #2
    Do you read output and error streams of the process? Probably the buffers are just full.

    Comment


    • #3
      Jap...i do......and the errorstream always says that bowtie ca not be found....but it's in the PATH

      Comment


      • #4
        Which form of exec are you using? Some of them allow you to specify the environment the command is run in and maybe you're accidentally resetting the path?

        Comment


        • #5
          Does it work with absolute path then?

          Comment


          • #6
            Java Runtime.exec(String command) should inherit the environment of the parent processes unless you overwrite it.

            Two options for figure out what's wrong:
            1- look at the output of: getRuntime.exec("echo $PATH"). This assumes a unix-y environment (linux/mac). This will tell you if your path is set up properly.
            2- give it the the PATH specifically in exec("command", new String[]{"PATH=path/goes/here"};

            vadim: what do you mean with absolute path? You need a working $PATH with tophat because it needs to find the bowtie executable.

            Comment


            • #7
              Originally posted by fpepin View Post
              vadim: what do you mean with absolute path? You need a working $PATH with tophat because it needs to find the bowtie executable.
              Given that tophat works fine from command line I assumed that bowtie is already in $PATH. Therefore something could be wrong with tophat itself, for example it is not in $PATH. But you are right, first of all we need to see the output and errors from the process.

              Comment

              Latest Articles

              Collapse

              • seqadmin
                Investigating the Gut Microbiome Through Diet and Spatial Biology
                by seqadmin




                The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...
                02-24-2025, 06:31 AM
              • seqadmin
                Quality Control Essentials for Next-Generation Sequencing Workflows
                by seqadmin




                Like all molecular biology applications, next-generation sequencing (NGS) workflows require diligent quality control (QC) measures to ensure accurate and reproducible results. Proper QC begins at nucleic acid extraction and continues all the way through to data analysis. This article outlines the key QC steps in an NGS workflow, along with the commonly used tools and techniques.

                Nucleic Acid Quality Control
                Preparing for NGS starts with isolating the...
                02-10-2025, 01:58 PM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by seqadmin, 03-03-2025, 01:15 PM
              0 responses
              28 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 02-28-2025, 12:58 PM
              0 responses
              124 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 02-24-2025, 02:48 PM
              0 responses
              485 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 02-21-2025, 02:46 PM
              0 responses
              241 views
              0 likes
              Last Post seqadmin  
              Working...
              X