Skip to content
Snippets Groups Projects
Commit 878eb1cb authored by Tobias Marschall's avatar Tobias Marschall
Browse files

Use floats instead of ints for ploidy estimation --> now also works with normalized counts

parent 54d2f160
No related branches found
No related tags found
No related merge requests found
......@@ -26,8 +26,8 @@ def read_wc_fractions(filename, chunksize, min_count, chromosome):
if chromosome is not None:
if chromosome != fields.chrom_:
continue
w_sum += int(fields.w_)
c_sum += int(fields.c_)
w_sum += float(fields.w_)
c_sum += float(fields.c_)
if int(fields.end_) - start >= chunksize:
if w_sum + c_sum >= min_count:
yield w_sum/(w_sum+c_sum)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment