loadESmatrix {gep2pep} | R Documentation |
Loads the matrix of Enrichment Scores for a collection
loadESmatrix(rp, collection)
rp |
A repository created by |
collection |
One of the names returned by
|
The matrix of Enrichment Scores (ES) of the
Kolmogorov-Smirnov statistic for the pathway collection, if
previously computed with buildPEPs
. The entry i,j
reports the ES for the pathway i
, conditionj. If
buildPEPs
was not run, throws an error.
db <- loadSamplePWS() db <- as.CategorizedCollection(db) repo_path <- file.path(tempdir(), "gep2pepTemp") rp <- createRepository(repo_path, db) geps <- loadSampleGEP() buildPEPs(rp, geps) loadESmatrix(rp, "c3_TFT")[1:5,1:2] unlink(repo_path, TRUE)