Skip to content

Commit

Permalink
fix: clean up cli interactions with pileup
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvollger committed Jul 18, 2024
1 parent cfb6feb commit d7f35ae
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/pileup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,24 @@ pub struct FireRow<'a> {

impl PartialEq for FireRow<'_> {
fn eq(&self, other: &Self) -> bool {
let m6a = if self.pileup_opts.m6a {
self.m6a_coverage == other.m6a_coverage
} else {
true
};
let cpg = if self.pileup_opts.cpg {
self.cpg_coverage == other.cpg_coverage
} else {
true
};

self.coverage == other.coverage
&& self.fire_coverage == other.fire_coverage
&& self.score == other.score
&& self.nuc_coverage == other.nuc_coverage
&& self.msp_coverage == other.msp_coverage
&& self.cpg_coverage == other.cpg_coverage
&& self.m6a_coverage == other.m6a_coverage
&& cpg
&& m6a
}
}

Expand Down

0 comments on commit d7f35ae

Please sign in to comment.