Commits

Davide Cittaro committed 9d5e5a8

bugfix

Comments (0)

Files changed (1)

         try:
           allele_ro = sample['RO']
           allele_ao = sample['AO']
+          if not allele_ro:
+            allele_ro = 0
+          if not allele_ao:
+            allele_ao = 0  
           allele_depth = "%d,%d" % (allele_ro, allele_ao)
         except AttributeError:  
           allele_depth = ','.join(['0'] * genotype.count('.'))