quickPseudotime: Quick MST-based pseudotime

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/quickPseudotime.R

Description

A convenience wrapper to quickly compute a minimum spanning tree (MST) on the cluster centroids to obtain a pseudotime ordering of the cells. This function is now deprecated as it has been moved to the TSCAN package itself.

Usage

1
2
3
4
5
6
7
8
quickPseudotime(
  x,
  clusters,
  use = 1,
  outgroup = FALSE,
  outscale = 3,
  start = NULL
)

Arguments

x

A named list of numeric matrices containing dimensionality reduction results. All matrices should have the same number of cells, i.e., rows. Alternatively, a SingleCellExperiment containing such results in its reducedDims.

clusters

A factor of length equal to the number of cells in x, specifying the cluster assignment for each cell.

use

Integer scalar or string specifying the entry of x to use for MST construction and pseudotime calculations.

outgroup, outscale

Arguments passed to createClusterMST.

start

Arguments passed to orderClusterMST.

Details

This function simply calls, in order:

Value

A List containing:

Author(s)

Aaron Lun

See Also

createClusterMST and friends, for the functions that do the actual work.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Mocking up some data:
library(scuttle)
sce <- mockSCE(ncells=500)
sce <- logNormCounts(sce)
sce <- scater::runPCA(sce)
clusters <- clusterSNNGraph(sce, use.dimred="PCA")

# Quickly computing the pseudotime:
out <- quickPseudotime(sce, clusters, use="PCA")
out$mst
head(out$ordering)

scran documentation built on April 17, 2021, 6:09 p.m.