Skip to content

make_a_table.py exception on BAM files without NH tag. #1

Description

@hdangsoccer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions