newSlingshotDataSet | R Documentation |
SlingshotDataSet
Constructs a SlingshotDataSet
object. Additional helper
methods for manipulating SlingshotDataSet
objects are also
described below. We now recommend using
PseudotimeOrdering
objects, instead.
newSlingshotDataSet(reducedDim, clusterLabels, ...)
## S4 method for signature 'data.frame,ANY'
newSlingshotDataSet(reducedDim, clusterLabels, ...)
## S4 method for signature 'matrix,numeric'
newSlingshotDataSet(reducedDim, clusterLabels, ...)
## S4 method for signature 'matrix,factor'
newSlingshotDataSet(reducedDim, clusterLabels, ...)
## S4 method for signature 'matrix,ANY'
newSlingshotDataSet(reducedDim, clusterLabels, ...)
## S4 method for signature 'matrix,character'
newSlingshotDataSet(reducedDim, clusterLabels, ...)
## S4 method for signature 'matrix,matrix'
newSlingshotDataSet(
reducedDim,
clusterLabels,
lineages = list(),
adjacency = matrix(NA, 0, 0),
curves = list(),
slingParams = list()
)
reducedDim |
matrix. An |
clusterLabels |
character. A character vector of length |
... |
additional components of a |
lineages |
list. A list with each element a character vector of cluster names representing a lineage as an ordered set of clusters. |
adjacency |
matrix. A binary matrix describing the connectivity between clusters induced by the minimum spanning tree. |
curves |
list. A list of |
slingParams |
list. Additional parameters used by Slingshot. These may specify how the minimum spanning tree on clusters was constructed:
They may also specify how simultaneous principal curves were constructed:
|
A SlingshotDataSet
object with all specified values.
PseudotimeOrdering
rd <- matrix(data=rnorm(100), ncol=2)
cl <- sample(letters[seq_len(5)], 50, replace = TRUE)
sds <- newSlingshotDataSet(rd, cl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.