dot-compute_reduction: Compute Dimensional Reduction

.compute_reductionR Documentation

Compute Dimensional Reduction

Description

Compute PCA or UMAP on expression data when not available in stored reductions.

Usage

.compute_reduction(
  expression,
  method = c("PCA", "UMAP"),
  seed = 42,
  n_genes = 2000,
  n_pcs = 50
)

Arguments

expression

Expression matrix with genes as rows and cells as columns

method

Character string: "PCA" or "UMAP"

seed

Integer seed for reproducible results (default: 42)

Value

Matrix with cells as rows and dimensions as columns


myTAI documentation built on Nov. 20, 2026, 5:08 p.m.