timoast / sinto

Tools for single-cell data processing
https://timoast.github.io/sinto/
MIT License
118 stars 25 forks source link

Renaming read tags #12

Closed winni2k closed 4 years ago

winni2k commented 4 years ago

I need to temporarily remove read groups from my BAM file in order to run BQSR in a read-group unaware mode. I thought I might just rename the RG read tag to something else while I run BQSR and then rename the read tag back to RG. I've looked around a little, and I can't find a tool to do it, so I'm writing a script for it. Would that be something you would accept a PR for?

timoast commented 4 years ago

Sure, I think having functions to move information around in a bam file would be useful (read group to read tag, read name to read tag, read tag to read group, etc.).

winni2k commented 4 years ago

Excellent. I'll post a PR when I have something written.