![]() |
|
![]() |
||||
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 |
merging many bam files-novice needs help please | shawpa | Bioinformatics | 2 | 01-06-2012 09:03 AM |
Problem merging BAM files | hlwright | Bioinformatics | 6 | 10-11-2011 12:36 AM |
Calling multiple BAM files for SNPs and vcf | newbietonextgen | Bioinformatics | 3 | 04-19-2011 12:29 PM |
![]() |
|
Thread Tools |
![]() |
#1 |
Junior Member
Location: Bern Join Date: Aug 2011
Posts: 1
|
![]()
Hello all,
We are new to using samtools and are trying to solve a problem with merging multiple BAM files. We have several BAM files, one from each individual. They have all been mapped (one at a time) to the same reference genome, whose assembly consists of about 7000 scaffolds. Now reads from each individual map to several but not always all of the scaffolds in the reference. Therefore, for example, individual_1 may have no reads mapping to scaffold 1234 of the reference, but individual_2 might. Now we want to merge all of these alignments into a single BAM file but samtools cannot deal with the fact that some scaffold names do not match. The BAM files were created using samtools from SAM files exported from CLC genomics workbench. Any help will be greatly appreciated. Thanks. |
![]() |
![]() |
![]() |
#2 |
Member
Location: Spain Join Date: Jul 2010
Posts: 68
|
![]()
I am not familiar with the importance of scaffolds in the reference genome.
However, I would recommend to try and use picard tools. It does things similar to samtools and more. Perform two steps: 1. AddAndReplaceReadgroups for each of your bam files (to annotate the reads and be able to follow them in the merged file). 2. MergeSamFiles. Although the tools says "sam", it also works for bam files. good luck! |
![]() |
![]() |
![]() |
Thread Tools | |
|
|