Skip to content

Missing global import for pysam in coverage.py causes NameError #415

@raquellewei

Description

@raquellewei

Ran into this error in coverage.py:
coverage.py", line 131, in _processBam bamfile = pysam.Samfile(bamFile, 'rb') NameError: name 'pysam' is not defined

Adding import pysam right in front of this line solves the problem. Suggest adding pysam as a global import or add import pysam in the _processBam function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions