add_pseudotime: Add or calculate pseudotime as distance from the root

View source: R/wrap_add_pseudotime.R

calculate_pseudotimeR Documentation

Add or calculate pseudotime as distance from the root

Description

When calculating the pseudotime, the trajectory is expected to be rooted (see add_root())

Usage

calculate_pseudotime(trajectory)

add_pseudotime(trajectory, pseudotime = NULL)

Arguments

trajectory

The trajectory as created by infer_trajectory() or add_trajectory()

pseudotime

Named vector containing the pseudotime for every cell. If not given, the pseudotime will be calculated.

Value

The trajectory with pseudotime added, which is a named vector containing the pseudotime values for every cell.

See Also

add_root(), add_linear_trajectory()


dynwrap documentation built on July 26, 2023, 5:15 p.m.