scMetaTraj_embed() constructs a low-dimensional representation of cells based on pathway-level metabolic scores.
DESIGN PRINCIPLES:
PCA is the true analysis space (for graph construction).
UMAP is ONLY for visualization.
scMetaTraj_embed(
scores,
method = c("PCA", "UMAP"),
n_pcs = 10,
umap_n_neighbors = 30,
umap_min_dist = 0.3,
seed = 123
)A numeric matrix:
PCA: cells x PCs
UMAP: cells x 2
Numeric matrix, cells x pathways.
Character. "PCA" (default) or "UMAP".
Integer. Number of PCs to return / use.
Integer. UMAP n_neighbors.
Numeric. UMAP min_dist.
Integer. Random seed.