libsequence  1.9.5
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=GeneticCodes::UNIVERSAL, const char &gapchar='-')
 

Detailed Description

Function Documentation

◆ Translate()

std::string Sequence::Translate ( std::string::const_iterator  beg,
std::string::const_iterator  end,
Sequence::GeneticCodes  genetic_code = GeneticCodes::UNIVERSAL,
const char &  gapchar = '-' 
)
Parameters
bega pointer to the beginning of the region to translate
enda pointer to 1 past the end of the region to translate
genetic_codemust be a value from the enumeration list Sequence::GeneticCodes
gapchara character representing an alignment gap
Returns
a string representing the translation of the range
Exceptions
std::runtime_errorif genetic_code is invalid
#include <Sequence/Translate.hpp>

Definition at line 223 of file Translate.cc.