Skip to content

Commit

Permalink
Clearify AN/AC parsing for manta
Browse files Browse the repository at this point in the history
  • Loading branch information
MalinAhlberg committed Aug 15, 2019
1 parent 8390d91 commit 56a4022
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/importer/data_importer/raw_data_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,12 @@ def _parse_manta(self):
data['pos'],
data['ref'],
alt)
data['allele_count'] = data.get('allele_count', 0)
data['allele_num'] = data.get('allele_num', 0)
# Note: these two fields are not present in our data, will always default to 0.
# Set to 0 rather than None, as the type should be int (according to the Beacon
# API specificition).
data['allele_count'] = info.get('AC', 0)
data['allele_num'] = info.get('AN',0)

batch += [data]
if self.settings.add_reversed_mates:
# If the vcf only contains one line per breakend,
Expand Down

0 comments on commit 56a4022

Please sign in to comment.