pub struct Sample {
pub sample_id: String,
pub barcode: String,
pub read_structures: Option<Vec<ReadStructure>>,
/* private fields */
}Expand description
Struct for describing a single sample and metadata associated with that sample.
Fields§
§sample_id: StringID of the sample or library
barcode: StringDNA barcode associated with the sample
read_structures: Option<Vec<ReadStructure>>Optional per-sample read structures (one per input FASTQ). When present, these
override the global --read-structures for this sample, both for matching pattern
construction and for output extraction.
Implementations§
Source§impl Sample
impl Sample
Sourcepub fn with_read_structures(
ordinal: usize,
name: String,
barcode: String,
read_structures: Option<Vec<ReadStructure>>,
) -> Self
pub fn with_read_structures( ordinal: usize, name: String, barcode: String, read_structures: Option<Vec<ReadStructure>>, ) -> Self
Like Sample::new but allows attaching per-sample read structures.
Sourcepub fn deserialize_header_line() -> String
pub fn deserialize_header_line() -> String
Returns the header line expected by the metadata file deserializer. Only the two required
columns are reported; per-sample read_structure_<n> columns are optional.
Trait Implementations§
impl StructuralPartialEq for Sample
Auto Trait Implementations§
impl Freeze for Sample
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnsafeUnpin for Sample
impl UnwindSafe for Sample
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