Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #16
    Look into freebayes. There is samtools/bcftools based option as well.

    Comment

    • cmccabe
      Senior Member
      • Jul 2012
      • 355

      #17
      sorted bam and bbmap

      Is there an option for bbmap that will result in a sorted bam? I know adding "out=mapped.bam" this will produce a bam but it appears to be unsorted:

      Code:
      samtools view -H /home/cmccabe/IDP/mapped_unmatched_adapter_removed_quality_trimmed_NA12878-NextSeq-S1_R1_and_R2.bam
      @HD	VN:1.4	SO:unsorted
      Thank you .

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #18
        No. You have to do some work

        Code:
        $ samtools sort your_file.bam your_file_sorted

        Comment

        • cmccabe
          Senior Member
          • Jul 2012
          • 355

          #19
          just checking, thank you .

          bbmap is amazingly fast and accurate . Great tool.

          Comment

          • Brian Bushnell
            Super Moderator
            • Jan 2014
            • 2709

            #20
            Originally posted by GenoMax View Post
            No. You have to do some work

            Code:
            $ samtools sort your_file.bam your_file_sorted
            Of course, I do my best to prevent needing people to do work, so...

            Code:
            bbmap.sh in=reads.fq out=mapped.bam bs=bs.sh; sh bs.sh
            That will write a script "bs.sh" that contains the command to make a sorted, indexed bam file, then execute it after BBMap is done. It saves... well, at least a couple of keystrokes

            Comment

            • GenoMax
              Senior Member
              • Feb 2008
              • 7142

              #21
              Hmm. I should start a new thread for "Easter eggs" in BBMap

              Comment

              • westerman
                Rick Westerman
                • Jun 2008
                • 1104

                #22
                Couldn't you create the shell script and then execute it within BBMap?

                Comment

                • Brian Bushnell
                  Super Moderator
                  • Jan 2014
                  • 2709

                  #23
                  Originally posted by westerman View Post
                  Couldn't you create the shell script and then execute it within BBMap?
                  Unfortunately, not easily, due to memory constraints. BBMap's shell script already grabs all available memory by default. It can launch a samtools process for conversion to bam, which is a low-memory streaming process; but sorting uses a lot of memory (to do it most efficiently), so it might run out of memory. Java cannot reduce its virtual memory allocation after starting, and won't share that memory with other programs.

                  It would work fine on most individual computers since physical memory limits would never be exceeded, but job schedulers often have strict limits on virtual memory and will kill jobs that exceed it. So, it would reduce stability (and typically fail) on clusters unless I did parsing in the shellscript to launch a new process after BBMap terminates, or the user launched BBMap with a custom -Xmx flag. I try to keep the shellscripts as simple as possible. Anyway, there are workarounds, but they all add complexity due to memory issues.

                  Comment

                  Latest Articles

                  Collapse

                  • SEQadmin2
                    Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                    by SEQadmin2



                    Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                    ...
                    07-09-2026, 11:10 AM
                  • SEQadmin2
                    Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                    by SEQadmin2



                    Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                    There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                    07-08-2026, 05:17 AM
                  • GATTACAT
                    Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                    by GATTACAT
                    Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
                    07-01-2026, 11:43 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, 07-13-2026, 10:26 AM
                  0 responses
                  25 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-09-2026, 10:04 AM
                  0 responses
                  35 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-08-2026, 10:08 AM
                  0 responses
                  22 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 07-07-2026, 11:05 AM
                  0 responses
                  34 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...