subsetByFeatures {sparrow} | R Documentation |
Subset a GeneSetDb to only include geneSets with specified features.
subsetByFeatures(x, features, value = c("feature_id", "x.id", "x.idx"), ...) ## S4 method for signature 'GeneSetDb' subsetByFeatures(x, features, value = c("feature_id", "x.id", "x.idx"), ...)
x |
|
features |
Character vector of featureIds |
value |
are you feature id's entered as themselves ( |
... |
pass through arguments |
A subset of x
which contains only the geneSets that contain
features found in featureIds
GeneSetDb
: subset GeneSetDb by feature id's
gdb <- exampleGeneSetDb() features <- c("55839", "8522", "29087") (gdb.sub <- subsetByFeatures(gdb, features))