Convert data.frame to enrichResult
Usage
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"),
readable = NULL,
msigdbGmtT = NULL,
verbose = FALSE,
...
)Arguments
- enrichDF
data.framerepresenting gene set enrichment results.- pvalueCutoff
numericvalue range 0 to 1, to define the P-value threshold for enrichment results to be considered in downstream processing.- pAdjustMethod
characterstring to define the P-value adjustment method, or"none"for no additional adjustment. Seestats::p.adjust()for valid values.- keyColname
charactervalue of thecolname(enrichDF)containing the unique row identifier. It can be a pathway_ID or any uniquely identifying value.- pathGenes
characteror value of thecolname(enrichDF)containing the number of genes in each pathway. This value will be derived fromgeneRatioColnameif needed.- geneColname
charactervalue of thecolname(enrichDF)containing delimiited genes in each pathway.- geneHits
charactervalue of thecolname(enrichDF)containing the integer count of the gene hits in each pathway. This value will be derived fromgeneRatioColnameif needed.- geneRatioColname
charactervalue of thecolname(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.- geneDelim
characterregular expression pattern used to separate genes in thepathGenescolumn into a vector of character values.- pvalueColname
charactervalue of thecolname(enrichDF)containing enrichment P-values to use in downstream processing.- readable
logicaldefault NULL, sets the 'readable' flag for the resultingenrichResultobject.- msigdbGmtT
optional GmtT object (not currently implemented)
- verbose
logicalindicating whether to print verbose output.- ...
additional arguments are ignored.
Details
This function takes a data.frame containing gene set enrichment
results, and converts it to a proper 'enrichResult' object
defined in DOSE::enrichResult-class.
This object is supported by other functions in the clusterProfiler
suite of tools.
See also
Other jam conversion functions:
cnet2df(),
cnet2im(),
enrichList2IM(),
enrichList2df(),
enrichMapJam()