Skip to content

Commit

Permalink
Added support for summits in scientific notation. Thanks to Simon-Coe…
Browse files Browse the repository at this point in the history
…tzee for the patch.
  • Loading branch information
nboley committed May 6, 2016
1 parent 0264788 commit 5072772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idr/idr.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def load_bed(fp, signal_index, peak_summit_index=None):
if peak_summit_index == None or int(data[peak_summit_index]) == -1:
summit = None
else:
summit = int(data[peak_summit_index]) + int(data[1])
summit = int(data[peak_summit_index]) + int(float(data[1]))
assert summit == None or summit >= 0
peak = Peak(data[0], data[5],
int(float(data[1])), int(float(data[2])),
Expand Down

0 comments on commit 5072772

Please sign in to comment.