options(width = 1000)
knitr::opts_chunk$set(echo = FALSE, warning = FALSE, message = FALSE)
temp.dir <- params$tempdir
plot.dir <- paste(temp.dir, "report_plots", sep = '/')
celltype.order <- params$celltype.order
celltype.order.sim <- params$celltype.order.sim

benchmark.name <- strsplit(temp.dir, "/")[[1]][
  length(strsplit(temp.dir, "/")[[1]])
]
# read input and processed data
input_raw <- read_data(paste(temp.dir, "/input_data/raw.h5", sep = ""))
sc.counts <- input_raw$sc.counts
sc.pheno <- input_raw$sc.pheno
real.counts <- input_raw$bulk.counts
real.props <- input_raw$bulk.props
validation_set <- read_data(
  paste(temp.dir, "/input_data/validation_set.h5", sep = "")
)
training_set <- read_data(
  paste(temp.dir, "/input_data/training_set.h5", sep = "")
)
training.exprs <- training_set$sc.counts
training.pheno <- training_set$sc.pheno
test.exprs <- validation_set$sc.counts
test.pheno <- validation_set$sc.pheno
sim.bulks <- list(
  bulks = validation_set$real.counts,
  props = validation_set$real.props
)
# load input parameters
input_params <- read_misc_input(
  paste(temp.dir, "input_data/params.h5", sep = "/")
)
genesets <- input_params$genesets
algorithm.names <- input_params$algorithms
function.call <- input_params$function.call
grouping <- input_params$grouping

Deconvolution Benchmark

Real bulks

Score plot

plotfile <- paste0(plot.dir, "/score_plot_real.pdf")
if(file.exists(plotfile)){
  knitr::include_graphics(plotfile)
}

Scatter plots of quantities

plotfile <- paste0(plot.dir, "/scatter_plots_real.pdf")
if(file.exists(plotfile)){
  knitr::include_graphics(plotfile)
}

Runtime plot

plotfile <- paste0(plot.dir, "/runtime_plot_real.pdf")
if(file.exists(plotfile)){
  knitr::include_graphics(plotfile)
}

Additional Plots

Simulations

Bulk simulations

Score plot

plotfile <- paste0(plot.dir, "/score_plot_simulated.pdf")
if(file.exists(plotfile)){
  knitr::include_graphics(plotfile)
}

Scatter plot of quantities

plotfile <- paste0(plot.dir, "/scatter_plots_simulated.pdf")
if(file.exists(plotfile)){
  knitr::include_graphics(plotfile)
}

\pagebreak

Training set size simulation

Score boxplots

plotfile <- paste0(plot.dir, "/sample_plots_simulated.pdf")
if(file.exists(plotfile)){
  knitr::include_graphics(plotfile)
}

Geneset simulation

Runtime lineplot

plotfile <- paste0(plot.dir, "/gene_time_plot_simulated.pdf")
if(file.exists(plotfile)){
  knitr::include_graphics(plotfile)
}

Score lineplots

plotfile <- paste0(plot.dir, "/gene_score_plots_simulated.pdf")
if(file.exists(plotfile)){
  knitr::include_graphics(plotfile)
}

Subtype simulation

Score plot

plotfile <- paste0(plot.dir, "/subtype_plot.pdf")
if(file.exists(plotfile)){
  knitr::include_graphics(plotfile)
}

Input data



MarianSchoen/DMC documentation built on Aug. 2, 2022, 3:05 p.m.