Do I need to merge bai files also, while merging bam files
1
1
Entering edit mode
7.2 years ago
c_u ▴ 520

I have 10 folders, each containing a bam file and a corresponding bai file. I need to merge the bam files, which I believe I can do with samtools merge merged_filename.bam *.bam.

My question is that do I need to also merge the corresponding bai files as well? And if so, should I just do - samtools merge merged_filename.bai *.bai?

bam RNA-Seq • 4.5k views
ADD COMMENT
6
Entering edit mode
7.2 years ago
Gabriel R. ★ 2.9k

do

 samtools index  merged_filename.bam
ADD COMMENT

Login before adding your answer.

Traffic: 1641 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