We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95cc0fe commit d6801e7Copy full SHA for d6801e7
bu_isciii/templates/IRMA/ANALYSIS/ANALYSIS01_FLU_IRMA/04-irma/create_irma_vcf.py
@@ -766,6 +766,14 @@ def combine_indels(vcf_dictionary):
766
combined_vcf_dict[value["REF_POS"]] = content_dict
767
elif value["TYPE"] == "DEL":
768
sample_found = False
769
+ minority = False
770
+ for af in value["AF"]:
771
+ if float(af) < 0.5:
772
+ minority = True
773
+ prev_sample_pos = ""
774
+ if minority and len(value["SAMPLE_POS"]) == 1:
775
+ sample_pos = value["SAMPLE_POS"][0]
776
+ prev_sample_pos = sample_pos - 1
777
for _, data in combined_vcf_dict.items():
778
if data["TYPE"] == "DEL":
779
if value["SAMPLE_POS"] == data["SAMPLE_POS"]:
0 commit comments