#################################################
# Results for GIST data in Fertig et al. (2012) #
#################################################
# load the data
data('GIST_TS_20084')
data('TFGSList')
# define transcription factors of interest based on Ochs et al. (2009)
TFs <- c("c.Jun", 'NF.kappaB', 'Smad4', "STAT3", "Elk.1", "c.Myc", "E2F.1",
"AP.1", "CREB", "FOXO", "p53", "Sp1")
# run the GAPS matrix factorization
nIter <- 10000
results <- CoGAPS(GIST.D, GIST.S, tf2ugFC,
nFactor=5,
nEquil=nIter, nSample=nIter,
plot=FALSE)
# set membership statistics
permTFStats <- list()
for (tf in TFs) {
genes <- levels(tf2ugFC[,tf])
genes <- genes[2:length(genes)]
permTFStats[[tf]] <- computeGeneTFProb(Amean = GISTResults$Amean,
Asd = GistResults$Asd, genes)
}
Run the code above in your browser using DataLab