Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
/ dnds Public

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

License

Notifications You must be signed in to change notification settings

adelq/dnds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dN/dS Calculator

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages