Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shawpa
    Member
    • Aug 2011
    • 73

    #1

    merging many bam files-novice needs help please

    I have 152 coordinate sorted bam files. I want to merge them. I have tried both Samtools merge and Picard. I used Samtools merge before on some different data and it worked but I don't think that data was coordinate sorted and that might make a difference. The command I am trying to use is

    samtools merge /out.bam /path_to_file/*.bam

    I want it to merge all the files in that folder. I don't get a specific error but it prints out the samtools merge usage parameters. So I guess I am missing something in my command. The following is what I have done so far in my pipeline:

    1. aligned with bowtie 2 (output sam)
    2. sorted individual sam files output to individual bam files

    The end goal is to use GATK for variant analysis. According to http://seqanswers.com/wiki/How-to/exome_analysis, I need to put some kind of -r argument in Samtools when I am processing to add an @rq (or something like that).

    I am lost at this moment and I have searched and searched to try and find an answer on the forums.
  • cbeck
    Junior Member
    • Sep 2011
    • 6

    #2
    Hi Shawpa,
    As an aside, you don't need to merge the bam files when calling the UnifiedGenotyper, you can use multiple -I parameters. Note that you can expect compute time to increase in a non-linear fashion when doing this.

    Comment

    • gringer
      David Eccles (gringer)
      • May 2011
      • 845

      #3
      Originally posted by shawpa View Post
      samtools merge /out.bam /path_to_file/*.bam
      If this is the precise command you used, you may get better results from removing the initita forward slashes.

      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-22-2026, 11:13 AM
      0 responses
      43 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-22-2026, 10:48 AM
      0 responses
      33 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-15-2026, 10:52 AM
      0 responses
      44 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-14-2026, 05:39 AM
      0 responses
      45 views
      0 reactions
      Last Post SEQadmin2  
      Working...