Description Usage Arguments Details Value Author(s) References See Also Examples
heter.gage
is a wrapper function of gage
for heterogeneous
data. pairData
prepares the heterogeneous data and related
arguments for GAGE analysis.
1 2 3 4 5 |
exprs |
an expression matrix or matrix-like data structure, with genes as rows and samples as columns. |
gsets |
a named list, each element contains a gene set that is a character
vector of gene IDs or symbols. For example, type head(kegg.gs). A
gene set can also be a "smc" object defined in PGSEA package.
Make sure that the same gene ID system is used for both |
ref.list |
a list of |
samp.list |
a list of |
comp.list |
a list or a vector of |
use.fold |
Boolean, whether to use fold changes or t-test statistics as per gene statistics. Default use.fold= TRUE. |
... |
other arguments to be passed into |
comp.list can be a list or vector of mixture values of 'paired' and
'unpaired' matching the experiment layouts of the heterogeneous data. In
such cases, each ref-samp pairs and corresponding columns in the result
data matrix after calling pairData
are assigned different weights
when calling gage
in the next step.
The inclusion of '1ongroup' and 'as.group' in comp.list would make
weight assignment very complicated especially when the sample sizes are
different for the individual experiments of the heterogeneous data.
The output of pairData
is a list of 2 elements:
exprs |
a data matrix derived from the input expression data matrix
|
weights |
weights assigned to columns of the output data matrix
|
The result returned by heter.gage
function is the same as
result of gage
, i.e. either a single data matrix
(same.dir = FALSE, test for two-directional changes) or
a named list of two data matrix (same.dir = TRUE, test for single-direction
changes) for the results of up- ($greater) and down- ($less) regulated
gene sets. Check help information for gage
for details.
Weijun Luo <luo_weijun@yahoo.com>
Luo, W., Friedman, M., Shedden K., Hankenson, K. and Woolf, P GAGE: Generally Applicable Gene Set Enrichment for Pathways Analysis. BMC Bioinformatics 2009, 10:161
gage
the main function for GAGE analysis;
gagePipe
pipeline for multiple GAGE analysis in a batch
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | data(gse16873)
cn=colnames(gse16873)
hn=grep('HN',cn, ignore.case =TRUE)
dcis=grep('DCIS',cn, ignore.case =TRUE)
data(kegg.gs)
library(gageData)
data(gse16873.2)
cn2=colnames(gse16873.2)
hn2=grep('HN',cn2, ignore.case =TRUE)
dcis2=grep('DCIS',cn2, ignore.case =TRUE)
#combined the two half dataset
gse16873=cbind(gse16873, gse16873.2)
refList=list(hn, hn2+12)
sampList=list(dcis, dcis2+12)
#quick look at the heterogeneity of the combined data
summary(gse16873[,hn[c(1:2,7:8)]])
#if graphic devices open:
#boxplot(data.frame(gse16873))
gse16873.kegg.heter.p <- heter.gage(gse16873, gsets = kegg.gs,
ref.list = refList, samp.list = sampList)
gse16873.kegg.heter.2d.p <- heter.gage(gse16873, gsets = kegg.gs,
ref.list = refList, samp.list = sampList, same.dir = FALSE)
str(gse16873.kegg.heter.p)
head(gse16873.kegg.heter.p$greater[, 1:5])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.