You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parser_sub.add_argument('--barcode',default="barcode.bed",type=str,help='A bed file containing lineage barcode SNPs')
586
591
parser_sub.add_argument('--bedmask',default="mask.bed",type=str,help='A bed file containing a list of low-complexity regions')
592
+
parser_sub.add_argument('--rules',default="rules.yml",type=str,help='A yaml file containing rules for the resistance library')
587
593
parser_sub.add_argument('--amplicon_primers','--amplicon-primers',type=str,help='A file containing a list of amplicon primers')
588
594
parser_sub.add_argument('--match_ref','--match-ref',type=str,help='Match the chromosome name to the given fasta file')
589
595
parser_sub.add_argument('--custom',action="store_true",help='Tells the script this is a custom database, this is used to alter the generation of the version definition')
note=f"Loss of function mutation(s) detected in mmpL5 ({v2_changes}) which may abrogate the effect of the genetically linked mmpR5 mutation(s) ({v1_changes})."
note=f"Mutation(s) detected in {source_vars[0].gene_name} ({source_vars_changes}) which may abrogate the effect of the genetically linked {target_vars[0].gene_name} mutation(s) ({target_vars_changes})."
78
87
79
-
ifv2_total_freq==100:
80
-
inactivate_drug_resistance(v1)
81
-
freq_diff=v1_total_freq-v2_total_freq
82
-
iffreq_diff>10:
83
-
note+=f" However, the combined frequency of the mmpR5 mutation(s) is {freq_diff}% higher than the mmpL5 mutation(s), indicating a potential resistant subpopulation. Please consult the raw data for more information."
note+=f" However, the combined frequency of the {target_vars[0].gene_name} mutation(s) is {freq_diff}% higher than the {source_vars[0].gene_name} mutation(s), indicating a potential resistant subpopulation."
84
93
94
+
note+=" Please consult the raw data for more information."
# note = f"Loss of function mutation(s) detected in mmpL5 ({v2_changes}) which may abrogate the effect of the genetically linked mmpR5 mutation(s) ({v1_changes})."
122
+
123
+
# if v2_total_freq==100:
124
+
# inactivate_drug_resistance(v1)
125
+
# freq_diff = v1_total_freq - v2_total_freq
126
+
# if freq_diff > 10:
127
+
# note += f" However, the combined frequency of the mmpR5 mutation(s) is {freq_diff}% higher than the mmpL5 mutation(s), indicating a potential resistant subpopulation. Please consult the raw data for more information."
note=f"Loss of function mutation(s) detected in eis ({v2_changes}) which may abrogate the effect of the genetically linked eis promoter mutation(s) ({v1_changes})."
note+=f" However, the combined frequency of the eis promoter mutation(s) is {freq_diff}% higher than the eis coding mutation(s), indicating a potential resistant subpopulation. Please consult the raw data for more information."
143
+
# v1_total_freq = math.ceil(sum([x.freq*100 for x in v1]))
144
+
# v1_total_freq = min(v1_total_freq,100)
145
+
146
+
# v2_total_freq = math.ceil(sum([x.freq*100 for x in v2]))
147
+
# v2_total_freq = min(v2_total_freq,100)
148
+
149
+
# if v1 and v2:
150
+
# v1_changes = ", ".join([x.change for x in v1])
151
+
# v2_changes = ", ".join([x.change for x in v2])
152
+
# note = f"Loss of function mutation(s) detected in eis ({v2_changes}) which may abrogate the effect of the genetically linked eis promoter mutation(s) ({v1_changes})."
153
+
154
+
# if v2_total_freq==100:
155
+
# inactivate_drug_resistance(v1)
156
+
# freq_diff = v1_total_freq - v2_total_freq
157
+
# if freq_diff > 10:
158
+
# note += f" However, the combined frequency of the eis promoter mutation(s) is {freq_diff}% higher than the eis coding mutation(s), indicating a potential resistant subpopulation. Please consult the raw data for more information."
0 commit comments