identifyVariableMolecules | R Documentation |
Identfies molecules that are outliers on a mean-variability plot as proposed by
Seurat
.
identifyVariableMolecules(
object,
n_mol = 2500,
method = "vst",
assay_name = activeAssay(object),
...
)
object |
An object of class |
n_mol |
Numeric value. The number of molecules to be identified. Given
to |
method |
Character value. The identification method. One of 'vst',
'mean.var.plot' or 'dispersion'. Given to |
assay_name |
Only relevant if the |
... |
Used to absorb deprecated arguments or functions. |
The updated input object, containing the added, removed or computed results.
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.