Description Usage Arguments Value Examples
Add results to SingleCellExperiment object
1 2 3 4 |
sce_object |
an object of class
|
slalom_object |
an object of class |
n_active |
number of terms (factors) to be added (default is 20) |
mad_filter |
numeric(1), filter factors by this mean absolute deviation to ensure variability in the factor states. For large datasets this can be set to 0 |
annotated |
logical(1), should annotated factors be included? Default is
|
unannotated_dense |
logical(1), should dense unannotated factors be
included? Default is |
unannotated_sparse |
logical(1), should sparse unannotated factors be
included? Default is |
add_loadings |
logical(1), should gene/feature loadings be added to
the |
dimred |
character(1), name of the reduced-dimension slot to save the
factor states to. Default is |
check_convergence |
logical(1), check that model has converged before
adding |
a SingleCellExperiment
object
with factor states (X) in a reduced-dimension slot, and gene loadings for
factors added to rowData
.
1 2 3 4 5 6 7 8 | gmtfile <- system.file("extdata", "reactome_subset.gmt", package = "slalom")
genesets <- GSEABase::getGmt(gmtfile)
data("mesc")
model <- newSlalomModel(mesc, genesets, n_hidden = 5, min_genes = 10)
model <- initSlalom(model)
model <- trainSlalom(model, nIterations = 10)
mesc <- addResultsToSingleCellExperiment(mesc, model,
check_convergence = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.