Skip to content

Commit

Permalink
fix: Fix mate_id referenced before assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapsssito committed Apr 6, 2022
1 parent 4f25669 commit 5efdeca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/variant_extractor/VariantExtractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ def __handle_uncertain_sv(self):
mate_id = vcf_record.info['MATEID']
elif 'PARID' in vcf_record.info:
mate_id = vcf_record.info['PARID']
else:
continue
mate_id = mate_id[0] if type(mate_id) != str else mate_id
pairs[mate_id] = (vcf_record, alt_name, sv_name)

Expand Down

0 comments on commit 5efdeca

Please sign in to comment.