filterSCE | R Documentation |
SingleCellExperiment
filteringFilters cells/features from a SingleCellExperiment
using conditional statements a la dplyr
.
filterSCE(x, ..., k = NULL)
x |
a |
... |
conditional statements separated by comma. Only rows/columns where the condition evaluates to TRUE are kept. |
k |
numeric or character string. Specifies the clustering to extract
populations from. Must be one of |
a SingleCellExperiment
.
Helena L Crowell helena.crowell@uzh.ch
# construct SCE & run clustering
data(PBMC_fs, PBMC_panel, PBMC_md, merging_table)
sce <- prepData(PBMC_fs, PBMC_panel, PBMC_md)
sce <- cluster(sce)
# one condition only, remove a single sample
filterSCE(sce, condition == "Ref", sample_id != "Ref1")
# keep only a subset of clusters
filterSCE(sce, cluster_id %in% c(7, 8, 18), k = "meta20")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.