Commits

Davide Cittaro committed 6a67928

bugfixes

Comments (0)

Files changed (1)

 header = fields_in_record + fields_in_INFO
 for s in samples:
   header.append("%s:GT" % s)
-  header.append("%s:A1" % s)
-  header.append("%s:A2" % s)
+  header.append("%s:A1,A2" % s)
 header = header + ["GENE","CODOON","AA","EFFECT"]
 ws.title = sys.argv[1]
 row = 1
     s = record.samples[x]
     genotype = s['GT']
     try:
-      ad = s['AD']
+      ad = ','.join(s['AD'])
     except AttributeError:
       ad = ['0,0']  
     if not genotype: