Entering edit mode
5.0 years ago
i.sudbery
20k
Lets say I have a BAM file with a read like so:
SRR2057595.3333414_ATCGG 0 chr19 3571763 255 44M * 0 0 * * XA:i:2 MD:Z:13C27C2 NM:i:2 BX:Z:ATCGG
but a program I want to use requires what is currently in the BX
tag to be in the UM
tag. So it looks thus:
SRR2057595.3333414_ATCGG 0 chr19 3571763 255 44M * 0 0 * * XA:i:2 MD:Z:13C27C2 NM:i:2 UM:Z:ATCGG
I could write pysam
script to do this, but I feel like there should be a less home-made way to do this.