CheckM icon indicating copy to clipboard operation
CheckM copied to clipboard

Missing global import for pysam in coverage.py causes NameError

Open raquellewei opened this issue 3 months ago • 0 comments

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.

raquellewei avatar Nov 04 '25 01:11 raquellewei