Learn R Programming

scMetaTraj (version 0.1.1)

scMetaTraj_flow: Compute local directional consistency along mPT

Description

Estimate local direction vectors pointing toward neighbors with higher metabolic pseudotime. Intended for visualization only.

Usage

scMetaTraj_flow(emb_pca, emb_umap, pseudotime, k = 15, min_delta = 0.02)

Value

Data.frame with UMAP coordinates and dx, dy vectors.

Arguments

emb_pca

Matrix (cells x PCs) used for neighborhood definition.

emb_umap

Matrix (cells x 2) used only for visualization.

pseudotime

Numeric vector of mPT.

k

Integer. Number of nearest neighbors.

min_delta

Minimum mPT difference to consider a neighbor "forward".