shake_gprofilerResult: Convert the output of g:Profiler

Description Usage Arguments Value See Also Examples

View source: R/gs_shaker.R

Description

Convert the output of g:Profiler for straightforward use in GeneTonic()

Usage

1
shake_gprofilerResult(gprofiler_output_file, gprofiler_output = NULL)

Arguments

gprofiler_output_file

The location of the text file output, as exported from g:Profiler

gprofiler_output

A data.frame with the output of gost() in gprofiler2. Usually it is one of the members of the list returned by the initial call to gost.

Value

A data.frame compatible for use in GeneTonic() as res_enrich

See Also

Other shakers: shake_davidResult(), shake_enrichResult(), shake_enrichrResult(), shake_fgseaResult(), shake_topGOtableResult()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# degenes <- (deseqresult2df(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)

data(gostres_macrophage, package = "GeneTonic")
res_from_gprofiler_2 <- shake_gprofilerResult(
  gprofiler_output = gostres_macrophage$result
)

GeneTonic documentation built on Nov. 8, 2020, 5:27 p.m.