Estimate marker threshold candidates with native Gaussian mixtures
Source:R/program-markers.R
estimate_marker_thresholds.RdEstimate marker threshold candidates with native Gaussian mixtures
Usage
estimate_marker_thresholds(
measurements,
eligible_above = 0.5,
min_observations = 50L,
seed = 42L,
thresholds = NULL
)Arguments
- measurements
Named sample-by-marker matrix.
- eligible_above
Only observations strictly above this value enter mixtures. The default of 0.5 suits background-subtracted counts, where values at or below it are treated as absent; it is not a general default. Set it from the assay scale (a finite value below every observation keeps all values) and review the
n_excludedcolumn. It is recorded in the analysis metadata.- min_observations
Minimum eligible observations.
- seed
Scoped native fitting seed.
- thresholds
Optional supplied named thresholds, which remain authoritative.
Value
Candidate and authoritative thresholds, mixture parameters, sizes, warnings, separation in pooled SD units, BIC support and review flags.