Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tonnny97
    Junior Member
    • Oct 2013
    • 7

    #1

    Try to enhance the efficiency of SAMtools merge option

    Hi Guys,

    Now I have around 100 sorted .bam files (~150MB each one) generated from TopHat.
    Then I need to merge all these .bam files by SAMtools.

    I try to enhance the efficiency on Hadoop cloud platform.
    There are two choices:
    1) Merge all files in one SAMtools merge command (single machine)
    2) Merge each pair of two files in the first level, and then merge each pair of two files (from 1st level) in the second level, and ... (the concept similar to merge sort)

    My question is:
    Whether the second choice can run more faster?
    Does anyone try to further enhance the merge efficiency of SAMtools?
    Thanks.
  • Heisman
    Senior Member
    • Dec 2010
    • 534

    #2
    Another thought would be to try Picard. I do not know if it is faster or not but it may be. It will handle headers more appropriately: http://picard.sourceforge.net/comman...#MergeSamFiles

    Comment

    • lh3
      Senior Member
      • Feb 2008
      • 686

      #3
      Samtools is faster than Picard for most operations. It also has parallel compression which picard lacks if I am correct.

      I am not sure why you want to merge 100 RNA-seq BAMs. If you have to do that, the two approaches won't differ much. The bottleneck is writing the final BAM. You may try novosort from novocraft which takes better advantage of multi-core, but it is not free. You may also consider to use option "-1". Your output will be ~10% larger but the compression speed will be several times faster.

      Comment

      • Tonnny97
        Junior Member
        • Oct 2013
        • 7

        #4
        Thanks for the suggestion!!

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          The Factors Reshaping Genome Assembly
          by SEQadmin2



          When the Human Genome Project declared the human genome finished in 2003, portions of the sequence were still missing, including many of its most repetitive and structurally complex regions.1 Still, for the next two decades, researchers analyzed their sequencing data against the single linear reference that came out of this effort. Released in 2013 as GRCh38, that reference has powered countless discoveries, but it has gaps and cannot capture the genetic diversity of the world’s...
          11-24-2026, 07:04 AM
        • SEQadmin2
          16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
          by SEQadmin2





          NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
          10-30-2026, 06:46 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 11-23-2026, 11:11 AM
        0 responses
        28 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 11-17-2026, 06:27 AM
        0 responses
        41 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 11-12-2026, 07:59 AM
        0 responses
        61 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 11-05-2026, 09:25 AM
        0 responses
        67 views
        0 reactions
        Last Post SEQadmin2  
        Working...