CoGAPS
calls the C++ MCMC code through gapsRun and performs Bayesian
matrix factorization returning the two matrices that reconstruct
the data matrix and then calls calcCoGAPSStat to estimate gene set
activity with nPerm set to 500CoGAPS
calls the C++ MCMC code through gapsRun and performs Bayesian
matrix factorization returning the two matrices that reconstruct
the data matrix and then calls calcCoGAPSStat to estimate gene set
activity with nPerm set to 500CoGAPS(data, unc, ABins = data.frame(), PBins = data.frame(), GStoGenes,
nFactor = 7, simulation_id = "simulation", nEquil = 1000,
nSample = 1000, nOutR = 1000, output_atomic = FALSE,
fixedBinProbs = FALSE, fixedDomain = "N", sampleSnapshots = TRUE,
numSnapshots = 100, plot = TRUE, nPerm = 500, alphaA = 0.01,
nMaxA = 1e+05, max_gibbmass_paraA = 100, alphaP = 0.01, nMaxP = 1e+05,
max_gibbmass_paraP = 100)
nPerm
random sample tests to compute a consistent p value estimate from that z score. Note that the data from Ochs et al. (2009) are provided with this package in GIST_TS_20084.RData and TFGSList.RData are also provided with this package for further validation.gapsRun
,calcCoGAPSStat
## Load data
nIter <- 5000
## Run GAPS matrix decomposition with gene set statistic
results <- CoGAPS(data=SimpSim.D, unc=SimpSim.S,
GStoGenes=GSets,
nFactor=3,
nEquil=nIter, nSample=nIter,
plot=FALSE)
## Plot the results
plotGAPS(results$Amean, results$Pmean, 'GSFigs')
Run the code above in your browser using DataLab