How to merge different BAM files?
1
0
Entering edit mode
4.5 years ago
jaafari.omid ▴ 80

Hello dears all,

I have some BAM files from different samples which they have been mapped to the genome reference using bowtie2. Actually now I want to merge these bam files so that the out put will be a single .bam file. I will be so grateful if you can help me in this purpose.

Regards,

Omid

SNP next-gen alignment BAM SAMtools • 3.0k views
ADD COMMENT
0
Entering edit mode
4.5 years ago

Did you google "merge bam files"? I see a samtools solution and a picardtools solution, can you explain why those don't work for you?

ADD COMMENT
0
Entering edit mode

Yes I did, but just was not sure if it is completely fit with my purpose or not. If we use the option -h, then only one header will be in the final output?

Regards,

Omid

ADD REPLY
0
Entering edit mode

Well, why don't you try one to see how it works?

ADD REPLY
0
Entering edit mode

Sorry for the late reply. Yes apparently by that option one header will come in the output's header.

ADD REPLY

Login before adding your answer.

Traffic: 1943 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6