Last data update: 2014.03.03

R: Gene Set Collection Indexes from the MSigDB Database
buildMSigDBIdxEZIDR Documentation

Gene Set Collection Indexes from the MSigDB Database

Description

It prepares the MSigDB gene set collections to be used for the EGSEA analysis.

Usage

buildMSigDBIdxEZID(entrezIDs, geneSets = NULL, species = "Homo \nsapiens",
  min.size = 1, rdata.dir = NULL)

Arguments

entrezIDs

character, a vector that stores the Entrez Gene IDs tagged in your dataset. The order of the Entrez Gene IDs should match those of the count/expression matrix row names.

geneSets

character, a vector determines which gene set collections should be used. It can take values from this list: "h", "c1", "c2", "c3", "c4", "c5", "c6","c7". "h" and "c1" are human specific. If NULL, all available gene set collections are loaded.

species

character, determine the organism of selected gene sets: "human", "mouse" or "rat".

min.size

integer, the minium number of genes required in a testing gene set

rdata.dir

character, directory from which the MSigDB collections are loaded. If NULL, EGSEA tries to load the data from EGSEAdata.

Details

It indexes the MSigDB gene sets and loads gene set annotation.

Value

indexed gene set annotation that can be used with other functions in the package. Each annotation is a list of seven elements: original stores the original gene sets, idx stores the indexed gene sets, anno that stores detailed annotation for each gene set, label a unique id that identifies the collection of gene sets, featureIDs stores the entrezIDs used in building the annotation, species stores that organism name of gene sets and name stores the collection name to be used in the EGSEA report.

Examples

library(EGSEAdata)
data(il13.data)
v = il13.data$voom
gs.annots = buildMSigDBIdxEZID(entrezIDs=rownames(v$E), geneSets=c("h", 
"c2"), species="human")
names(gs.annots)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(EGSEA)
Loading required package: Biobase
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package: 'BiocGenerics'

The following objects are masked from 'package:parallel':

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following objects are masked from 'package:stats':

    IQR, mad, xtabs

The following objects are masked from 'package:base':

    Filter, Find, Map, Position, Reduce, anyDuplicated, append,
    as.data.frame, cbind, colnames, do.call, duplicated, eval, evalq,
    get, grep, grepl, intersect, is.unsorted, lapply, lengths, mapply,
    match, mget, order, paste, pmax, pmax.int, pmin, pmin.int, rank,
    rbind, rownames, sapply, setdiff, sort, table, tapply, union,
    unique, unsplit

Welcome to Bioconductor

    Vignettes contain introductory material; view with
    'browseVignettes()'. To cite Bioconductor, see
    'citation("Biobase")', and for packages 'citation("pkgname")'.

Loading required package: gage
Loading required package: AnnotationDbi
Loading required package: stats4
Loading required package: IRanges
Loading required package: S4Vectors

Attaching package: 'S4Vectors'

The following objects are masked from 'package:base':

    colMeans, colSums, expand.grid, rowMeans, rowSums

Loading required package: topGO
Loading required package: graph
Loading required package: GO.db

Loading required package: SparseM

Attaching package: 'SparseM'

The following object is masked from 'package:base':

    backsolve


groupGOTerms: 	GOBPTerm, GOMFTerm, GOCCTerm environments built.

Attaching package: 'topGO'

The following object is masked from 'package:IRanges':

    members

The following object is masked from 'package:gage':

    geneData

Loading required package: pathview
Loading required package: org.Hs.eg.db

##############################################################################
Pathview is an open source software package distributed under GNU General
Public License version 3 (GPLv3). Details of GPLv3 is available at
http://www.gnu.org/licenses/gpl-3.0.html. Particullary, users are required to
formally cite the original Pathview paper (not just mention it) in publications
or products. For details, do citation("pathview") within R.

The pathview downloads and uses KEGG data. Non-academic uses may require a KEGG
license agreement (details at http://www.kegg.jp/kegg/legal.html).
##############################################################################

KEGG.db contains mappings based on older data because the original
  resource was removed from the the public domain before the most
  recent update was produced. This package should now be considered
  deprecated and future versions of Bioconductor may not have it
  available.  Users who want more current data are encouraged to look
  at the KEGGREST or reactome.db packages





> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/EGSEA/buildMSigDBIdxEZID.Rd_%03d_medium.png", width=480, height=480)
> ### Name: buildMSigDBIdxEZID
> ### Title: Gene Set Collection Indexes from the MSigDB Database
> ### Aliases: buildMSigDBIdxEZID
> 
> ### ** Examples
> 
> library(EGSEAdata)
> data(il13.data)
> v = il13.data$voom
> gs.annots = buildMSigDBIdxEZID(entrezIDs=rownames(v$E), geneSets=c("h", 
+ "c2"), species="human")
[1] "Reading Broad Gene Sets ... "
[1] "Created the gs.annot$original for h \n..."
[1] "Created the gs.annot$idx for h ..."
[1] "Created the gs.annot$anno for h ..."
[1] "Created the gs.annot$original for c2 \n..."
[1] "Created the gs.annot$idx for c2 ..."
[1] "Created the gs.annot$anno for c2 ..."
> names(gs.annots)
[1] "h"  "c2"
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>