
Export Network Summary Statistics to Excel
Source:R/export_network_summary_statistics.R
export_network_summary_statistics.RdWrites the network_summary_statistics slot of a run_tkoi() result to an
Excel workbook, with one sheet per node type (for example Gene,
BiologicalProcess, Disease).
Arguments
- tkoi_result
A
tKOIListobject returned byrun_tkoi().- filename
Path of the Excel file to write. An existing file is overwritten. Default
"tkoi_result.xlsx".
Value
The path of the written file, invisibly, as returned by
writexl::write_xlsx(). The function is called for its side effect of
writing the workbook.
See also
export_gene_exploration_data() for a gene-level table.
Examples
if (FALSE) { # \dontrun{
expression_data = data.table::fread(
system.file("extdata", "example_data.csv", package = "tkoi")
)
set.seed(1)
tkoi_result = run_tkoi(expression_data = expression_data)
path = export_network_summary_statistics(
tkoi_result,
filename = file.path(tempdir(), "tkoi_network_statistics.xlsx")
)
path
} # }