Skip to contents

Describe program activity and signature sizes

Usage

factor_diagnostics(
  fit,
  factors = NULL,
  activity_threshold,
  feature_threshold,
  activity_direction = "positive",
  display_normalization = "max_abs",
  membership_burden = FALSE
)

Arguments

fit

Native fit or representation.

factors

Optional factor IDs.

activity_threshold

Activity threshold, strictly exceeded. Required: the cut is the caller's choice (on the display_normalization scale).

feature_threshold

Absolute effect threshold, strictly exceeded. Required.

activity_direction

positive, negative or absolute.

display_normalization

max_abs (per column) or none.

membership_burden

Opt-in: add a continuous membership-burden column to the per-sample table, b_i = sum_k max(A_ik, 0) / m_k with m_k = max_i A_ik over the selected factors (ImmGenT-GP total-membership quantity). Computed on raw resolved activities (independent of display_normalization); negative activities contribute 0; factors with nonpositive maxima contribute 0 and are recorded. Descriptive only — not a compositional probability and not a QC deletion rule. Per-factor maxima and zero-max factors are recorded in the analysis metadata.

Value

Per-factor and per-sample tables, thresholds and source metadata.

Author

Mikhael Manurung; conceptual ImmGen-T workflow (Ziang Zhang / AgueroZZ repository).