Seqanswers Leaderboard Ad

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

    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

      • seqadmin
        New Genomics Tools and Methods Shared at AGBT 2025
        by seqadmin


        This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

        The Headliner
        The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
        03-03-2025, 01:39 PM
      • seqadmin
        Investigating the Gut Microbiome Through Diet and Spatial Biology
        by seqadmin




        The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...
        02-24-2025, 06:31 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, Today, 07:27 AM
      0 responses
      10 views
      0 reactions
      Last Post seqadmin  
      Started by seqadmin, Yesterday, 12:50 PM
      0 responses
      14 views
      0 reactions
      Last Post seqadmin  
      Started by seqadmin, 03-03-2025, 01:15 PM
      0 responses
      185 views
      0 reactions
      Last Post seqadmin  
      Started by seqadmin, 02-28-2025, 12:58 PM
      0 responses
      283 views
      0 reactions
      Last Post seqadmin  
      Working...