Convert the output of g:Profiler for straightforward use in GeneTonic()
shake_gprofilerResult(gprofiler_output_file, gprofiler_output = NULL)
A data.frame
compatible for use in GeneTonic()
as res_enrich
Other shakers:
shake_davidResult()
,
shake_enrichResult()
,
shake_enrichrResult()
,
shake_fgseaResult()
,
shake_gsenrichResult()
,
shake_topGOtableResult()
# degenes <- (mosdef::deresult_to_df(res_macrophage_IFNg_vs_naive, FDR = 0.01)$SYMBOL)
# if called directly withín R...
# enrichr_output_macrophage <- enrichr(degenes, dbs)
# or alternatively, if downloaded from the website in tabular format
gprofiler_output_file <- system.file(
"extdata",
"gProfiler_hsapiens_5-25-2020_tblexport_IFNg_vs_naive.csv",
package = "GeneTonic"
)
res_from_gprofiler <- shake_gprofilerResult(gprofiler_output_file = gprofiler_output_file)
#> Found 5593 gene sets in the file output from Enrichr of which 179 are significant (p-value <= 0.05).
#> Converting for usage in GeneTonic...
data(gostres_macrophage, package = "GeneTonic")
res_from_gprofiler_2 <- shake_gprofilerResult(
gprofiler_output = gostres_macrophage$result
)
#> Found 5593 gene sets in the file output from Enrichr of which 179 are significant (p-value <= 0.05).
#> Converting for usage in GeneTonic...