slingMST | R Documentation |
Extract the minimum spanning tree from an object containing
slingshot
output.
slingMST(x, ...)
## S4 method for signature 'PseudotimeOrdering'
slingMST(x, as.df = FALSE)
## S4 method for signature 'SingleCellExperiment'
slingMST(x, ...)
## S4 method for signature 'SlingshotDataSet'
slingMST(x, as.df = FALSE)
x |
an object containing |
... |
additional parameters to be passed to object-specific methods. |
as.df |
logical, whether to format the output as a |
In most cases, output is an igraph
object
representing the MST. If x
is a SlingshotDataSet
, then output
is an adjacency matrix representing the MST.
data("slingshotExample")
rd <- slingshotExample$rd
cl <- slingshotExample$cl
pto <- slingshot(rd, cl, start.clus = '1')
slingMST(pto)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.