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

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

#include <Sequence/GranthamWeights.hpp>

Inheritance diagram for Sequence::GranthamWeights2:
Sequence::WeightingScheme2

List of all members.

Public Member Functions

 GranthamWeights2 (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 2 sites.

Definition at line 49 of file GranthamWeights.hpp.


Constructor & Destructor Documentation

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

Definition at line 35 of file GranthamWeights.cc.


Member Function Documentation

void Sequence::GranthamWeights2::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::WeightingScheme2.

Definition at line 46 of file GranthamWeights.cc.

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

Implements Sequence::WeightingScheme2.

Definition at line 101 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