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
                Recent Advances in Sequencing Analysis Tools
                by seqadmin


                The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
                05-06-2024, 07:48 AM
              • seqadmin
                Essential Discoveries and Tools in Epitranscriptomics
                by seqadmin




                The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
                04-22-2024, 07:01 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by seqadmin, Today, 06:35 AM
              0 responses
              10 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, Yesterday, 02:46 PM
              0 responses
              16 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 05-07-2024, 06:57 AM
              0 responses
              15 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 05-06-2024, 07:17 AM
              0 responses
              18 views
              0 likes
              Last Post seqadmin  
              Working...
              X