Miscellany

Files

file  Comparisons.hpp
 

delcaration of routines for comparing DNA sequences This file declares a set of functions useful for comparing two bits of sequence data--sequences, nucleotides, etc.


Functions

std::string Sequence::Translate (std::string::const_iterator beg, std::string::const_iterator end, Sequence::GeneticCodes genetic_code, const char &gapchar) throw (Sequence::SeqException)

Function Documentation

std::string Sequence::Translate ( std::string::const_iterator  beg,
std::string::const_iterator  end,
Sequence::GeneticCodes  genetic_code = Sequence::UNIVERSAL,
const char &  gapchar = '-' 
) throw (Sequence::SeqException)
Parameters:
beg a pointer to the beginning of the region to translate
end a pointer to 1 past the end of the region to translate
genetic_code must be a value from the enumeration list Sequence::GeneticCodes
gapchar a character representing an alignment gap
Returns:
a string representing the translation of the range
Exceptions:
Sequence::SeqException if genetic_code is invalid


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