pub struct FastqSegment {
pub seq: Vec<u8>,
pub quals: Vec<u8>,
pub segment_type: SegmentType,
}Expand description
A segment of a FASTQ record representing bases and qualities of a specific type.
FASTQ records can be divided into segments based on their biological function (template, UMI, barcode, etc.). Each segment contains the bases, quality scores, and the segment type.
Fields§
§seq: Vec<u8>The nucleotide bases of this segment (A, C, G, T, N)
quals: Vec<u8>Phred-scaled quality scores (typically ASCII-encoded as Phred+33)
segment_type: SegmentTypeThe biological/functional type of this segment
Trait Implementations§
Source§impl Clone for FastqSegment
impl Clone for FastqSegment
Source§fn clone(&self) -> FastqSegment
fn clone(&self) -> FastqSegment
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 FastqSegment
impl Debug for FastqSegment
Source§impl PartialEq for FastqSegment
impl PartialEq for FastqSegment
impl Eq for FastqSegment
impl StructuralPartialEq for FastqSegment
Auto Trait Implementations§
impl Freeze for FastqSegment
impl RefUnwindSafe for FastqSegment
impl Send for FastqSegment
impl Sync for FastqSegment
impl Unpin for FastqSegment
impl UnsafeUnpin for FastqSegment
impl UnwindSafe for FastqSegment
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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