Struct barcode_count::parse::SequenceMatchResult
source · 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 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