Skip to content

Commit

Permalink
Fixed alt_allele in insertions
Browse files Browse the repository at this point in the history
  • Loading branch information
svarona committed Aug 16, 2024
1 parent 3976ec8 commit 74a1de8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ def combine_indels(vcf_dictionary):
if value["TYPE"] == "INS":
if value["REF_POS"] in combined_vcf_dict:
if value["TYPE"] == combined_vcf_dict[value["REF_POS"]]["TYPE"]:
NEW_ALT = value["ALT"].replace(value["REF"], "")
NEW_ALT = value["ALT"][len(value["REF"]) :]
combined_vcf_dict[value["REF_POS"]]["ALT"] += NEW_ALT
combined_vcf_dict[value["REF_POS"]]["SAMPLE_POS"].append(
value["SAMPLE_POS"][0]
Expand Down

0 comments on commit 74a1de8

Please sign in to comment.