Skip to content

Commit

Permalink
Merge pull request #505 from theosanderson/theosanderson-patch-45
Browse files Browse the repository at this point in the history
Fix calculation of past mutations
  • Loading branch information
theosanderson authored Jul 29, 2023
2 parents 1405539 + 0dab79f commit da2400a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taxoniumtools/src/taxoniumtools/ushertools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

1 comment on commit da2400a

@vercel
Copy link

@vercel vercel bot commented on da2400a Jul 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.