filterSamples: Filter samples

Description Usage Arguments Value Examples

View source: R/filterSamples.R

Description

Filter samples

Usage

1
filterSamples(obj, ids, groups = colnames(obj), keepOnly = FALSE)

Arguments

obj

ExpressionSet object.

ids

Names found within the groups labels corresponding to samples to be removed

groups

Vector of labels for each sample or a column name of the phenoData slot for the ids to filter. Default is the column names.

keepOnly

Filter or keep only the samples with those labels.

Value

Filtered ExpressionSet object

Examples

1
2
3
data(skin)
filterSamples(skin,ids = "Skin - Not Sun Exposed (Suprapubic)",groups="SMTSD")
filterSamples(skin,ids=c("GTEX-OHPL-0008-SM-4E3I9","GTEX-145MN-1526-SM-5SI9T"))

yarn documentation built on Nov. 8, 2020, 7:50 p.m.