pub struct BarcodeConversions {
pub samples_barcode_hash: HashMap<String, String>,
pub sample_seqs: AHashSet<String>,
pub counted_barcodes_hash: Vec<HashMap<String, String>>,
pub counted_barcode_seqs: Vec<AHashSet<String>>,
}Expand description
Contains all possible barcode sequences for error handling and barcode to ID conversion
Fields§
§samples_barcode_hash: HashMap<String, String>§sample_seqs: AHashSet<String>§counted_barcodes_hash: Vec<HashMap<String, String>>§counted_barcode_seqs: Vec<AHashSet<String>>Implementations§
Source§impl BarcodeConversions
impl BarcodeConversions
Sourcepub fn sample_barcode_file_conversion(
&mut self,
barcode_path: &str,
) -> Result<()>
pub fn sample_barcode_file_conversion( &mut self, barcode_path: &str, ) -> Result<()>
Reads in comma separated barcode file (CSV). The columns need to have headers. The first column needs to be the nucleotide barcode and the second needs to be the ID
Sourcepub fn barcode_file_conversion(
&mut self,
barcode_path: &str,
barcode_num: usize,
) -> Result<()>
pub fn barcode_file_conversion( &mut self, barcode_path: &str, barcode_num: usize, ) -> Result<()>
Reads in comma separated barcode file (CSV). The columns need to have headers. The first column needs to be the nucleotide barcode the second needs to be the ID, and the third needs to be the barcode index location
§Panics
This panics if the third column of the barcode conversion file does not contain integers. Also panics if not all integers for barcode numbers is within this columns
Sourcepub fn get_sample_seqs(&mut self)
pub fn get_sample_seqs(&mut self)
Creates a hashmap of all sample barcode sequences in order to compare for sequencing errors
Sourcepub fn get_barcode_seqs(&mut self)
pub fn get_barcode_seqs(&mut self)
Creates a hashmap of all counted barcode sequences in order to compare for sequencing errors
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BarcodeConversions
impl RefUnwindSafe for BarcodeConversions
impl Send for BarcodeConversions
impl Sync for BarcodeConversions
impl Unpin for BarcodeConversions
impl UnwindSafe for BarcodeConversions
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
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>
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>
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