diff replace_NA.py @ 8:d4e292ddda05 draft default tip

"planemo upload for repository Nonehttps://github.com/galaxyproject/tools-devteam/tree/master/tools/table_annovar commit 68ba77da2a1f8d6cd04dd7dc6efc5edcefcfa0c9"
author devteam
date Thu, 05 May 2022 13:13:11 +0000
parents 5cb2020a097a
children
line wrap: on
line diff
--- a/replace_NA.py	Wed Apr 22 23:52:01 2015 -0400
+++ b/replace_NA.py	Thu May 05 13:13:11 2022 +0000
@@ -63,7 +63,7 @@
 temp_out.close()
 
 # Get column type based on label or consensus.
-col_types = range(len(col_type_counts))
+col_types = list(range(len(col_type_counts)))
 for i, counts in enumerate(col_type_counts):
     if i in numerical_cols:
         col_type = 'number'
@@ -79,7 +79,7 @@
     for i, f in enumerate(fields):
         if fields[i] == TARGET and col_types[i] == 'number':
             fields[i] = str(REPLACEMENT)
-    print SEPARATOR.join(fields)
+    print(SEPARATOR.join(fields))
 
 # Clean up temp file.
 temp_out.close()