diff cwpair2_util.py @ 5:71188f3f4b76 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cwpair2 commit cb490a0eee9efc2cd6c98d5bb714b75b5894c56c
author iuc
date Mon, 06 Nov 2017 23:19:50 -0500
parents 436dc65bd902
children c4b926c9831c
line wrap: on
line diff
--- a/cwpair2_util.py	Sat Jan 21 14:40:25 2017 -0500
+++ b/cwpair2_util.py	Mon Nov 06 23:19:50 2017 -0500
@@ -6,7 +6,7 @@
 
 import matplotlib
 matplotlib.use('Agg')
-from matplotlib import pyplot  # noqa: E402
+from matplotlib import pyplot  # noqa: I202,E402
 
 # Data outputs
 DETAILS = 'D'
@@ -92,7 +92,7 @@
 def parse_chromosomes(reader):
     # This version of cwpair2 accepts only gff format as input.
     chromosomes = {}
-    reader.next()
+    next(reader)
     for line in reader:
         cname, junk, junk, start, end, value, strand, junk, junk = line
         start = int(start)
@@ -245,7 +245,7 @@
     if output_files == 'all' and method == 'all':
         frequency_plot([s['dist'] for s in statistics],
                        statistics[0]['graph_path'],
-                       labels=METHODS.keys())
+                       labels=list(METHODS.keys()))
     return statistics