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

Method rightShiftByte

Common/Kmer.cpp:380–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380uint8_t Kmer::rightShiftByte(char* pSeq,
381 unsigned byteNum, unsigned index, uint8_t base)
382{
383 // save the last base
384 uint8_t outBase = pSeq[byteNum] & 0x3;
385
386 // shift right one position
387 pSeq[byteNum] >>= 2;
388
389 // add the new base
390 setBaseCode(pSeq, byteNum, index, base);
391
392 return outBase;
393}
394
395//Set a base by byte number/ sub index
396// beware, this does not check for out of bounds access

Callers

nothing calls this directly

Calls 1

setBaseCodeFunction · 0.85

Tested by

no test coverage detected