makeCollectionIDs {gep2pep}R Documentation

Creates a collection label for each pathway.

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

makeCollectionIDs(sets)

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

db <- loadSamplePWS()
ids <- makeCollectionIDs(db)

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

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

length(db)
## [1] 10


[Package gep2pep version 1.4.0 Index]