save_results: Save results to folder

Description Usage Arguments Value Examples

View source: R/save.R

Description

Saves results to a folder. In particular, it saves the matrix of subpathway values, a table with the results of the provided comparison, the accuracy of the results and the .SIF and attributes of the pathways.

Usage

1
2
save_results(results, comp, metaginfo, output_folder = NULL,
  path = NULL)

Arguments

results

Results object as returned by the hipathia function.

comp

Comparison as returned by the do_wilcoxon function.

metaginfo

Pathways object

output_folder

Name of the folder in which the results will be stored.

path

Absolute path to the parent directory in which 'output_folder' will be saved. If it is not provided, it will be created in a temp folder.

Value

Creates a folder in disk in which all the information to browse the pathway results is stored.

Examples

1
2
3
4
5
data(results)
data(comp)
pathways <- load_pathways(species = "hsa", pathways_list = c("hsa03320",
"hsa04012"))
save_results(results, comp, pathways, "output_results")

hipathia documentation built on Nov. 8, 2020, 7:52 p.m.