Skip to contents

Estimate 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_excluded column. 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.

Details

Candidate is the maximum observation classified in the lower-mean component below the lowest upper-component value. Failed, empty, poorly separated, nonmonotone or BIC-unsupported fits require manual review. Native mclustBIC is explicitly bound for namespace-only use.

Author

Mikhael Manurung; mixture engine by Luca Scrucca, Chris Fraley, Adrian E. Raftery and collaborators. Conceptual ImmGen-T Figure 7 workflow.