changeset 6:f6d9742c1da0

fixed error on decimal variant counts
author nick
date Thu, 30 May 2013 13:49:37 -0400
parents fd7ae393d5b5
children 34892857567b
files allele-counts.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/allele-counts.py	Wed May 29 11:24:56 2013 -0400
+++ b/allele-counts.py	Thu May 30 13:49:37 2013 -0400
@@ -200,7 +200,7 @@
         fail("Error in input VCF: variant data not strand-specific. "
           +"Failed on line:\n"+line)
       try:
-        variant_counts[variant] = int(reads)
+        variant_counts[variant] = int(float(reads))
       except ValueError, e:
         continue