Skip to content

Commit

Permalink
Shorten row length.
Browse files Browse the repository at this point in the history
  • Loading branch information
talavis committed Aug 20, 2019
1 parent 486a877 commit e8d8cfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/importer/data_importer/raw_data_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@ def _parse_variant_row(self, line: str, batch_cont: dict, headers: list, vep_fie
data['allele_num'] = int((info['AN_Adj'] if 'AN_Adj' in info else info['AN']))
data['allele_freq'] = None

data['allele_count'] = int((info['AC_Adj'] if 'AC_Adj' in info else info['AC']).split(',')[i])
data['allele_count'] = int((info['AC_Adj'] if 'AC_Adj' in info
else info['AC']).split(',')[i])
if 'AF' in info and data['allele_num'] > 0:
data['allele_freq'] = data['allele_count']/data['allele_num']

Expand Down

0 comments on commit e8d8cfa

Please sign in to comment.