newSlingshotDataSet {slingshot} | R Documentation |
SlingshotDataSet
Constructs a SlingshotDataSet
object. Additional helper
methods for manipulating SlingshotDataSet
objects are also
described below.
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.
newSlingshotDataSet,data.frame,ANY-method
: returns a SlingshotDataSet
object.
newSlingshotDataSet,matrix,numeric-method
: returns a SlingshotDataSet
object.
newSlingshotDataSet,matrix,factor-method
: returns a SlingshotDataSet
object.
newSlingshotDataSet,matrix,ANY-method
: returns a SlingshotDataSet
object.
newSlingshotDataSet,matrix,character-method
: returns a SlingshotDataSet
object.
newSlingshotDataSet,matrix,matrix-method
: returns a SlingshotDataSet
object.
rd <- matrix(data=rnorm(100), ncol=2) cl <- sample(letters[seq_len(5)], 50, replace = TRUE) sds <- newSlingshotDataSet(rd, cl)