![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Merging bam files | memento | Bioinformatics | 1 | 02-17-2012 04:39 PM |
merging bam files with different headers | dnusol | Bioinformatics | 2 | 02-07-2012 12:09 AM |
Problem merging BAM files | hlwright | Bioinformatics | 6 | 10-11-2011 12:36 AM |
Merging multiple BAM files | unibegenomics | Bioinformatics | 1 | 08-25-2011 03:03 AM |
merging 2 sam files | papori | Bioinformatics | 0 | 07-29-2011 05:44 AM |
![]() |
|
Thread Tools |
![]() |
#1 |
Member
Location: Pittsburgh Join Date: Aug 2011
Posts: 72
|
![]()
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. |
![]() |
![]() |
![]() |
#2 |
Junior Member
Location: Montreal Join Date: Sep 2011
Posts: 6
|
![]()
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. |
![]() |
![]() |
![]() |
#3 |
David Eccles (gringer)
Location: Wellington, New Zealand Join Date: May 2011
Posts: 838
|
![]() |
![]() |
![]() |
![]() |
Thread Tools | |
|
|