Add or calculate pseudotime as distance from the root

calculate_pseudotime(trajectory)

add_pseudotime(trajectory, pseudotime = NULL)

Arguments

trajectory

The trajectory

pseudotime

Named vector containing the pseudotime for every cell