CGATOxford / UMI-tools

Tools for handling Unique Molecular Identifiers in NGS data sets
MIT License
491 stars 190 forks source link

Filter for low read-depth UMIs? #649

Closed gdlampe closed 1 month ago

gdlampe commented 5 months ago

Hi!

I'm trying to filter for UMI<>alignment events that may be artifactual due to PCR template switching during sample prep. Currently, i filter alignments that only have 1 read at the specific site, but after UMI deduplication I cannot really do that (since one UMI does not mean one read). is there any way to do that either during the "dedup" command, or by pulling some metadata when looking at the deduplicated BAM file?

IanSudbery commented 3 months ago

No, there currently isn't any way to do this. However, if you use group rather than dedup you'll get a file with the meta data you would need to do this, and in addition, you could probably use the BX tag in the resulting BAM file to do this from the output.