Open amine-abdeljaoued opened 6 months ago
This is a good catch, @amine-abdeljaoued! Let me check with @ndousis -- this definitely feels like a bug, right? Random is defined as "uniform probabilities" for the random_codon_table
, just as the others are defined, so it looks like this bug needs to be fixed.
Yeah, that looks like a bug!
The random_codon_table dictionary
https://github.com/modernatx/seqlike/blob/dde761ced5e3dcf86010d1e50abc3b268f794d8f/seqlike/codon_tables.py#L99
is biased for Isoleucine (I) with unequal probabilities for the three codons that code for it, while it has equal probabilities for all other Amino Acids.