pub struct DataInterval {
pub chr_index: u32,
pub start: i64,
pub end: i64,
pub value: f32,
pub valid_count: i64,
pub min_value: f32,
pub max_value: f32,
pub sum_squared: f64,
}Expand description
One value of the file over a genomic range.
valid_count is the bases of the range that actually carry data: equal to
the span at full resolution, but a zoom record summarises a fixed-width
window that may be mostly empty, and weighting by the span instead would
inflate every summed or counted quantification as the zoom level rises.
min_value/max_value/sum_squared are the record’s own, not derived
from value. At a zoom level value is the window mean, so taking extremes
and spread from it would give the largest and smallest window rather than
base — both pulled towards the middle, and further with every level — and
would leave sd with only the variance between windows.
Fields§
§chr_index: u32§start: i64§end: i64§value: f32§valid_count: i64§min_value: f32§max_value: f32§sum_squared: f64Trait Implementations§
Source§impl Clone for DataInterval
impl Clone for DataInterval
Source§fn clone(&self) -> DataInterval
fn clone(&self) -> DataInterval
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 moreimpl Copy for DataInterval
Source§impl Debug for DataInterval
impl Debug for DataInterval
Source§impl PartialEq for DataInterval
impl PartialEq for DataInterval
impl StructuralPartialEq for DataInterval
Auto Trait Implementations§
impl Freeze for DataInterval
impl RefUnwindSafe for DataInterval
impl Send for DataInterval
impl Sync for DataInterval
impl Unpin for DataInterval
impl UnsafeUnpin for DataInterval
impl UnwindSafe for DataInterval
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