This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How can I get the names of bams that were merged

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

1 answer

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

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

Log in to answer this question.