codon.h File Reference

#include <map>
#include <string>
#include <iostream>
#include <vector>
#include <set>

Go to the source code of this file.

Classes

class  codon

Functions

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

int hashcodon ( const string &  cc  ) 

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


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