codon.cpp File Reference

#include "codon.h"
#include <cstring>
#include <cstdlib>
#include <fstream>

Functions

bool isCodonHeader (const string &line)
int hashbase (char n)
int hashcodon (char c[3])
int hashcodon (const string &cc)

Function Documentation

int hashbase ( char  n  ) 

convert base to integer A=>0, C=>1, G=>2, T,U=>3, S,W,R,Y,K,M,B,V,H,D,N => 4-14 regardless of case

Referenced by DNA::getcodeNuc(), hashcodon(), and Matrix::read().

int hashcodon ( const string &  cc  ) 

References hashbase().

int hashcodon ( char  c[3]  ) 

convert 3-letter codon to a integer from 0-63 for regular codon with letter from [ACGT] if codon length is 1 then return 64, 2 ten 65, other 66

References hashbase().

Referenced by codon::convert(), and codon::operator[]().

bool isCodonHeader ( const string &  line  ) 

Referenced by codon::readCodonTable().


Generated on Wed Aug 10 11:57:00 2011 for Softwares from Orpara by  doxygen 1.5.6