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

Method checkRead

src/duplicate.cpp:122–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122bool Duplicate::checkRead(Read* r) {
123 // max mBufNum is 8 (accuracy level 6), stack-allocate to avoid heap alloc per read
124 uint64 positions[8] = {0};
125 int len = r->length();
126 seq2intvector(r->mSeq->c_str(), len, positions);
127 bool isDup = applyBloomFilter(positions);
128
129 mTotalReads++;
130 if(isDup)
131 mDupReads++;
132
133 return isDup;
134}
135
136bool Duplicate::checkPair(Read* r1, Read* r2) {
137 // max mBufNum is 8 (accuracy level 6), stack-allocate to avoid heap alloc per read

Callers 1

processSingleEndMethod · 0.80

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected