Skip to main content

Calculate dN/dS ratio precisely (Ka/Ks) using a codon-by-codon counting method.

Project description

https://travis-ci.org/adelq/dnds.svg?branch=master https://img.shields.io/pypi/v/dnds.svg?maxAge=2592000?style=plastic

Calculate dN/dS ratio precisely (Ka/Ks) using a codon-by-codon counting method. Also calculates the pN/pS ratio precisely (previously referred to as dN/dS).

Usage

>>> sequence_1 = "ATGCTTTTGAAATCG"
>>> sequence_2 = "ATGCGTTCGAAGTCG"
>>> pnps(sequence_1, sequence2)
Fraction(38, 71)
>>> round(float(pnps(sequence_1, sequence2)), 3)
0.535
>>> round(dnds(sequence_1, sequence_2), 3)
0.467

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dnds, version 2.1
Filename, size File type Python version Upload date Hashes
Filename, size dnds-2.1-py2.py3-none-any.whl (3.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page