makeCollectionIDs: Creates a collection label for each pathway.

Description Usage Arguments Value See Also Examples

View source: R/gep2pep.R

Description

Given a database, uses "category" and "subcategory" entries to create a vector of collection identifiers. Useful to extract a collection from a database.

Usage

1

Arguments

sets

A pathway database in the same format as output by importMSigDB.xml.

Value

A vector of identifiers, one per pathway, with the format: "category_subcategory".

See Also

importMSigDB.xml

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
db <- loadSamplePWS()
ids <- makeCollectionIDs(db)

unique(ids)
## [1] "c3_TFT" "c3_MIR" "c4_CGN"

db <- db[ids=="c3_MIR"]

length(db)
## [1] 10

gep2pep documentation built on Nov. 8, 2020, 5:59 p.m.