Hi, I encountered an exception from make_a_table,py script (discard_non_unique_mappings function) when using BAM files from HISAT2/samtools/picard, where some reads have no NH tag. According to HISAT2 manual, the tags are optional, so it is perhaps not a good assumption that NH and NM tags will always be there.
I got around the issue by adding a "try, except, continue" around the code to skip those reads.
Thanks for making the project freely available!
Regards,
Hong
Hi, I encountered an exception from make_a_table,py script (discard_non_unique_mappings function) when using BAM files from HISAT2/samtools/picard, where some reads have no NH tag. According to HISAT2 manual, the tags are optional, so it is perhaps not a good assumption that NH and NM tags will always be there.
I got around the issue by adding a "try, except, continue" around the code to skip those reads.
Thanks for making the project freely available!
Regards,
Hong