Module batch

Module batch 

Source

Structsยง

SampleSusceptibilityRecord
Per-sample susceptibility result produced by the batch AB1 directory scan.

Staticsยง

AB1_SEQ_CACHE ๐Ÿ”’
In-memory cache: maps each AB1 file path to the seq_id_hits computed by the last background scan. item_from_entry() reads from this cache instead of running alignment on the UI thread.

Functionsยง

days_to_ymd ๐Ÿ”’
find_sample_id ๐Ÿ”’
Find the first run of exactly 10 consecutive ASCII digits starting with โ€œ20โ€ that is not embedded inside a longer digit run.
fmt_susceptible ๐Ÿ”’
parse_ab1_filename
Extract (sample_id, gene) from an AB1 filename.
pnca_snp_calls_str ๐Ÿ”’
scan_ab1_directory
Walk scan_path recursively, analyse every .ab1 file, and return a SampleSusceptibilityRecord per file sorted reverse-alphabetically by sample_id (highest first).
snp_calls_str ๐Ÿ”’
system_time_to_iso8601 ๐Ÿ”’
Format a SystemTime as YYYY-MM-DDTHH:MM:SSZ without any external crate.
write_ab1_csv
Write records to a CSV file at out_path.
write_rare_mutations_csv
Write records that flag a rare resistance mutation (is_susceptible_rare == Some(false) for rrl or rrs) to out_path. Same columns as write_ab1_csv plus rrl_susceptible_rare and rrs_susceptible_rare.