diff pairend_distro.py @ 5:6ae3a402b9af draft

"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/lumpy_sv commit e1bfc70a74f12ef8182d9afa0b3ab69d620fb3a8"
author artbio
date Sun, 24 May 2020 18:48:46 -0400
parents 093bb151a0a8
children
line wrap: on
line diff
--- a/pairend_distro.py	Mon May 11 19:51:38 2020 -0400
+++ b/pairend_distro.py	Sun May 24 18:48:46 2020 -0400
@@ -81,7 +81,7 @@
 min_elements = 1000
 if len(L) < min_elements:
     sys.stderr.write("Warning: only %s elements in distribution (min: %s)\n" %
-                     (len(L), min_elements))
+                     (str(len(L)), str(min_elements)))
     mean = "NA"
     stdev = "NA"
 
@@ -94,8 +94,8 @@
     L = L[L < upper_cutoff]
     new_len = len(L)
     removed = c - new_len
-    sys.stderr.write("Removed %d outliers with isize >= %d\n" %
-                     (removed, upper_cutoff))
+    sys.stderr.write("Removed %s outliers with isize >= %s\n" %
+                     (str(removed), str(upper_cutoff)))
     c = new_len
 
     mean = np.mean(L)