filter {CATALYST} | R Documentation |
Filters events/genes from a daFrame
using conditional statements.
filter(x, ..., k) ## S4 method for signature 'daFrame,character' filter(x, ..., k = NULL) ## S4 method for signature 'daFrame,missing' filter(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 daFrame
.
Helena Lucia Crowell helena.crowell@uzh.ch
data(PBMC_fs, PBMC_panel, PBMC_md, merging_table) daf <- daFrame(PBMC_fs, PBMC_panel, PBMC_md) # run clustering daf <- cluster(daf) # one condition only, remove a single sample filter(daf, condition == "Ref", sample_id != "Ref1") # keep only a subset of clusters filter(daf, cluster_id %in% c(7, 8, 18), k = "meta20")