Skip to content

Commit

Permalink
change def of supplementary
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Patro committed Aug 17, 2024
1 parent 022f0fe commit 8057f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ impl Aligner {
(*((*(self.idx.unwrap())).seq.offset(reg.rid as isize))).name;

let is_primary = reg.parent == reg.id;
let is_supplementary = (reg.parent == reg.id && !reg.sam_pri());
let is_supplementary = (reg.parent == reg.id) && (reg.sam_pri() == 0);

// todo holy heck this code is ugly
let alignment = if !reg.p.is_null() {
Expand Down

0 comments on commit 8057f2d

Please sign in to comment.