View source: R/supercell_2_sce.R
supercell_2_sce | R Documentation |
This function transforms super-cell gene expression and super-cell partition into SingleCellExperiment object
supercell_2_sce(
SC.GE,
SC,
fields = c(),
var.genes = NULL,
do.preproc = TRUE,
is.log.normalized = TRUE,
do.center = TRUE,
do.scale = TRUE,
ncomponents = 50
)
SC.GE |
gene expression matrix with genes as rows and cells as columns |
SC |
super-cell (output of SCimplify function) |
fields |
which fields of |
var.genes |
set of genes used as a set of variable features of SingleCellExperiment (by default is the set of genes used to generate super-cells) |
do.preproc |
whether to do prepocessing, including data normalization, scaling, HVG, PCA, nearest neighbors, |
is.log.normalized |
whether |
do.center |
whether to center gene expression matrix to compute PCA |
do.scale |
whether to scale gene expression matrix to compute PCA |
ncomponents |
number of principal components to compute |
SingleCellExperiment object
data(cell_lines)
SC <- SCimplify(cell_lines$GE, gamma = 20)
SC$ident <- supercell_assign(clusters = cell_lines$meta, supercell_membership = SC$membership)
SC.GE <- supercell_GE(cell_lines$GE, SC$membership)
sce <- supercell_2_sce(SC.GE = SC.GE, SC = SC, fields = c("ident"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.