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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dnds-2.1-py2.py3-none-any.whl (3.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file dnds-2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: dnds-2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dnds-2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 31b24e1715d2f2ab05499772cb98c9e93af34c0744cd8c4d3836d264ac3a3617
MD5 01f80aa5e27e90b1417dfc1bda21e5aa
BLAKE2b-256 b5c8c538ab1fd1629b4f0692071d0a175cb191cffbc6a7c5c6636b604de80003

See more details on using hashes here.

Supported by

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