Metadata-Version: 2.1
Name: cai2
Version: 1.0.4a3
Summary: Python implementation of codon adaptation index
License: MIT
Author: Benjamin Lee
Author-email: benjamin_lee@college.harvard.edu
Requires-Python: >=3.8,<3.12
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: biopython (>=1.80)
Requires-Dist: click (>=8.1.3)
Requires-Dist: scipy (>=1.10.0)
Description-Content-Type: text/markdown

Python Codon Adaptation Index
=============================

![DOI](http://joss.theoj.org/papers/8adf6bd9fd6391d5343d15ea0b6b6525/status.svg%0A%20:target:%20http://joss.theoj.org/papers/8adf6bd9fd6391d5343d15ea0b6b6525)
![Docs](https://readthedocs.org/projects/cai/badge/?version=latest%0A%20:target:%20https://cai.readthedocs.io/en/latest/?badge=latest%0A%20:alt:%20Documentation%20Status)
![Travis](https://travis-ci.org/Benjamin-Lee/CodonAdaptationIndex.svg?branch=master%0A%20:target:%20https://travis-ci.org/Benjamin-Lee/CodonAdaptationIndex)
![CodeFactor](https://www.codefactor.io/repository/github/benjamin-lee/codonadaptationindex/badge/master%0A%20:target:%20https://www.codefactor.io/repository/github/benjamin-lee/codonadaptationindex/overview/master)
![PyPI](https://img.shields.io/pypi/v/CAI.svg%0A%20:target:%20https://pypi.org/project/CAI/)

An implementation of [Sharp and Li's 1987
formulation](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC340524/pdf/nar00247-0410.pdf)
of the [codon adaption
index](https://en.wikipedia.org/wiki/Codon_Adaptation_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](http://genomes.urv.cat/HEG-DB/) is a great
resource of highly expressed genes.

Contributing and Getting Support
--------------------------------

If you encounter any issues using CAI, feel free to [create an
issue](https://github.com/Benjamin-Lee/CodonAdaptationIndex/issues).

To contribute to the project, please [create a pull
request](https://github.com/Benjamin-Lee/CodonAdaptationIndex/pulls).
For more information on how to do so, please look at GitHub's
[documentation on pull
requests](https://help.github.com/articles/about-pull-requests).

Citation
--------

Lee, B. D. (2018). Python Implementation of Codon Adaptation Index.
*Journal of Open Source Software, 3* (30), 905.
[<https://doi.org/10.21105/joss.00905>](https://doi.org/10.21105/joss.00905)
:

    @article{Lee2018,
      doi = {10.21105/joss.00905},
      url = {https://doi.org/10.21105/joss.00905},
      year  = {2018},
      month = {oct},
      publisher = {The Open Journal},
      volume = {3},
      number = {30},
      pages = {905},
      author = {Benjamin D. Lee},
      title = {Python Implementation of Codon Adaptation Index},
      journal = {Journal of Open Source Software}

Contact
-------

I'm available for contact at
[<benjamin_lee@college.harvard.edu>](mailto: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.

