diff read2mut.py @ 24:cf6f0fb05bad draft

planemo upload for repository https://github.com/Single-Molecule-Genetics/VariantAnalyzerGalaxy/tree/master/tools/variant_analyzer commit ee4a8e6cf290e6c8a4d55f9cd2839d60ab3b11c8
author mheinzl
date Mon, 22 Feb 2021 16:31:04 +0000
parents 25625221b88f
children 6ee7044d93b0
line wrap: on
line diff
--- a/read2mut.py	Mon Feb 22 16:23:48 2021 +0000
+++ b/read2mut.py	Mon Feb 22 16:31:04 2021 +0000
@@ -767,7 +767,8 @@
                     else:
                         chimeric_dcs_high_tiers += high_tiers
                 chimera_dict[key1] = (chimeric_dcs, chimeric_dcs_high_tiers)
-
+    csv_data.close()
+    
     # sheet 2
     if chimera_correction:
         header_line2 = ('variant ID', 'cvrg', 'AC alt (all tiers)', 'AF (all tiers)', 'chimeras in AC alt (all tiers)', 'chimera-corrected cvrg', 'chimera-corrected AF (all tiers)', 'cvrg (tiers 1.1-2.4)', 'AC alt (tiers 1.1-2.4)', 'AF (tiers 1.1-2.4)', 'chimeras in AC alt (tiers 1.1-2.4)', 'chimera-corrected cvrg (tiers 1.1-2.4)', 'chimera-corrected AF (tiers 1.1-2.4)', 'AC alt (orginal DCS)', 'AF (original DCS)',
@@ -973,7 +974,7 @@
     workbook.close()
     workbook2.close()
     workbook3.close()
-    csv_data.close()
+    
 
 
 if __name__ == '__main__':