pub struct BinnedCoverage {
pub chroms: Vec<ChromBins>,
pub total_binned: u64,
pub total_mapped: u64,
}Expand description
The result of binning one BAM: per-chromosome bin counts plus two read totals that downstream normalisation needs.
Fields§
§chroms: Vec<ChromBins>Per-chromosome bin counts, in header reference order.
total_binned: u64Reads that contributed at least one bin increment — the denominator
deeptools bamCoverage uses for CPM/RPKM/RPGC (reads actually placed on
the genome after the filter and the ref_len > 0 / in-bounds checks).
total_mapped: u64All mapped reads passing the filter, regardless of whether they landed in
a bin — the count deeptools bamCompare uses for its readCount scale
factor (min(m1, m2) / mi). With no filter this equals the BAM’s mapped
read count (bam.mapped).
Implementations§
Source§impl BinnedCoverage
impl BinnedCoverage
Sourcepub fn total_signal(&self) -> u64
pub fn total_signal(&self) -> u64
Total signal across every bin — the BPM denominator
(sum of all bin counts).
Trait Implementations§
Source§impl Clone for BinnedCoverage
impl Clone for BinnedCoverage
Source§fn clone(&self) -> BinnedCoverage
fn clone(&self) -> BinnedCoverage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BinnedCoverage
impl RefUnwindSafe for BinnedCoverage
impl Send for BinnedCoverage
impl Sync for BinnedCoverage
impl Unpin for BinnedCoverage
impl UnsafeUnpin for BinnedCoverage
impl UnwindSafe for BinnedCoverage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more