pub struct SequenceFormat {
pub format_string: String,
pub regions_string: String,
pub length: usize,
pub constant_region_length: u16,
pub format_regex: Regex,
pub barcode_num: usize,
pub barcode_lengths: Vec<u16>,
pub sample_length_option: Option<u16>,
pub random_barcode: bool,
pub sample_barcode: bool,
}Fields§
§format_string: String§regions_string: String§length: usize§constant_region_length: u16§format_regex: Regex§barcode_num: usize§barcode_lengths: Vec<u16>§sample_length_option: Option<u16>§random_barcode: bool§sample_barcode: boolImplementations§
Source§impl SequenceFormat
impl SequenceFormat
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Creates a new empty SequenceFormat struct
§Example
use barcode_count::info::SequenceFormat;
let sequence_format = SequenceFormat::new();Sourcepub fn parse_format_file(format_path: &str) -> Result<Self>
pub fn parse_format_file(format_path: &str) -> Result<Self>
Parses the format file into all fields of the SequenceFormat struct, including the regex search, barcode sizes, and sequence format strings.
Trait Implementations§
Source§impl Clone for SequenceFormat
impl Clone for SequenceFormat
Source§fn clone(&self) -> SequenceFormat
fn clone(&self) -> SequenceFormat
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 moreSource§impl Debug for SequenceFormat
impl Debug for SequenceFormat
Auto Trait Implementations§
impl Freeze for SequenceFormat
impl RefUnwindSafe for SequenceFormat
impl Send for SequenceFormat
impl Sync for SequenceFormat
impl Unpin for SequenceFormat
impl UnwindSafe for SequenceFormat
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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