makeCollectionIDs {gep2pep} | R Documentation |
Given a database, uses "category" and "subcategory" entries to create a vector of collection identifiers. Useful to extract a collection from a database.
makeCollectionIDs(sets)
sets |
A pathway database in the same format as output by
|
A vector of identifiers, one per pathway, with the format: "category_subcategory".
importMSigDB.xml
db <- loadSamplePWS() ids <- makeCollectionIDs(db) unique(ids) ## [1] "c3_TFT" "c3_MIR" "c4_CGN" db <- db[ids=="c3_MIR"] length(db) ## [1] 10