MCPcopy Create free account
hub / github.com/BirolLab/abyss / baseToCode

Function baseToCode

Common/Sequence.cpp:96–105  ·  view source on GitHub ↗

Return the base enumeration for the specified character. */

Source from the content-addressed store, hash-verified

94
95/** Return the base enumeration for the specified character. */
96uint8_t baseToCode(char base)
97{
98 uint8_t r = b2C[unsigned(base)];
99 if (r != 0xFF) return r;
100
101 cerr << "error: unexpected character: '"
102 << base << "'\n";
103 assert(false);
104 abort();
105}
106
107char codeToBase(uint8_t code)
108{

Callers 8

buildBaseQualityFunction · 0.85
writePileupFunction · 0.85
KmerMethod · 0.85
colourToNucleotideSpaceFunction · 0.85
nucleotideToColourSpaceFunction · 0.85
ambiguityToBitmaskFunction · 0.85
find_complex_overlapFunction · 0.85
maskKmerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected