NCBI DNA/RNA to protein translation tabled and genetic codes
Project description
Genetic Codes
A Python library for working with the NCBI Genetic Codes
The NCBI Genetic Codes are central to working with alternate genetic codes. This Python tool kit includes a library that exposes the genetic codes so you can query a codon and get its variants or query a code and get its table.
The main function that you want to use has this signature:
amino_acid = translate(codon, translation_table=1, one_letter=False)
The codon
is the codon that you want to translate as either an RNA (e.g. AUG
) or DNA (e.g. ATG
) sequence. The translation_table
is your required translation table (see the NCBI website for valid tables), and one_letter
is whether to return a three letter amino acid code (e.g. Met
or Ter
) or a one letter amino acid code (e.g. M
or *
).
The library provides other ways to access the genetic codes, and those are exemplified in the pytest
files in tests/
Installation
You can install pygenetic_code
with pip.
pip install pygenetic_code
Conda installation is coming.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pygenetic_code-0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9cf1f5835d385b94ac9c5a2389435981b45179a1cb3b70f58fdc7fc3663a3f1 |
|
MD5 | f6cf5b47af7c20cd0280c02177b60b13 |
|
BLAKE2b-256 | 60743de8b3f7823254cc6a7ca4fa3328b71a80eb0a3ab116418577a3f7034b85 |