1. Davide Cittaro
  2. utils

Commits

Davide Cittaro  committed f323688

bugfix

  • Participants
  • Parent commits 1d821d8
  • Branches default

Comments (0)

Files changed (1)

File vcf2xls.py

View file
             allele_ro = 0
           if not allele_ao:
             allele_ao = 0
-          allele_ro = str(allele_ro)  
           if type(allele_ao) == list:
-            allele_ao = ','.join([str(x) for x in allele_ao])
+            allele_depth = [allele_ro] + allele_ao
           else:
-            allele_ai = str(allele_ao)
-          allele_depth = "%s,%s" % (allele_ro, allele_ao)
+            allele_depth = [allele_ro, allele_ao]
         except AttributeError:  
           allele_depth = ','.join(['0'] * genotype.count('.'))
       if not allele_depth: