1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,39 @@ |
1 |
+% Generated by roxygen2: do not edit by hand |
|
2 |
+% Please edit documentation in R/gep2pep.R |
|
3 |
+\name{makeCollectionIDs} |
|
4 |
+\alias{makeCollectionIDs} |
|
5 |
+\title{Creates a vector of collection labels for each pathway.} |
|
6 |
+\usage{ |
|
7 |
+makeCollectionIDs(gmds) |
|
8 |
+} |
|
9 |
+\arguments{ |
|
10 |
+\item{gmds}{A pathway database in the same format as created by |
|
11 |
+\code{importMSigDB.xml}.} |
|
12 |
+} |
|
13 |
+\value{ |
|
14 |
+A vector of identifiers, one per pathway, with the format: |
|
15 |
+ "db_subdb". |
|
16 |
+} |
|
17 |
+\description{ |
|
18 |
+Creates a vector of collection labels for each pathway. |
|
19 |
+} |
|
20 |
+\details{ |
|
21 |
+This function is useful to subset a database of pathway by |
|
22 |
+ collections. |
|
23 |
+} |
|
24 |
+\examples{ |
|
25 |
+db <- readRDS(system.file("testgmd.RDS", package="gep2pep")) |
|
26 |
+ids <- makeCollectionIDs(db) |
|
27 |
+ |
|
28 |
+unique(ids) |
|
29 |
+## [1] "C3_TFT" "C3_MIR" "C4_CGN" |
|
30 |
+ |
|
31 |
+db <- db[ids=="C3_MIR"] |
|
32 |
+ |
|
33 |
+length(db) |
|
34 |
+## [1] 10 |
|
35 |
+ |
|
36 |
+} |
|
37 |
+\seealso{ |
|
38 |
+importMSigDB.xml |
|
39 |
+} |