Description Usage Arguments Value Examples
Manually select a celda feature module to split into 2 or more modules. Useful for splitting up modules that show divergent expression of features in multiple cell clusters.
1 2 3 4 5 6 7 8 9 10 11 | splitModule(x, ...)
## S4 method for signature 'SingleCellExperiment'
splitModule(
x,
useAssay = "counts",
altExpName = "featureSubset",
module,
n = 2,
seed = 12345
)
|
x |
A SingleCellExperiment object
with the matrix located in the assay slot under |
... |
Ignored. Placeholder to prevent check warning. |
useAssay |
A string specifying which assay
slot to use for |
altExpName |
The name for the altExp slot to use. Default "featureSubset". |
module |
Integer. The module to be split. |
n |
Integer. How many modules should |
seed |
Integer. Passed to with_seed. For reproducibility, a default value of 12345 is used. If NULL, no calls to with_seed are made. |
A updated SingleCellExperiment object with new
feature modules stored in column celda_feature_module
in
rowData(x)
.
1 2 3 | data(sceCeldaCG)
# Split module 5 into 2 new modules.
sce <- splitModule(sceCeldaCG, module = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.