From 0dab79f70f06f8c64d6290a6264e6a94841a88fc Mon Sep 17 00:00:00 2001 From: Theo Sanderson Date: Sat, 29 Jul 2023 10:44:36 +0100 Subject: [PATCH] Update ushertools.py --- taxoniumtools/src/taxoniumtools/ushertools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taxoniumtools/src/taxoniumtools/ushertools.py b/taxoniumtools/src/taxoniumtools/ushertools.py index 055787de..c7eb0eb3 100644 --- a/taxoniumtools/src/taxoniumtools/ushertools.py +++ b/taxoniumtools/src/taxoniumtools/ushertools.py @@ -115,7 +115,7 @@ def get_mutations(past_nuc_muts_dict, initial_codon = [seq[gene_codon.positions[x]] for x in range(3)] - relevant_past_muts = [(x, past_nuc_muts_dict[x]) + relevant_past_muts = [(gene_codon.positions[x], past_nuc_muts_dict[x]) for x in gene_codon.positions if x in past_nuc_muts_dict] flipped_dict = {