Struct barcode_count::output::WriteFiles [−][src]
pub struct WriteFiles { /* fields omitted */ }Expand description
A struct setup to output results and stat information into files
Implementations
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, Box<dyn Error>>
Sets up and writes the results file. Works for either with or without a random barcode
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<(), Box<dyn Error>>
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<(), Box<dyn Error>>
Appends the stats information for record keeping