Skip to contents

Compute Diffusion Pseudotime from Accumulated Commute Time Matrix

Usage

DPT_T(T_mat, start)

Arguments

T_mat

A row-normalized transition matrix (symmetric or stochastic).

start

Integer. Index of the root cell for pseudotime computation.

Value

A numeric vector of diffusion pseudotime values for all nodes.

Details

Computes diffusion pseudotime (DPT) distances from a specified root node using the accumulated commute time matrix.

Examples

T <- matrix(runif(100), 10, 10)
T <- T / rowSums(T)
pt <- DPT_T(T, start = 1)
#> Error in DPT_T(T, start = 1): could not find function "DPT_T"