From a48cb667e86398b7f9aea3a26a92ce14a535bed7 Mon Sep 17 00:00:00 2001 From: Andrew D Smith Date: Tue, 24 Sep 2024 12:14:56 -0700 Subject: [PATCH] src/StreamReader.cpp: for the BamReader class, adding a reset to the bitvector that indicates for each adapter if it has been found already within the current read. This reset existed in the corresponding functions for other file formats, but was forgotten for the BAM format --- src/StreamReader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/StreamReader.cpp b/src/StreamReader.cpp index d3a65c2..b964f12 100644 --- a/src/StreamReader.cpp +++ b/src/StreamReader.cpp @@ -927,6 +927,7 @@ BamReader::read_sequence_line(FastqStats &stats) { still_in_buffer = true; next_truncation = 100; do_kmer_read = (stats.num_reads == next_kmer_read); + adapters_found.reset(); const size_t seq_len = b->core.l_qseq; // MN: TODO: make sure everything works in this scope