Struct barcode_count::parse::SequenceMatchResult [−][src]
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: 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: Stringcounted_barcodes: Vec<String>counted_barcode_error: boolsample_barcode_error: boolrandom_barcode: StringImplementations
pub fn new(
barcodes: Captures<'_>,
barcode_groups: &[String],
counted_barcode_seqs: &[HashSet<String>],
counted_barcode_max_errors: &[u8],
sample_seqs: &HashSet<String>,
sample_seqs_max_errors: u8
) -> Result<SequenceMatchResult, Box<dyn Error>>
Returns a comma separated counted barcodes string. Perfect for CSV file writing