modify qname
ruqianl opened this issue · comments
Hi Brent,
I'm wondering if there is any easy way to modify a record.qname as I would like to add additional information to it.
Cheers,
Ruqian
I agree this would be nice to have. But, it is actually not trivial as it requires updating the entire bam record. You can see how pysam does it here
I would gladly accept a PR for this. If not, I will have a look soon.
I went ahead and added this as set_qname(r:Record, qname:string)
please let me know any problems. Thanks for the suggestion.
Thanks for that, I tested that add it works well!