Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TKTKTK
    Member
    • Jan 2014
    • 11

    #16
    I'm not sure if the problem is running up against my computation time limit - the job I specify to the scheduler is listed as completed in much less than the time allotted, and I am only running alignment on one individual to my reference at a time.

    I'm currently submitting jobs with different thread values, and in my output I receive a message indicating the number of reads processed in the initial iteration of bwa-mem, but there aren't any additional iterations of this output before I receive a list of all of the nodes in my reference assembly, and then what appears to be the sam formatted bwa mem alignment output.

    One thing I am curious about is how the output for bwa mem is presented and stored. Is there normally separate output in the terminal for bwa mem's run details (# of reads processed, iteration, etc), and only the sam formatted alignment data is written into the .sam file, or is all of this information included in the .sam file specified using ">"?
    In the scheduling system I'm working on, all of this information is written into a user-specified output file using "-o", and when I use the ">" command, bwa mem writes an additional blank file. All of the bwa mem run details and the sam format data appear to be written into the output file.

    I'm wondering if additional reads are being processed after the first sam formatted alignment output, but I can't see it because it's buried ~400,000 lines in my output file.
    Hopefully this isn't the case, but I'm wondering if there is any easy way to check?

    Comment

    • dpryan
      Devon Ryan
      • Jul 2011
      • 3478

      #17
      Ah. So the trick here is to write a little shell script that runs bwa and uses redirection (">") internally. You then schedule that to run and you'll find that you suddenly don't have blank SAM files.

      BTW, bwa will only write the alignments to the file specified with ">" (at the moment, it's not being told to do that, since the commands you're using to schedule things are getting that).

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #18
        If you are using LSF then you could enclose the entire bwa command in double quotes. The file redirect will then work.

        Comment

        • TKTKTK
          Member
          • Jan 2014
          • 11

          #19
          @dpryan - I'm fairly new to this stuff, what do you mean by getting bwa to run internally? Do you mean that I write a script with run details for bwa mem in it with the specified output, and then submit a scheduled job for that script?

          @GenoMax - the scheduling environment is SQ, which is a unified frontend for LSF+RMS and Maui+Torque. I'm not sure which scheduling environment I'm actually working in beyond that, is there usually something equivalent to your double quotes solution for other schedulers?

          Comment

          • dpryan
            Devon Ryan
            • Jul 2011
            • 3478

            #20
            Yes, that's what I mean.

            Comment

            • GenoMax
              Senior Member
              • Feb 2008
              • 7142

              #21
              @TKTKTK: Here are some examples of job submissions under SQ: https://www.sharcnet.ca/help/index.p...mmand_to_SQ.3F. After the SQ options you can try enclosing the remainder of the bwa command in double quoutes (all the way to the end including all bwa options). This works for LSF alone and may for SQ.

              There is also an example of the wrapper script that Devon was referring to at the link above (scroll down on the page).

              Comment

              • TKTKTK
                Member
                • Jan 2014
                • 11

                #22
                Thanks for everyone's advice - running a script through the scheduler worked - the specified .sam file was written correctly, and I was able to confirm that bwa mem ran multiple iterations through the log file.

                Comment

                Latest Articles

                Collapse

                • SEQadmin2
                  Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                  by SEQadmin2



                  Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                  Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                  ...
                  10-14-2026, 09:55 AM
                • SEQadmin2
                  New Genomics Technologies Take Aim at Long-Standing Limits
                  by SEQadmin2


                  Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                  We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                  ...
                  09-28-2026, 10:25 AM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by SEQadmin2, 10-15-2026, 10:52 AM
                0 responses
                31 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-14-2026, 05:39 AM
                0 responses
                39 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-13-2026, 09:56 AM
                0 responses
                31 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 10-09-2026, 11:14 AM
                0 responses
                29 views
                0 reactions
                Last Post SEQadmin2  
                Working...