BCCDC-PHL / tbprofiler-nf

Nextflow Wrapper for TBProfiler
4 stars 2 forks source link

Coverage plotting script fails on negative controls #25

Closed dfornika closed 4 months ago

dfornika commented 5 months ago

If a negative control (containing reads but few/zero TB reads) is put through the pipeline, it crashes:

plot_coverage.py", line 66, in plot_coverage 
sum(1 if x > threshold else 0 for x in depths.depth)
ZeroDivisionError: division by zero