`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
)

Arguments

scmpObj

description

ptime_col

A character string representing the column name for inferred Pseudotime values in 'Sparse' data. See `colData` from the SingleCellExperiment package. (Default is "Pseudotime")

path_col

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

Method used for re-scaling the longer pseudotime value. Currently only `scales::rescale` is supported. (Default is "rescale")

verbose

Print detailed output in the console. (Default is TRUE)

Value

An object of class ScMaSigPro, with aligned pseudotime.

Author

Priyansh Srivastava spriyansh29@gmail.com