Extract pseudo-time order of cells along a trajectory defined by a set of clusters using the slingshot algorithm. If the slingshot package is unavailable, the function falls back to inference by principal curve analysis using the princurve package.
pseudoTime(
object,
set,
m = NULL,
useSlingshot = TRUE,
map = "umap",
x = NULL,
n_neighbors = 15,
metric = "euclidean",
n_epochs = 200,
min_dist = 0.1,
local_connectivity = 1,
spread = 1,
initial_cmd = TRUE,
perplexity = 30,
rseed = 15555,
...
)List object of six components:
Vector of pseudo-time value obtained by slingshot.
Vector of cells in set ordered by pseudo-time, starting with the first cluster in set.
Vector of cluster numbers defining the trajectory used for pseudo-time inference.
Vector of cluster numbers of all cells in set.
Two-dimensional matrix with x- and y-coordinates of dimensional reduction representation used for slingshot.
slingshot data object.
RaceID SCseq object.
Set of valid ordered cluster numbers (in object@cpart) defining the trajectory for which the pseudo-temporal order of cells should be computed computed. Only clusters on a single, linear trajectory should be given.
Existing dimensional reduction representation of RaceID object. Either "fr", "tsne" or "umap". Default is NULL and dimensional reduction representation is computed for all cells in set.
logical. If TRUE and the slingshot package is available, trajectory inference will be done using slingshot. If FALSE, inference will be done by principal curve analysis using the princurve package. Default is TRUE.
Either "tsne" or "umap". If m is NULL this argument determines the algorithm (UMAP or t-SNE) for computing the dimensional reduction representation of all cells set used for pseudo-temporal ordering by the Bioconductor package slingshot. Default is "umap".
Optional feature matrix, which will be directly used for computation of the dimensional reduction representation. Default is NULL and object@dimRed$x is used, unless empty. In this case, getfdata(object) is used.
Umap parameter (used if map="umap" and m=NULL). See help(umap.defaults) after loading package umap. Default is 15.
Umap parameter (used if map="umap" and m=NULL). See help(umap.defaults) after loading package umap. Default is "euclidean".
Umap parameter (used if map="umap" and m=NULL). See help(umap.defaults) after loading package umap. Default is 200.
Umap parameter (used if map="umap" and m=NULL). See help(umap.defaults) after loading package umap. Default is 0.1.
Umap parameter (used if map="umap" and m=NULL). See help(umap.defaults) after loading package umap. Default is 1.
Umap parameter (used if map="umap" and m=NULL). See help(umap.defaults) after loading package umap. Default is 1.
logical. t-SNE parameter (used if map="tsne" and m=NULL). If TRUE, then the t-SNE map computation is initialized with a configuration obtained by classical
multidimensional scaling. Default is TRUE.
Positive number. t-SNE parameter (used if map="tsne" and m=NULL). Perplexity of the t-SNE map. Default is 30.
Integer number. Random seed to enforce reproducible dimensional reduction computation.
Additional arguments to be passed to the getCurves function of the slingshot package.