This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Rename BAM file

I'd like to rename (sample name) a BAM file. What is the easiest way to do this?

bam

1 answer

This is probably referring to renaming a sample inside the BAM perhaps in the read group.

If true then use: https://github.com/IARCbioinfo/BAM-tricks#change-sample-name

Fantastic! This worked well. Thanks.

A small educational note: if an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one answer if they work. This will help future users that might find this post find the right answer.

upvote_bookmark_accept

Log in to answer this question.