
Derive the on/off threshold per regulon in Rust
rs_regulon_thresholds.Rd
Fits a two-component Gaussian mixture per regulon and compares it against a
single Gaussian by BIC. If the mixture wins, the threshold is the kernel
density minimum between the two component means, otherwise it falls back to
mean + 2 * sd. This follows pySCENIC rather than AUCell.
Arguments
- auc_matrix
Numeric matrix of cells x regulons, as returned by
rs_aucell().- binarise_params
List. The binarisation parameters, see
params_scenic_binarise().