... | ... |
@@ -1,5 +1,5 @@ |
1 | 1 |
% Generated by roxygen2: do not edit by hand |
2 |
-% Please edit documentation in R/get_gsc_sig.R |
|
2 |
+% Please edit documentation in R/AllGenerics.R, R/get_gsc_sig-methods.R |
|
3 | 3 |
\name{get_gsc_sig} |
4 | 4 |
\alias{get_gsc_sig} |
5 | 5 |
\alias{get_gsc_sig,GeneSetCollection,character-method} |
... | ... |
@@ -74,6 +74,7 @@ By setting cat and subcat, matching can be constrained in the union of given |
74 | 74 |
categories and subcategories if gsc = 'msigdb'. |
75 | 75 |
} |
76 | 76 |
\examples{ |
77 |
+data("msigdb_gobp_nk") |
|
77 | 78 |
get_gsc_sig( |
78 | 79 |
gsc = msigdb_gobp_nk, |
79 | 80 |
pattern = "natural_killer_cell_mediated", |
... | ... |
@@ -57,7 +57,7 @@ The sub-category(s) must be one from |
57 | 57 |
\item{species}{character, species of interest, can be 'hs' or 'mm'} |
58 | 58 |
|
59 | 59 |
\item{id}{a character, representing the ID type to use ("SYM" for gene |
60 |
-symbols and "EZID" for Entrez IDs)} |
|
60 |
+SYMBOLs and "EZID" for ENTREZ IDs)} |
|
61 | 61 |
|
62 | 62 |
\item{version}{a character, stating the version of MSigDB to be retrieved |
63 | 63 |
(should be >= 7.2). See \code{\link[msigdb:getMsigdbVersions]{msigdb::getMsigdbVersions()}}.} |
... | ... |
@@ -68,7 +68,7 @@ symbols and "EZID" for Entrez IDs)} |
68 | 68 |
A GeneSet object containing all matched gene-sets in MSigDB |
69 | 69 |
} |
70 | 70 |
\description{ |
71 |
-Collect genesets from MSigDB or given GeneSetCollection, of which the gene-set |
|
71 |
+Collect gene sets from MSigDB or given GeneSetCollection, of which the gene-set |
|
72 | 72 |
names are matched to the given regex pattern by using \code{\link[=grep]{grep()}} function. |
73 | 73 |
By setting cat and subcat, matching can be constrained in the union of given |
74 | 74 |
categories and subcategories if gsc = 'msigdb'. |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,83 @@ |
1 |
+% Generated by roxygen2: do not edit by hand |
|
2 |
+% Please edit documentation in R/get_gsc_sig.R |
|
3 |
+\name{get_gsc_sig} |
|
4 |
+\alias{get_gsc_sig} |
|
5 |
+\alias{get_gsc_sig,GeneSetCollection,character-method} |
|
6 |
+\alias{get_gsc_sig,character,character-method} |
|
7 |
+\title{Collect genes from MSigDB or provided GeneSetCollection.} |
|
8 |
+\usage{ |
|
9 |
+get_gsc_sig( |
|
10 |
+ gsc = "msigdb", |
|
11 |
+ pattern, |
|
12 |
+ cat = NULL, |
|
13 |
+ subcat = NULL, |
|
14 |
+ species = c("hs", "mm"), |
|
15 |
+ id = c("SYM", "EZID"), |
|
16 |
+ version = msigdb::getMsigdbVersions(), |
|
17 |
+ ... |
|
18 |
+) |
|
19 |
+ |
|
20 |
+\S4method{get_gsc_sig}{GeneSetCollection,character}( |
|
21 |
+ gsc = "msigdb", |
|
22 |
+ pattern, |
|
23 |
+ cat = NULL, |
|
24 |
+ subcat = NULL, |
|
25 |
+ species = c("hs", "mm"), |
|
26 |
+ id = c("SYM", "EZID"), |
|
27 |
+ version = msigdb::getMsigdbVersions(), |
|
28 |
+ ... |
|
29 |
+) |
|
30 |
+ |
|
31 |
+\S4method{get_gsc_sig}{character,character}( |
|
32 |
+ gsc = "msigdb", |
|
33 |
+ pattern, |
|
34 |
+ cat = NULL, |
|
35 |
+ subcat = NULL, |
|
36 |
+ species = c("hs", "mm"), |
|
37 |
+ id = c("SYM", "EZID"), |
|
38 |
+ version = msigdb::getMsigdbVersions(), |
|
39 |
+ ... |
|
40 |
+) |
|
41 |
+} |
|
42 |
+\arguments{ |
|
43 |
+\item{gsc}{'msigdb' or GeneSetCollection to be searched} |
|
44 |
+ |
|
45 |
+\item{pattern}{pattern pass to \code{\link[=grep]{grep()}}, to match the MsigDB gene-set name of |
|
46 |
+interest, e.g. 'NATURAL_KILLER_CELL_MEDIATED'} |
|
47 |
+ |
|
48 |
+\item{cat}{character, stating the category(s) to be retrieved. |
|
49 |
+The category(s) must be one from \code{\link[msigdb:listCollections]{msigdb::listCollections()}}, |
|
50 |
+see details in \code{\link[msigdb:subsetCollection]{msigdb::subsetCollection()}}} |
|
51 |
+ |
|
52 |
+\item{subcat}{character, stating the sub-category(s) to be retrieved. |
|
53 |
+The sub-category(s) must be one from |
|
54 |
+\code{\link[msigdb:listSubCollections]{msigdb::listSubCollections()}}, see details in |
|
55 |
+\code{\link[msigdb:subsetCollection]{msigdb::subsetCollection()}}} |
|
56 |
+ |
|
57 |
+\item{species}{character, species of interest, can be 'hs' or 'mm'} |
|
58 |
+ |
|
59 |
+\item{id}{a character, representing the ID type to use ("SYM" for gene |
|
60 |
+symbols and "EZID" for Entrez IDs)} |
|
61 |
+ |
|
62 |
+\item{version}{a character, stating the version of MSigDB to be retrieved |
|
63 |
+(should be >= 7.2). See \code{\link[msigdb:getMsigdbVersions]{msigdb::getMsigdbVersions()}}.} |
|
64 |
+ |
|
65 |
+\item{...}{params for \code{\link[=grep]{grep()}}, used to match pattern to gene-set names} |
|
66 |
+} |
|
67 |
+\value{ |
|
68 |
+A GeneSet object containing all matched gene-sets in MSigDB |
|
69 |
+} |
|
70 |
+\description{ |
|
71 |
+Collect genesets from MSigDB or given GeneSetCollection, of which the gene-set |
|
72 |
+names are matched to the given regex pattern by using \code{\link[=grep]{grep()}} function. |
|
73 |
+By setting cat and subcat, matching can be constrained in the union of given |
|
74 |
+categories and subcategories if gsc = 'msigdb'. |
|
75 |
+} |
|
76 |
+\examples{ |
|
77 |
+get_gsc_sig( |
|
78 |
+ gsc = msigdb_gobp_nk, |
|
79 |
+ pattern = "natural_killer_cell_mediated", |
|
80 |
+ subcat = "GO:BP", |
|
81 |
+ ignore.case = TRUE |
|
82 |
+) |
|
83 |
+} |