Seqanswers Leaderboard Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ercfrtz
    Member
    • Aug 2010
    • 23

    BWA in the background

    I searched for this but did not find a thread on the subject. I am trying to run BWA in the background. I tried running the command with an ampersand (&) and it didn't work. I tried the following:

    command line > output1>&output2 &

    And that didn't work. It just ends up starting the job and then stopping. I tried sending the stopped job to the background with bg and it just ended up trying to start the job and then stopping it again.

    Is there a way to run a bwa job in the background so I can close the terminal I have open to the server without it killing the job?
  • themerlin
    Member
    • Feb 2010
    • 51

    #2
    What if you put "nohup" before the command and a "&" after the command? This should let the command run in the background with all screen output directed to nohup.out

    -Jason

    Comment

    • ercfrtz
      Member
      • Aug 2010
      • 23

      #3
      That just stops the job as well.

      Edit:

      It looks like this is actually working so far. I will see if I get the output I desire. Thanks.
      Last edited by ercfrtz; 04-19-2011, 10:58 AM. Reason: Clarification

      Comment

      • iansealy
        Member
        • Oct 2010
        • 15

        #4
        Alternatively, try using screen. It's extremely useful for this kind of thing.

        Comment

        • Richard Finney
          Senior Member
          • Feb 2009
          • 701

          #5
          watch your spaces in the command line

          Try this:

          jobwhatever > output1 2> error2 &

          Based on what I can copy/paste from your post, you are writing all output (stdout AND stderr) to one file : output2.

          Comment

          • robs
            Senior Member
            • May 2010
            • 116

            #6
            The first & sign would only be useful if you want to write the standout and stderr to the same file:

            jobwhatever >output1 2>&1 &

            Otherwise, Richard's command will do the job.

            Comment

            • lh3
              Senior Member
              • Feb 2008
              • 686

              #7
              Originally posted by robs View Post
              The first & sign would only be useful if you want to write the standout and stderr to the same file:

              jobwhatever >output1 2>&1 &

              Otherwise, Richard's command will do the job.
              Please don't do this way. For bwa, stdout and stderr must be separated.

              Comment

              • robs
                Senior Member
                • May 2010
                • 116

                #8
                The comment was meant for the general case and not particularly for BWA (that's why is says "jobwhatever").

                I agree that for BWA that is not the command you would want to use.

                Comment

                Latest Articles

                Collapse

                • seqadmin
                  New Genomics Tools and Methods Shared at AGBT 2025
                  by seqadmin


                  This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

                  The Headliner
                  The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
                  03-03-2025, 01:39 PM
                • 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

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by seqadmin, Today, 05:03 AM
                0 responses
                15 views
                0 reactions
                Last Post seqadmin  
                Started by seqadmin, Yesterday, 07:27 AM
                0 responses
                13 views
                0 reactions
                Last Post seqadmin  
                Started by seqadmin, 03-18-2025, 12:50 PM
                0 responses
                15 views
                0 reactions
                Last Post seqadmin  
                Started by seqadmin, 03-03-2025, 01:15 PM
                0 responses
                185 views
                0 reactions
                Last Post seqadmin  
                Working...