Convert enrichList to a single data.frame, merging results
Usage
enrichList2df(
enrichList,
keyColname = c("ID", "Name", "pathway", "itemsetID", "Description"),
geneColname = c("geneID", "geneNames", "Genes"),
geneCountColname = c("gene_count", "Count", "geneCount", "geneHits"),
pvalueColname = c("padjust", "p.adjust", "adjp", "padj", "qvalue", "qval", "q.value",
"pvalue", "p.value", "pval", "FDR"),
pvalueFloor = 1e-200,
msigdbGmtT = NULL,
geneDelim = "[,/ ]+",
geneSep = ",",
verbose = FALSE,
debug = 0,
...
)Arguments
- enrichList
listofenrichResultordata.frameobjects.- keyColname, geneColname, geneCountColname, pvalueColname
characterstring indicating each column to use, or a vector of column names in order of priority.- pvalueFloor
numericlowest permitted P-value, intended to prevent using actual zero0which may occur sometimes when upstream processing rounds the value.- msigdbGmtT
not currently implemented.
- geneDelim
characterpattern used to split genes.- geneSep
characterstring used to join genes, default","uses comma-delimited values.- verbose
logicalindicating whether to print verbose output.- debug
integerused for debugging, with values0, 1, 2, 3recognized. Value0, default, performs no debug.- ...
additional arguments are ignored.
Details
This function takes one or more enrichment results, and
combines results into one data.frame.
Genes are combined, reporting the unique genes in sorted order.
numericcolumns report the lowest or highest value, as appropriate:P-value columns report the lowest observed value, in
pvalueColnameCount columns report the highest observed value, except the primary count column reports the number of unique genes.
See also
Other jam conversion functions:
cnet2df(),
cnet2im(),
enrichDF2enrichResult(),
enrichList2IM()