pub struct SequenceMatchResult {
pub sample_barcode: String,
pub counted_barcodes: Vec<String>,
pub counted_barcode_error: bool,
pub sample_barcode_error: bool,
pub random_barcode: Option<String>,
}Expand description
A struct to hold the results of the regex search on the sequence along with perform the functions to fix and find
Fields§
§sample_barcode: String§counted_barcodes: Vec<String>§counted_barcode_error: bool§sample_barcode_error: bool§random_barcode: Option<String>Implementations§
Source§impl SequenceMatchResult
impl SequenceMatchResult
pub fn new( barcodes: Captures<'_>, barcode_groups: &[String], counted_barcode_seqs: &[AHashSet<String>], counted_barcode_max_errors: &[u16], sample_seqs: &AHashSet<String>, sample_seqs_max_errors: u16, ) -> SequenceMatchResult
Sourcepub fn barcode_string(&self) -> String
pub fn barcode_string(&self) -> String
Returns a comma separated counted barcodes string. Perfect for CSV file writing
Auto Trait Implementations§
impl Freeze for SequenceMatchResult
impl RefUnwindSafe for SequenceMatchResult
impl Send for SequenceMatchResult
impl Sync for SequenceMatchResult
impl Unpin for SequenceMatchResult
impl UnwindSafe for SequenceMatchResult
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> 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