View source: R/consensusPart.R
consensusPart | R Documentation |
Derive consensus partitions of an ensemble fused lasso partitions.
consensusPart(sce)
sce |
SingleCellExperiment |
A matrix grouping factor partition is replaced in metadata.
Consensus Partation also stored in colData"part"
.
library(smurf) sce <- makeSimulatedData() sce <- preprocess(sce) sce <- geneCluster(sce, G = 1:4) f <- ratio ~ p(x, pen = "gflasso") # formula for the GFL sce_sub <- fusedLasso(sce, formula = f, model = "binomial", genecluster = 1, niter = 2, ncores = 2, se.rule.nct = 3 ) sce_sub <- consensusPart(sce_sub)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.