diff small_rna_maps.py @ 3:ed8b0142538d draft

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/small_rna_maps commit 7b2ceb05489c27ddb769c38fdec56274108a6fa1
author artbio
date Tue, 22 Aug 2017 12:05:47 -0400
parents 507383cce5a8
children a6b9a081064b
line wrap: on
line diff
--- a/small_rna_maps.py	Mon Aug 14 05:52:34 2017 -0400
+++ b/small_rna_maps.py	Tue Aug 22 12:05:47 2017 -0400
@@ -55,7 +55,7 @@
                                     'F')].append(read.query_alignment_length)
         return map_dictionary
 
-    def compute_map(self, map_dictionary, out):
+    def compute_readcount(self, map_dictionary, out):
         '''
         takes a map_dictionary as input and writes
         a readmap_dictionary {(chromosome,read_position,polarity):
@@ -191,7 +191,7 @@
         F.write('\t'.join(header) + '\n')
         for input, sample in zip(inputs, samples):
             mapobj = Map(input, sample)
-            token = {"Counts": mapobj.compute_map,
+            token = {"Counts": mapobj.compute_readcount,
                      "Max": mapobj.compute_max,
                      "Mean": mapobj.compute_mean,
                      "Median": mapobj.compute_median,