`align_pseudotime()` is an internal function that aligns the pseudotime from two different trajectory paths. It first identifies the path which has a longer pseudotime range, and then it uses the range of the shorter path to rescale the range of the longer one. It uses a simple rescaling mechanism from `scales::rescale`. In future we expect to support strategies like dynamic time warping from dtw package.
align_pseudotime(
scmpObj,
ptime_col,
path_col,
method = "rescale",
verbose = TRUE
)
description
A character string representing the column name for inferred Pseudotime values in 'Sparse' data. See `colData` from the SingleCellExperiment package. (Default is "Pseudotime")
A character string representing the column name for branching path assignment in 'Sparse' data. See `colData` from the SingleCellExperiment package. (Default is `path_prefix`)
Method used for re-scaling the longer pseudotime value. Currently only `scales::rescale` is supported. (Default is "rescale")
Print detailed output in the console. (Default is TRUE)
An object of class ScMaSigPro
, with aligned pseudotime.