Registry / ai-ml / python-codon-tables

python-codon-tables

JSON →
library0.1.18pypypi✓ verified 30d 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.

ai-ml
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
Debug
Known footguns
gotchaTaxonomy IDs are integers but often used as strings; mixed usage may cause KeyError.
gotchaSome species have multiple tables (different strains). The function returns only one; check table sources.
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.

Agent activity
10 hits · last 30 days
gptbot
3
bingbot
1
mj12bot
1
ahrefsbot
1
Resources