Commit 5433b9b5 authored by Thonier Florian's avatar Thonier Florian

fuse.py; fix a bug in build_stats function

Link to #3944
parent 2df8292f
......@@ -488,11 +488,12 @@ class ListWindows(VidjilJson):
for clone in self:
for i, s in enumerate(clone.d["reads"]):
for r in range(len(ranges)):
if s*1. / self.d['reads'].d['segmented'][i] >= ranges[r]:
break
result[r][i] += s
if self.d['reads'].d['segmented'][i] > 0:
for r in range(len(ranges)):
if s*1. / self.d['reads'].d['segmented'][i] >= ranges[r]:
break
result[r][i] += s
for r in range(len(ranges)):
ratio_in_string = '{0:.10f}'.format(ranges[r]).rstrip('0')
self.d['reads'].d['distribution'][ratio_in_string] = result[r]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment