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

Function getBaseCode

Common/Kmer.cpp:431–436  ·  view source on GitHub ↗

get a base code by the byte number and sub index

Source from the content-addressed store, hash-verified

429
430// get a base code by the byte number and sub index
431static uint8_t getBaseCode(const char* pSeq,
432 unsigned byteNum, unsigned index)
433{
434 unsigned shiftLen = 2 * (3 - index);
435 return (pSeq[byteNum] >> shiftLen) & 0x3;
436}
437
438static unsigned seqIndexToByteNumber(unsigned seqIndex)
439{

Callers 3

isCanonicalMethod · 0.85
shiftPrependMethod · 0.85
atMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected