pub struct WriteFiles { /* private fields */ }Expand description
A struct setup to output results and stat information into files
Implementations§
Source§impl WriteFiles
impl WriteFiles
pub fn new( results_arc: Arc<Mutex<Results>>, sequence_format: SequenceFormat, counted_barcodes_hash: Vec<HashMap<String, String>>, samples_barcode_hash: HashMap<String, String>, args: Args, ) -> Result<Self>
Sourcepub fn write_counts_files(&mut self) -> Result<()>
pub fn write_counts_files(&mut self) -> Result<()>
Sets up and writes the results file. Works for either with or without a random barcode
Sourcepub fn write_stats_file(
&self,
start_time: DateTime<Local>,
max_sequence_errors: MaxSeqErrors,
seq_errors: SequenceErrors,
total_reads: Arc<AtomicU32>,
sequence_format: SequenceFormat,
) -> Result<()>
pub fn write_stats_file( &self, start_time: DateTime<Local>, max_sequence_errors: MaxSeqErrors, seq_errors: SequenceErrors, total_reads: Arc<AtomicU32>, sequence_format: SequenceFormat, ) -> Result<()>
Appends the stats information for record keeping
Auto Trait Implementations§
impl Freeze for WriteFiles
impl RefUnwindSafe for WriteFiles
impl Send for WriteFiles
impl Sync for WriteFiles
impl Unpin for WriteFiles
impl UnwindSafe for WriteFiles
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> 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