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

Add different codon tables usage #3

Open
nchenche opened this issue May 4, 2022 · 0 comments
Open

Add different codon tables usage #3

nchenche opened this issue May 4, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@nchenche
Copy link
Collaborator

nchenche commented May 4, 2022

During orftrack annotation process, ORFs are first defined from stop at stop codons. The stop codons and all other codons are hardcoded and come from the standard genetic code. This is problematic if the species (or even a human mitochondria) uses a different genetic code.

The hardcoded genetic code used to define stop codons (among others) needs to be somehow adjusted so that users can choose the codon table that fit it needs. A parameter could be used to set the desired codon table.

(https://www.ncbi.nlm.nih.gov/Taxonomy/Utils/wprintgc.cgi?chapter=tgencodes)

Infos from biopython package

import Bio.Data.CodonTable as ct
for k,v in ct.generic_by_id.items():
     print(k, v)

# k is the key id referring to the genetic table (same id as the one in the ncbi link above)
# v is an instance of the NCBICodonTable class with the following attributes:
v.id  # -> 33
v.names  # -> ['Cephalodiscidae Mitochondrial', None]
v.forward_table  # -> {'TTT': 'F', 'UUU': 'F', ...}
v.back_table  # -> {'K': 'AGG', 'N': 'AAU', ...}
v.start_codons  # -> ['TTG', 'UUG', 'CTG', 'CUG', 'ATG', 'AUG', 'GTG', 'GUG']
v.stop_codons   # -> ['TAG', 'UAG']
@nchenche nchenche added the enhancement New feature or request label May 4, 2022
@nchenche nchenche self-assigned this May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant