Skip to content

Check that HD record exists or place in try/catch block #40

@cerebis

Description

@cerebis

if 'SO' not in bam.header['HD'] or bam.header['HD']['SO'] != 'queryname':

This will produce an uncaught exception if the 'HD' record does not existing the BAM file.

We need to either check for 'HD' or place this call in a try/catch KeyError

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions