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.
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.
from python_codon_tables import get_codons_table
from python_codon_tables import available_codon_tables_names
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
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.