I have a bam file with Unique Molecular Identifiers (UMIs) for each read present on the RX tag ( such as
RX:Z:TGAGAAGGG), as expected by picard and fgbio tools.
However, several other tools (such as UMI-tools) expect the UMIs to be present at the end of the read name, such as (
Does anyone know of a tool to do this?
I have an
awk solution which I'll self-answer with, but I don't know whether that is robust.