MCPcopy Create free account
hub / github.com/OpenGene/fastp / seq2intvector

Method seq2intvector

src/duplicate.cpp:111–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109};
110
111void Duplicate::seq2intvector(const char* data, int len, uint64* output, int posOffset) {
112 for(int p=0; p<len; p++) {
113 uint64 base = SEQ_HASH_VAL[static_cast<unsigned char>(data[p])];
114 for(int i=0; i<mBufNum; i++) {
115 int offset = (p+posOffset)*mBufNum + i;
116 offset &= mOffsetMask;
117 output[i] += mPrimeArrays[offset] * (base + (p+posOffset));
118 }
119 }
120}
121
122bool Duplicate::checkRead(Read* r) {
123 // max mBufNum is 8 (accuracy level 6), stack-allocate to avoid heap alloc per read

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected