Skip to main content

Python implementation of codon adaptation index, updated for PyPI compatibility

Project description

CAI-PyPI: An updated version of the Codon Adaptation Index (CAI) package

This package is based on the original CAI project by Benjamin Lee (https://github.com/Benjamin-Lee/CodonAdaptationIndex). It has been updated to resolve compatibility issues with PyPI and ensure the latest version is easily accessible via pip. While maintaining the core functionality of the original project, this version aims to provide a smoother installation process and better integration with PyPI.

Original README:

Python Codon Adaptation Index (CAI-PyPI)

PyPI

This is a fork of the original Codon Adaptation Index project by Benjamin Lee. It has been updated to resolve compatibility issues with PyPI and ensure the latest version is easily accessible via pip.

Original Project Information

DOI Docs CodeFactor

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

Why This Fork?

The original CAI package had some issues with PyPI compatibility, making it difficult for users to install via pip. This fork (CAI-PyPI) addresses these issues, providing a smoother installation process and better integration with PyPI. While maintaining the core functionality of the original project, CAI-PyPI ensures that users can easily access and use the latest version of the Codon Adaptation Index implementation.

Installation

Installing CAI-PyPI (Recommended)

This forked version is available from PyPI and can be downloaded with the following command:

$ pip install CAI-PyPI

Installing the Original CAI (For Reference)

The original module is available from PyPI and can be downloaded with the following command:

$ pip install CAI

To install the latest development version of the original project:

$ 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 and Getting Support

If you encounter any issues using CAI-PyPI, feel free to create an issue.

To contribute to the project, please create a pull request.

Citation

If you use this software in your work, please cite the original paper:

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

@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

For issues related to this fork (CAI-PyPI), please contact Adibvafa Fallahpour at Adibvafafallahpour@gmail.com.

For matters related to the original project, Benjamin Lee is available 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-PyPI-2.0.1.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

CAI_PyPI-2.0.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file CAI-PyPI-2.0.1.tar.gz.

File metadata

  • Download URL: CAI-PyPI-2.0.1.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.2

File hashes

Hashes for CAI-PyPI-2.0.1.tar.gz
Algorithm Hash digest
SHA256 88c2340f8a30579fb9c48708c7bda32516abd05d2be71a57e382a4b82c92010a
MD5 cce7432a155359de27021360dd59c605
BLAKE2b-256 f78a8af8e49d0fc57ec662db7d425e3054f77f89faaa97459b68dfd25fdd7090

See more details on using hashes here.

File details

Details for the file CAI_PyPI-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: CAI_PyPI-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.2

File hashes

Hashes for CAI_PyPI-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6d72c1a75973e38b3c3a20b35c5db75c06f97741182fc4fe4fa24b963a5f2668
MD5 f0d2161ee14a7dc50802454610610afc
BLAKE2b-256 d597ba5ce417199b1457adc092454886cbeef6dd3cf04a58305e378a508ffa08

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