Convert data.frame to enrichResult
enrichDF2enrichResult(
enrichDF = NULL,
pvalueCutoff = 1,
pAdjustMethod = "none",
keyColname = c("itemsetID", "ID", "Name", "Pathway"),
pathGenes = "pathGenes",
geneColname = c("geneNames", "geneID", "Gene", "Genes"),
geneHits = "geneHits",
geneRatioColname = c("GeneRatio", "^Ratio"),
geneDelim = "[,/ ]+",
geneSep = ",",
pvalueColname = c("P.Value", "Pvalue", "FDR", "adj.P.Val"),
descriptionColname = c("Description", "Name", "Pathway", "ID"),
msigdbGmtT = NULL,
verbose = FALSE,
...
)
data.frame
representing gene set enrichment
results.
numeric
value range 0 to 1, to define the
P-value threshold for enrichment results to be considered
in downstream processing.
character
string to define the P-value
adjustment method, or "none"
for no additional adjustment.
See stats::p.adjust()
for valid values.
character
value of the colname(enrichDF)
containing the unique row identifier. It can be a pathway_ID
or any uniquely identifying value.
character
or value of the colname(enrichDF)
containing the number of genes in each pathway. This value will be
derived from geneRatioColname
if needed.
character
value of the colname(enrichDF)
containing delimiited genes in each pathway.
character
value of the colname(enrichDF)
containing the integer count of the gene hits in each pathway.
This value will be derived from geneRatioColname
if needed.
character
value of the colname(enrichDF)
containing the character ratio of gene hits to pathway size,
in format "50/100". This value is used when either "pathGenes"
or "geneHits"
are not supplied.
character
regular expression pattern used to separate
genes in the pathGenes
column into a vector of character
values.
character
value of the colname(enrichDF)
containing enrichment P-values to use in downstream processing.
optional gmtT object, a representation of
arules::transactions-class
. (Not currently implemented.)
logical
indicating whether to print verbose output.
additional arguments are ignored.
This function takes a data.frame containing gene set enrichment
results, and converts it to a proper enrichResult
object,
compatible with methods provided by the clusterProfiler
package.
Other jam conversion functions:
cnet2df()
,
cnet2im()
,
enrichList2IM()
,
enrichList2df()
,
enrichMapJam()