pub struct NarrowPeak {
pub chrom: String,
pub start: u64,
pub end: u64,
pub name: Option<String>,
pub score: Option<Score>,
pub strand: Option<Strand>,
pub signal_value: f64,
pub p_value: f64,
pub q_value: f64,
pub peak: u64,
}Expand description
A standard BED record.
Fields§
§chrom: String§start: u64§end: u64§name: Option<String>§score: Option<Score>§strand: Option<Strand>§signal_value: f64§p_value: f64§q_value: f64§peak: u64Trait Implementations§
source§impl BEDLike for NarrowPeak
impl BEDLike for NarrowPeak
source§fn set_start(&mut self, start: u64) -> &mut Self
fn set_start(&mut self, start: u64) -> &mut Self
Change the 0-based start position of the record
source§fn set_end(&mut self, end: u64) -> &mut Self
fn set_end(&mut self, end: u64) -> &mut Self
Change the end position (non-inclusive) of the record
source§fn len(&self) -> u64
fn len(&self) -> u64
Return the length of the record. Return 0 if the end position is smaller
than the start position.
fn compare(&self, other: &Self) -> Ordering
source§fn n_overlap<B: BEDLike>(&self, other: &B) -> u64
fn n_overlap<B: BEDLike>(&self, other: &B) -> u64
Return the size of overlap between two records
source§fn to_genomic_range(&self) -> GenomicRange
fn to_genomic_range(&self) -> GenomicRange
Convert the record to a
GenomicRangesource§impl Clone for NarrowPeak
impl Clone for NarrowPeak
source§fn clone(&self) -> NarrowPeak
fn clone(&self) -> NarrowPeak
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for NarrowPeak
impl Debug for NarrowPeak
source§impl<'de> Deserialize<'de> for NarrowPeak
impl<'de> Deserialize<'de> for NarrowPeak
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for NarrowPeak
impl Display for NarrowPeak
source§impl FromStr for NarrowPeak
impl FromStr for NarrowPeak
source§impl PartialEq for NarrowPeak
impl PartialEq for NarrowPeak
source§impl Serialize for NarrowPeak
impl Serialize for NarrowPeak
impl StructuralPartialEq for NarrowPeak
Auto Trait Implementations§
impl Freeze for NarrowPeak
impl RefUnwindSafe for NarrowPeak
impl Send for NarrowPeak
impl Sync for NarrowPeak
impl Unpin for NarrowPeak
impl UnwindSafe for NarrowPeak
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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