Sequence::GranthamWeights3 Class Reference
[Classes and functions relating to pathway weighting for Ka/Ks]

Weights paths by Grantham's distances for codons differing at 3 sites. More...

#include <Sequence/GranthamWeights.hpp>

Inheritance diagram for Sequence::GranthamWeights3:
Sequence::WeightingScheme3

List of all members.

Public Member Functions

 GranthamWeights3 (Sequence::GeneticCodes genetic_code=Sequence::UNIVERSAL)
void Calculate (const std::string &codon1, const std::string &codon2) const
double * weights (void) const

Detailed Description

Weights paths by Grantham's distances for codons differing at 3 sites.

Definition at line 61 of file GranthamWeights.hpp.


Constructor & Destructor Documentation

Sequence::GranthamWeights3::GranthamWeights3 ( Sequence::GeneticCodes  genetic_code = Sequence::UNIVERSAL  )  [explicit]
Parameters:
genetic_code the code used to Translate the codons

Definition at line 109 of file GranthamWeights.cc.


Member Function Documentation

void Sequence::GranthamWeights3::Calculate ( const std::string &  codon1,
const std::string &  codon2 
) const [virtual]

Calculate actually calculates the weights for each branch

Parameters:
codon1 a std::string of length 3 representing a sense codon
codon2 a std::string of length 3 representing a sense codon

Implements Sequence::WeightingScheme3.

Definition at line 120 of file GranthamWeights.cc.

double * Sequence::GranthamWeights3::weights ( void   )  const [virtual]
Returns:
a double * of size 6 (1 value for each branch)

Implements Sequence::WeightingScheme3.

Definition at line 250 of file GranthamWeights.cc.


The documentation for this class was generated from the following files:

Generated on Mon Jul 12 15:22:03 2010 for libsequence by  doxygen 1.6.1