pub struct SegmentPart {
pub kmer1: u64,
pub kmer2: u64,
pub sample_name: String,
pub contig_name: String,
pub seg_data: Vec<u8>,
pub is_rev_comp: bool,
pub seg_part_no: u32,
}Expand description
Segment part data
Matches C++ AGC’s seg_part_t (agc_compressor.h:29-120) and kk_seg_part_t (lines 124-165)
Fields:
kmer1,kmer2: First and last k-mers of segmentsample_name,contig_name: Origin of segmentseg_data: Compressed segment bytesis_rev_comp: Whether segment is reverse complementedseg_part_no: Part number within contig
Ordering: By (sample_name, contig_name, seg_part_no) for deterministic storage
Fields§
§kmer1: u64§kmer2: u64§sample_name: String§contig_name: String§seg_data: Vec<u8>§is_rev_comp: bool§seg_part_no: u32Trait Implementations§
Source§impl Clone for SegmentPart
impl Clone for SegmentPart
Source§fn clone(&self) -> SegmentPart
fn clone(&self) -> SegmentPart
Returns a duplicate 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 SegmentPart
impl Debug for SegmentPart
Source§impl Ord for SegmentPart
impl Ord for SegmentPart
Source§impl PartialEq for SegmentPart
impl PartialEq for SegmentPart
Source§impl PartialOrd for SegmentPart
impl PartialOrd for SegmentPart
impl Eq for SegmentPart
impl StructuralPartialEq for SegmentPart
Auto Trait Implementations§
impl Freeze for SegmentPart
impl RefUnwindSafe for SegmentPart
impl Send for SegmentPart
impl Sync for SegmentPart
impl Unpin for SegmentPart
impl UnwindSafe for SegmentPart
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