Skip to content

Commit

Permalink
Only trigger chimeric read when there are reads in both the forward a…
Browse files Browse the repository at this point in the history
…nd reverse strands

If there are multiple chimeric reads which are all in the same direction, then Flexiplex will automatically split the
reads and so there is no need for chimeric read reporting.
  • Loading branch information
olliecheng committed Mar 25, 2024
1 parent 2a1d913 commit a11676e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flexiplex.c++
Original file line number Diff line number Diff line change
Expand Up @@ -564,9 +564,9 @@ void search_read(vector<SearchResult> & reads, unordered_set<string> & known_bar

reads[r].count = forward_reads.size() + reverse_reads.size();

// a chimeric read occurs when there are more than 1 detected barcodes in
// a single read
reads[r].chimeric = reads[r].count > 1;
// a chimeric read occurs when there are barcodes detected in both the forward
// and reverse strands.
reads[r].chimeric = forward_reads.size() && reverse_reads.size();
}
}

Expand Down

0 comments on commit a11676e

Please sign in to comment.