# Load expressionSet:
library(gage)
data(gse16873)
# Load gene labels?
library(org.Hs.eg.db)
geneSymbols <- select(org.Hs.eg.db,columns="SYMBOL",keytype="ENTREZID",
keys=rownames(gse16873))
head(geneSymbols)
table(table(geneSymbols$ENTREZID)) # All need to be unique identifiers
geneLabels <- geneSymbols$SYMBOL
names(geneLabels) <- geneSymbols$ENTREZID
head(geneLabels)
# FEA:
results <- fea_gage(eset=gse16873,
refSamples=grep('HN',colnames(gse16873), ignore.case =T),
compSamples=grep('DCIS',colnames(gse16873), ignore.case=T),
geneIdType="ENTREZID", geneLabels=geneLabels, organism="Hs",
annotations="REACTOME")
# To continue the workflow... (see help for further details)
FGNet_report(results)
incidMat <- fea2incidMat(results)
functionalNetwork(incidMat)
Run the code above in your browser using DataLab