Skip to content

Commit

Permalink
Merge 9ed2c0f into 2ddda89
Browse files Browse the repository at this point in the history
  • Loading branch information
MalinAhlberg committed May 23, 2019
2 parents 2ddda89 + 9ed2c0f commit 427e2a9
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 @@ -223,13 +223,13 @@ def _parse_manta(self):
if self.settings.add_reversed_mates:
# If the vcf only contains one line per breakend, add the reversed version to the database here.
reversed = dict(data)
# TODO Note: in general, ref and alt cannot be assumed to be the same in the reversed direction,
# Note: in general, ref and alt cannot be assumed to be the same in the reversed direction,
# but our data (so far) only contains N, so we just keep them as is for now.
reversed.update({'mate_chrom': data['chrom'], 'chrom': data['mate_chrom'],
'mate_start': data['pos'], 'pos': data['mate_start'],
'chrom_id': data['mate_id'], 'mate_id': data['chrom_id']})
reversed['variant_id'] = '{}-{}-{}-{}'.format(reversed['chrom'], reversed['pos'], reversed['ref'], alt)
# TODO should the `counter` be increased here?
counter += 1 # increase the counter; reversed BNDs are usually kept at their own vcf row
batch += [reversed]

counter += 1 # count variants (one per vcf row)
Expand Down

0 comments on commit 427e2a9

Please sign in to comment.