18 #include "BaseUtilities.h" 20 #include "BaseAsciiMap.h" 47 if((base1 ==
'=') || (base2 ==
'='))
53 if(toupper(base1) == toupper(base2))
72 return(charQuality - 33);
82 return(phredQuality + 33);
86 void BaseUtilities::reverseComplement(std::string& sequence)
89 int end = sequence.size() - 1;
94 tempChar = sequence[start];
105 tempChar = sequence[start];
static const char UNKNOWN_QUALITY_CHAR
Character used when the quality is unknown.
static char getAsciiQuality(uint8_t phredQuality)
Get ascii quality from the specified phred quality.
static bool areEqual(char base1, char base2)
Returns whether or not two bases are equal (case insensitive), if one of the bases is '='...
static uint8_t getPhredBaseQuality(char charQuality)
Get phred base quality from the specified ascii quality.
static const uint8_t UNKNOWN_QUALITY_INT
Int value used when the quality is unknown.
static unsigned char base2complement[]
This table maps 5' base space to the 3' complement base space values, as well as 5' color space value...
static bool isAmbiguous(char base)
Returns whether or not the specified bases is an indicator for ambiguity.