View source: R/preprocessing_filtering_reduction.R
reduce_dims_scExp | R Documentation |
Reduce dimensions (PCA, TSNE, UMAP)
reduce_dims_scExp(
scExp,
dimension_reductions = c("PCA", "UMAP"),
n = 10,
batch_correction = FALSE,
batch_list = NULL,
remove_PC = NULL,
verbose = TRUE
)
scExp |
A SingleCellExperiment object. |
dimension_reductions |
A character vector of methods to apply. (c('PCA','TSNE','UMAP')) |
n |
Numbers of dimensions to keep for PCA. (50) |
batch_correction |
Do batch correction ? (FALSE) |
batch_list |
List of characters. Names are batch names, characters are sample names. |
remove_PC |
A vector of string indicating which principal components to remove before downstream analysis as probably correlated to library size. Should be under the form : 'Component_1', 'Component_2', ... Recommended when using 'TFIDF' normalization method. (NULL) |
verbose |
Print messages ?(TRUE) |
A SingleCellExperiment object containing feature spaces. See ?reduceDims().
raw <- create_scDataset_raw()
scExp = create_scExp(raw$mat, raw$annot)
scExp = normalize_scExp(scExp, "CPM")
scExp = reduce_dims_scExp(scExp,dimension_reductions=c("PCA","UMAP"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.