Skip to content

Commit

Permalink
fix for int->tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
talavis committed Mar 18, 2019
1 parent 34ca445 commit f56be4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/importer/data_importer/raw_data_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,11 @@ def _insert_variants(self):
rsids = [None]

try:
hom_counts = tuple(int(info['AC_Hom']))
hom_counts = [int(info['AC_Hom'])]
except KeyError:
hom_counts = None # null is better than 0, as 0 has a meaning
except ValueError:
hom_counts = tuple(int(count) for count in info['AC_Hom'].split(','))
hom_counts = [int(count) for count in info['AC_Hom'].split(',')]

fmt_alleles = ['{}-{}-{}-{}'
.format(data['chrom'],
Expand Down

0 comments on commit f56be4a

Please sign in to comment.