Skip to main content

Python implementation of codon adaptation index

Project description

DOI Documentation Status Travis CodeFactor

An implementation of Sharp and Li’s 1987 formulation of the codon adaption index.

Installation

This module is available from PyPi and can be downloaded with the following command:

$ pip install CAI

To install the latest development version:

$ pip install git+https://github.com/Benjamin-Lee/CodonAdaptationIndex.git

Quickstart

Finding the CAI of a sequence is easy:

>>> from CAI import CAI
>>> CAI("ATG...", reference=["ATGTTT...", "ATGCGC...",...])
0.24948128951724224

Similarly, from the command line:

$ CAI -s sequence.fasta -r reference_sequences.fasta
0.24948128951724224

Determining which sequences to use as the reference set is left to the user, though the HEG-DB is a great resource of highly expressed genes.

Contributing

Feel free to contribute, open issues, or let me know about bugs. Anything is welcome!

Citation

Benjamin Lee. (2017). Python Implementation of Codon Adaptation Index. Zenodo. http://doi.org/10.5281/zenodo.843854

JOSS citation coming soon.

Contact

I’m available for contact at benjamin_lee@college.harvard.edu.

Reference

Sharp, P. M., & Li, W. H. (1987). The codon adaptation index–a measure of directional synonymous codon usage bias, and its potential applications. Nucleic Acids Research, 15(3), 1281–1295.

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

CAI-1.0.1.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file CAI-1.0.1.tar.gz.

File metadata

  • Download URL: CAI-1.0.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for CAI-1.0.1.tar.gz
Algorithm Hash digest
SHA256 91db783bef548bc58f1957ccac5224b6925fc9462dae5d3c9e6dfe62eebbdbdf
MD5 31d86ee1f54e91245cef797df4251e49
BLAKE2b-256 5265f99b121275b078390ba324f4221d1375a99bbcf98bdcf20e3fcb7b583c18

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page