Skip to main content

Module qc

Module qc 

Source

Re-exports§

pub use axis::Axis;

Modules§

axis
Where values sit across a histogram, and its bins: linear, or log on ln(shift + x), the shift chosen from the data so zeros have a place and values mostly below 1 (means, fractions) spread out. The printed histograms, the views’ and the figures’ all read values on it.

Structs§

SqueezeCutoffs

Functions§

below_nnz_cutoff
Whether a row or column with nnz non-zeros falls below cutoff and is squeezed out. Every preview of a cutoff counts with this rule, so what it reports matches what squeeze_by_nnz removes.
collect_column_stat
collect column-wise sufficient statistics for Q/C
collect_column_stat_across_vec
collect column-wise sufficient statistics for Q/C
collect_row_stat
collect row-wise sufficient statistics for Q/C
collect_row_stat_across_vec
collect row-wise sufficient statistics for Q/C
collect_stratified_row_stat_across_vec
collect row statistics for each group of columns
eprint_nnz_summary
print_nnz_summary on stderr: for a histogram that is a diagnostic beside a command’s result (qc --qc-histogram, senna’s and pinto’s QC), not the result itself, so stdout carries only the result.
fmt_stat
Format a statistic value compactly: whole numbers (nnz, integer counts) print without a decimal point; fractional values (mean, sd) get decimals places.
median_of_sorted
Median of an ascending slice (0 when empty).
pct
part as a percentage of total (0 when there is nothing).
print_nnz_summary
Print summary statistics + an ASCII log-binned histogram of a per-row or per-column statistic vector (metric names it, e.g. “nnz”, “sum”, “mean”). A non-zero cutoff marks the cutoff bin and reports how much it removes; an optional suggested value reports the trough suggestion.
squeeze_by_nnz
squeeze out rows and columns with excessive zero values
suggest_nnz_cutoff
Suggest an nnz cutoff at the deepest trough of the nnz distribution, the gap between the ambient (empty barcode) peak and the cell peak. Columns with nnz >= cutoff are kept.
write_nnz_summary
print_nnz_summary to out.