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
          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, detection...
          Today, 06:46 AM
        • 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

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 10-28-2026, 09:57 AM
        0 responses
        22 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-28-2026, 09:51 AM
        0 responses
        14 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-22-2026, 11:13 AM
        0 responses
        67 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-22-2026, 10:48 AM
        0 responses
        47 views
        0 reactions
        Last Post SEQadmin2  
        Working...