Estimate local direction vectors pointing toward neighbors with higher metabolic pseudotime. Intended for visualization only.
scMetaTraj_flow(emb_pca, emb_umap, pseudotime, k = 15, min_delta = 0.02)Data.frame with UMAP coordinates and dx, dy vectors.
Matrix (cells x PCs) used for neighborhood definition.
Matrix (cells x 2) used only for visualization.
Numeric vector of mPT.
Integer. Number of nearest neighbors.
Minimum mPT difference to consider a neighbor "forward".