getVariableMolecules | R Documentation |
Extracts results of identifyVariableMolecules()
.
getVariableMolecules(object, method = NULL, assay_name = activeAssay(object))
object |
An object of class |
method |
Character value or |
assay_name |
Only relevant if the |
Character vector.
library(SPATA2)
data("example_data")
object <- loadExampleObject("UKF269T")
# default is method = 'vst'
object <- identifyVariableMolecules(object, n_mol = 2000)
# multiple results can be stored simultaneously
object <- identifyVariableMolecules(object, n_mol = 3000, method = "mean.var.plot")
# fails, cause results for two methods are stored and method = NULL
vars_vst <- getVariableMolecules(object)
vars_vst <- getVariableMoleculs(object, method = "vst") # works
# should work
vars_mvp <- getVariableMolecules(object, method = "mean.var.plot")
length(vars_vst)
length(vars_mvp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.