deepTools icon indicating copy to clipboard operation
deepTools copied to clipboard

plotCoverage - ZeroDivisionError - verbose mode - 3.5.1

Open chris-cheshire opened this issue 3 years ago • 1 comments

Deeptools 3.5.1

plotCoverage -b SRR105321441.dedup.bam -p 4 --outRawCounts coverage.tab --plotFile sample_coverage --plotTitle "Sample Coverage" --verbose -o sample_coverage.png
File "countReadsPerBin.py", line 713, in get_coverage_of_region
      multiprocessing.current_process().name, c, c / (endTime - start_time), chrom, reg[0], reg[1]))
  ZeroDivisionError: float division by zero

chris-cheshire avatar May 04 '21 16:05 chris-cheshire

Is the BAM file empty? The error suggests that some sections were processed in 0 seconds (even with an empty BAM file I'm amazed that it could be processed faster than python's time() function progresses).

dpryan79 avatar May 06 '21 21:05 dpryan79