Description Usage Arguments Value Examples
Fits the pseudotime curve using principal curves from the princurve library
1 | fit_pseudotime(sce, clusters = NULL, ...)
|
sce |
The SCESet object |
clusters |
The (numeric) clusters to use for the curve fitting. If NULL (default) then all points are used |
... |
Additional arguments to be passed to |
The modified SCESet
with the following fields added to pData:
The pseudotime of the cell (arc-length from beginning of curve, rescale to [0,1])
The x-coordinate of a given cell's projection onto the curve
The y-coordinate of a given cell's projection onto the curve
The euclidean distance in the plane from each cell to its projection
If a given cell is not in clusters
then the value for each of the above fields is set to NA
.
1 2 3 4 | library(scater)
data('sc_example_counts') ; sce <- newSCESet(countData = sc_example_counts)
sce <- embeddr(sce)
sce <- fit_pseudotime(sce)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.