How can I get the names of bams that were merged
1
0
Entering edit mode
5.0 years ago

I have a single bam file which was created by merging few other bam files. How can I get the names of bam files that were used during merging?

Thanks!

alignment sequence • 795 views
ADD COMMENT
1
Entering edit mode
5.0 years ago
GenoMax 141k

Have you checked the headers (samtools view -H your.bam) to see if you have read groups and such that can help guide you?

ADD COMMENT
0
Entering edit mode

That was simple and worked. Command samtools view -H my.bam | grep '@RG'. Thanks!

ADD REPLY
0
Entering edit mode

https://image.ibb.co/dfsqrx/upvote_accept_bookmark.png

ADD REPLY

Login before adding your answer.

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