Skip to main content

Module qc

Module qc 

Source

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
fmt_stat
Format a statistic value compactly: whole numbers (nnz, integer counts) print without a decimal point; fractional values (mean, sd) get decimals places.
log_bin_key
Key of the log10(x+1) histogram bin holding x: round(10 * log10(x + 1)), so bins are a tenth of a decade wide.
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 log10(x+1) 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.