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

Method leftShiftByte

Common/Kmer.cpp:365–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365uint8_t Kmer::leftShiftByte(char* pSeq,
366 unsigned byteNum, unsigned index, uint8_t base)
367{
368 // save the first base
369 uint8_t outBase = (pSeq[byteNum] >> 6) & 0x3;
370
371 // shift left one position
372 pSeq[byteNum] <<= 2;
373
374 // Set the new base
375 setBaseCode(pSeq, byteNum, index, base);
376
377 return outBase;
378}
379
380uint8_t Kmer::rightShiftByte(char* pSeq,
381 unsigned byteNum, unsigned index, uint8_t base)

Callers

nothing calls this directly

Calls 1

setBaseCodeFunction · 0.85

Tested by

no test coverage detected