Codon Usage Tables for Python, from kazusa.or.jp
Project description
Provides codon usage tables as dictionnaries, for Python 3+
Supported organisms include: B. subtilis, C. elegans, D. melanogaster, E. coli, G. gallus, H. sapiens, M. musculus, M. musculus domesticus, S. cerevisiae.
These tables are from kazusa.or.jp and here is the original paper to cite:
Codon usage tabulated from the international DNA sequence databases:
status for the year 2000.
Nakamura, Y., Gojobori, T. and Ikemura, T. (2000) Nucl. Acids Res. 28, 292.
Contribute
This project was started at the Edinburgh Genome Foundry by Zulko and is released on Github under a Public Domain licence (and no warranty whatsoever, please cross-check the codon usage with other sources if you are not sure). Feel free to add other tables if you think of more commonly used species.
Installation
via pip:
pip install python_codon_tables
Manual:
(sudo) python setup.py install
Usage
import python_codon_tables as pct
# PRINT THE LIST OF NAMES OF ALL AVAILABLE TABLES
print ('Available tables:', pct.available_tables)
# LOAD ONE TABLE BY NAME
table = pct.get_table("b_subtilis_1423")
print (table['T']['ACA']) # returns 0.4
print (table['*']['UAA']) # returns 0.61
# LOAD ALL TABLES AT ONCE
codon_tables = pct.get_all_tables()
print (codon_tables['c_elegans_6239']['L']['CUA']) # returns 0.09
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for python_codon_tables-0.1.3.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 268b61fb8a7dd4c4f53d583a451c3f222325f9bce3b50f9cd10857fea010d656 |
|
MD5 | ab88d5781c5fb3b9b0ad09c4d7ce045a |
|
BLAKE2b-256 | ce5fca85baf4f055c20b0a00070c9cec66e8a155c8d8e75dde937dc40ae15f50 |