produce_diffusion_report: Produce diffusion report

View source: R/report.R

produce_diffusion_reportR Documentation

Produce diffusion report

Description

Produce diffusion report based remarkable nodes in the network

Usage

produce_diffusion_report(
  res_report,
  report_title,
  report_out_filepath = NA,
  overwrite = FALSE,
  render = FALSE
)

Arguments

res_report

'report()' results

report_title

(character) name of the report

report_out_filepath

(character) filepath where to write the .Rmd report

overwrite

(logical, default = FALSE) if TRUE, overwrite out filepath

render

(logical, default = FALSE) if TRUE, render the html file

See Also

report

Examples

data(liver_1.3_network)
data(liver_1.3_rwr_closest_dfr)
data(signature_maison)
signature_vids <-  signature_maison$`acetaminophen_all_all`
res.diffusion <- get_route(liver_1.3_network, liver_1.3_rwr_closest_dfr, c(signature_vids), target_type = c("drug/compound", "pathway", "side_effect"))

res_report <- report(res.diffusion)
report_info_df <- produce_diffusion_report(res_report = res_report,  report_title = "acetaminophen", report_out_filepath = "report_acetaminophen_example.Rmd",
render = TRUE, overwrite = TRUE)


abodein/NetworkCosmeticEU documentation built on Jan. 29, 2024, 5:37 a.m.