Registry / ai-ml / python-codon-tables

python-codon-tables

JSON →
library0.1.18pypypi✓ verified 82d ago

Provides codon usage tables for hundreds of organisms, sourced from Kazusa (https://www.kazusa.or.jp/codon/). Version 0.1.18 is the latest. Development is slow; no recent breaking changes.

pip install python-codon-tables
INSTALL
IMPORT
SIG · PYTHON-CODON-TABLE
P
python-codon-tables
ai-mlpythonv0.1.18
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

get_codons_table
from python_codon_tables import get_codons_table
from codon_tables import get_codons_table
available_codon_tables_names
from python_codon_tables import available_codon_tables_names
get_all_available_codons_tables
from python_codon_tables import get_all_available_codons_tables

Fetch codon usage table for a taxonomy ID.

from codon_tables import get_codons_table table = get_codons_table('9606') # Homo sapiens (Taxonomy ID 9606) print(table['T']) # codon TTT? Actually keys are codons print(table['TTT']) # Should be 0.58 or similar
Debug
Known issues
gotchaTaxonomy IDs are integers but often used as strings; mixed usage may cause KeyError.
fix
Always pass taxonomy ID as a string, e.g., '9606', or use str() when converting.
affects: all
gotchaSome species have multiple tables (different strains). The function returns only one; check table sources.
fix
If a specific strain is needed, use the exact taxonomy ID or consider an alternative source.
affects: all
Upgrade
Version history
0.1.18latest on PyPI · released May 9, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
8
OpenAI (training)
2
Resources
python-codon-tables — pip install python-codon-tables · libregistry