printEnrichR | R Documentation |
This function takes a list of list of DataFrames containing Enrichr results
returned by runEnrichR()
and save all the results in the list object to
individual text files.
printEnrichR(
object,
prefix = "enrichr",
showTerms = NULL,
columns = c(1:9),
dir_path = NULL
)
object |
A named list of list of DataFrames storing outputs returned
by |
prefix |
A string indicating the prefix of output file. Default is "enrichr". |
showTerms |
An integer scalar indicating the number of terms to save
to file. All terms are saved when |
columns |
An integer vector indicating the columns from each entry
of data to save to file. All columns are saved when |
dir_path |
The directory path for exported TSV. The files are exported
to the current working directory when |
We are not using printEnrich()
in the enrichR package to
print results due to a bug not yet fixed in the current verion in CRAN at
the time of writing (v3.0).
I-Hsuan Lin
runEnrichR()
## Not run:
# Load demo dataset
data(res_deseq2)
# We construct a list of 3 DataFrames using the same DESeq2 output (`res_deseq2`)
# to mimic having a list containing results from multiple sets of comparisons.
res.de <- list(A_B = res_deseq2, A_C = res_deseq2, B_C = res_deseq2)
# Select gene-set libraries
dbs <- c("GO_Molecular_Function_2018", "GO_Biological_Process_2018")
# Run enrichR using the D. melanogaster specific modEnrichr site, and
# specify the gene symbols are stored in the 'external_gene_name' column
res.ora <- runEnrichR(res.de,
dbs = dbs, site = "FlyEnrichr",
column_by = "external_gene_name"
)
# Save results to TSV files in the per-session temporary directory
printEnrichR(res.ora, prefix = "Enrichr", dir_path = tempdir())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.