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

feat: Adds optional param to translate_cds to allow for positional overrides #2

Merged
merged 2 commits into from
Sep 26, 2024

Conversation

kazmiekr
Copy link
Collaborator

In order to support translational exceptions, we need to be able to customize the behavior of translate_cds so we can pass in the overrides into the method for those positions. This PR adds an optional dictionary param that maps codon position to amino acid, and when the translate method hits those positions, it uses the override instead of the default data.

@kazmiekr kazmiekr merged commit aa15279 into main Sep 26, 2024
6 checks passed
@kazmiekr kazmiekr deleted the feat-exception-mapping branch September 26, 2024 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants