Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplifying codon table interface #392

Closed
cachemoi opened this issue Nov 1, 2023 · 2 comments
Closed

Simplifying codon table interface #392

cachemoi opened this issue Nov 1, 2023 · 2 comments
Labels
enhancement New feature or request needs-triage An issue that needs to be triaged

Comments

@cachemoi
Copy link
Contributor

cachemoi commented Nov 1, 2023

this is an issue suggested as a follow up to this PR, we have a table interface which exposes a potentially superflous GetWeightedAminoAcids function. The function is used to get a weighted amino acid sequence in the fix DNA optimisation package.

The fix package seems to be updating the weights with more data, we should consider putting all the functions which updates those amino acid weights in the same struct for a less leaky abstraction.

@cachemoi cachemoi added enhancement New feature or request needs-triage An issue that needs to be triaged labels Nov 1, 2023
@Koeng101
Copy link
Contributor

Koeng101 commented Nov 2, 2023

The fix package seems to be updating the weights with more data, we should consider putting all the functions which updates those amino acid weights in the same struct for a less leaky abstraction

Could you be more specific on the line? I don't recall it updating the weight table with more data, just getting out which new codon it should use based on the data, then applies biases.

Agreed it should be updated though.

@cachemoi
Copy link
Contributor Author

cachemoi commented Nov 3, 2023

I assumed it was updating the weights with some other heuristics but after reading more carefully I see it's not, I thought it would be a duplicate of the codon picking mechanism in optimize

If I understand well the package is using the weighted AAs to get the highest weighted codon in a set of potential codon replacements gotten with other methods (gc bias ect...) here.

I don't really see a straightforward way to get rid of this in a way that make things noticably better since it's using the fix.Change struct so I think it's best to leave things as is 👍

@cachemoi cachemoi closed this as completed Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-triage An issue that needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants