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 Innovations in Spatial Biology
                by seqadmin


                Spatial biology is an exciting field that encompasses a wide range of techniques and technologies aimed at mapping the organization and interactions of various biomolecules in their native environments. As this area of research progresses, new tools and methodologies are being introduced, accompanied by efforts to establish benchmarking standards and drive technological innovation.

                3D Genomics
                While spatial biology often involves studying proteins and RNAs in their...
                01-01-2025, 07:30 PM
              • seqadmin
                Advancing Precision Medicine for Rare Diseases in Children
                by seqadmin




                Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
                12-16-2024, 07:57 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by seqadmin, 01-09-2025, 04:04 PM
              0 responses
              433 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 01-09-2025, 09:42 AM
              0 responses
              441 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 01-08-2025, 03:17 PM
              0 responses
              456 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 01-03-2025, 11:18 AM
              1 response
              50 views
              1 like
              Last Post Tonia
              by Tonia
               
              Working...
              X