Skip to contents

Global selection for multi-factor heatmaps: rank each feature by max_k(abs(effect[gene, k])) (or the signed extreme for direction = "positive"/"negative") over an explicitly selected factor set, with stable ties (score, then feature ID). This is not the same as factor_features(), which selects per factor. Descriptive display selection only; no inferential labeling.

Usage

factor_features_global(
  fit,
  factors,
  n = 20L,
  direction = c("absolute", "positive", "negative"),
  representation = NULL
)

Arguments

fit

Native fit or representation.

factors

Explicit factor set to compete features across.

n

Maximum number of features.

direction

absolute, positive or extreme-negative.

representation

Optional representation name.

Value

Data frame with feature, argmax factor, signed estimate at the argmax, selection score, rank, direction and basis_id.

Author

Mikhael Manurung. Conceptual cross-factor display workflow: ImmGenT-GP.