Skip to content

Commit

Permalink
Search both the forward and revcomp of the ref and alt (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 authored Oct 13, 2021
1 parent 8bc0046 commit 0514930
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,12 @@ fn main() -> Result<()> {
.into_par_iter()
.map(|(r1, r2)| {
let ref_match = r1.seq.find(ref_forward_seq).is_some()
|| r1.seq.find(&ref_revcomp_seq).is_some()
|| r2.seq.find(ref_forward_seq).is_some()
|| r2.seq.find(&ref_revcomp_seq).is_some();
let alt_match = r1.seq.find(alt_forward_seq).is_some()
|| r1.seq.find(&alt_revcomp_seq).is_some()
|| r2.seq.find(alt_forward_seq).is_some()
|| r2.seq.find(&alt_revcomp_seq).is_some();
let m = match (ref_match, alt_match) {
(true, true) => Matches::Both,
Expand Down

0 comments on commit 0514930

Please sign in to comment.