Skip to content
Snippets Groups Projects
Commit 5163583f authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Fix crash

parent 96f3d4d0
No related branches found
No related tags found
No related merge requests found
......@@ -93,8 +93,9 @@ def insert_size_distro(bamfile, chrom, outdir,
new_len = len(L)
removed = c - new_len
sys.stderr.write("Removed %d outliers with isize >= %d\n" %
(removed, upper_cutoff))
# TODO: sometimes, upper_cutoff is Nan: why? To prevent crash, convert to string
sys.stderr.write("Removed %d outliers with isize >= %s\n" %
(removed, str(upper_cutoff)))
counts = Counter(list(L-readlength))
mean = np.mean(L)
......
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