Skip to content

Commit 23314b8

Browse files
committed
Fixed alt_allele in insertions
1 parent ebfea69 commit 23314b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bu_isciii/templates/IRMA/ANALYSIS/ANALYSIS01_FLU_IRMA/04-irma/create_irma_vcf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ def combine_indels(vcf_dictionary):
745745
if value["TYPE"] == "INS":
746746
if value["REF_POS"] in combined_vcf_dict:
747747
if value["TYPE"] == combined_vcf_dict[value["REF_POS"]]["TYPE"]:
748-
NEW_ALT = value["ALT"].replace(value["REF"], "")
748+
NEW_ALT = value["ALT"][len(value["REF"]) :]
749749
combined_vcf_dict[value["REF_POS"]]["ALT"] += NEW_ALT
750750
combined_vcf_dict[value["REF_POS"]]["SAMPLE_POS"].append(
751751
value["SAMPLE_POS"][0]

0 commit comments

Comments
 (0)