| 120 | } |
| 121 | |
| 122 | bool 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 | |
| 136 | bool Duplicate::checkPair(Read* r1, Read* r2) { |
| 137 | // max mBufNum is 8 (accuracy level 6), stack-allocate to avoid heap alloc per read |
no test coverage detected