pub enum BarcodePattern {
String(StringPattern),
Regex(RegexPattern),
}Expand description
A parsed barcode pattern that knows how to extract UMI/cell/sample bases from a read.
Variants§
String(StringPattern)
Regex(RegexPattern)
Implementations§
Source§impl BarcodePattern
impl BarcodePattern
Sourcepub fn extract(
&self,
sequence: &[u8],
quality: &[u8],
) -> Result<ExtractionResult, ExtractError>
pub fn extract( &self, sequence: &[u8], quality: &[u8], ) -> Result<ExtractionResult, ExtractError>
§Errors
Returns error if the read is too short (string method) or doesn’t match (regex method).
Trait Implementations§
Source§impl Clone for BarcodePattern
impl Clone for BarcodePattern
Source§fn clone(&self) -> BarcodePattern
fn clone(&self) -> BarcodePattern
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 moreAuto Trait Implementations§
impl Freeze for BarcodePattern
impl RefUnwindSafe for BarcodePattern
impl Send for BarcodePattern
impl Sync for BarcodePattern
impl Unpin for BarcodePattern
impl UnsafeUnpin for BarcodePattern
impl UnwindSafe for BarcodePattern
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