dGSEA is supposed to conduct gene set enrichment
analysis given the input data and the ontology in query. It
returns an object of class "eTerm".dGSEA(data, identity = c("symbol", "entrez"), check.symbol.identity =
FALSE,
genome = c("Hs", "Mm", "Rn", "Gg", "Ce", "Dm", "Da", "At"),
ontology = c("GOBP", "GOMF", "GOCC", "PS", "DO", "HPPA", "HPMI",
"HPON",
"MP", "MsigdbC1", "MsigdbC2CGP", "MsigdbC2CP", "MsigdbC2KEGG",
"MsigdbC2REACTOME", "MsigdbC2BIOCARTA", "MsigdbC3TFT", "MsigdbC3MIR",
"MsigdbC4CGN", "MsigdbC4CM", "MsigdbC5BP", "MsigdbC5MF", "MsigdbC5CC",
"MsigdbC6", "MsigdbC7"), sizeRange = c(10, 1000), which_distance =
NULL,
weight = 1, nperm = 100, fast = T, sigTail = c("two-tails",
"one-tail"), p.adjust.method = c("BH", "BY", "bonferroni", "holm",
"hochberg", "hommel"), verbose = T,
RData.location = "http://dnet.r-forge.r-project.org/data")set_info: a matrix of
nSet X 4 containing gene set information, where nSet is the
number of gene set in consideration, and the 4 columns are
"setID" (i.e. "Term ID"), "name" (i.e. "Term Name"),
"namespace" and "distance"gs: a list of gene
sets, each storing gene members. Always, gene sets are
identified by "setID" and gene members identified by
"Entrez ID"data: a matrix of nGene X nSample
containing input data in consideration. It is not always
the same as the input data as only those mappable are
retainedes: a matrix of nSet X nSample
containing enrichment score, where nSample is the number of
samples (i.e. the number of columns in input datanes: a matrix of nSet X nSample containing
normalised enrichment score. It is the version of
enrichment score but after being normalised by gene set
sizepvalue: a matrix of nSet X nSample
containing nominal p valueadjp: a matrix of
nSet X nSample containing adjusted p value. It is the p
value but after being adjusted for multiple comparisonsgadjp: a matrix of nSet X nSample containing
globally adjusted p value in terms of all samplesfdr: a matrix of nSet X nSample containing
false discovery rate (FDR). It is the estimated probability
that the normalised enrichment score represents a false
positive findingqvalue: a matrix of nSet X
nSample containing q value. It is the monotunically
increasing FDRcall: the call that produced
this resultdGSEAview, dGSEAwrite,
visGSEAload(url("http://dnet.r-forge.r-project.org/data/Datasets/Hiratani_TableS1.RData"))
data <- RT[1:1000,1:2]
eTerm <- dGSEA(data, identity="symbol", genome="Mm", ontology="MP",
which_distance=c(1,2))
res <- dGSEAview(eTerm, which_sample=1, top_num=5, sortBy="adjp",
decreasing=FALSE, details=TRUE)
visGSEA(eTerm, which_sample=1, which_term=rownames(res)[1])
output <- dGSEAwrite(eTerm, which_content="gadjp", which_score="gadjp",
filename="eTerm.txt")Run the code above in your browser using DataLab