Add or calculate pseudotime as distance from the root

Add or calculate pseudotime as distance from the root

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