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
plotfile <- paste0(plot.dir, "/score_plot_real.pdf") if(file.exists(plotfile)){ knitr::include_graphics(plotfile) }
plotfile <- paste0(plot.dir, "/scatter_plots_real.pdf") if(file.exists(plotfile)){ knitr::include_graphics(plotfile) }
plotfile <- paste0(plot.dir, "/runtime_plot_real.pdf") if(file.exists(plotfile)){ knitr::include_graphics(plotfile) }
plotfile <- paste0(plot.dir, "/score_plot_simulated.pdf") if(file.exists(plotfile)){ knitr::include_graphics(plotfile) }
plotfile <- paste0(plot.dir, "/scatter_plots_simulated.pdf") if(file.exists(plotfile)){ knitr::include_graphics(plotfile) }
\pagebreak
plotfile <- paste0(plot.dir, "/sample_plots_simulated.pdf") if(file.exists(plotfile)){ knitr::include_graphics(plotfile) }
plotfile <- paste0(plot.dir, "/gene_time_plot_simulated.pdf") if(file.exists(plotfile)){ knitr::include_graphics(plotfile) }
plotfile <- paste0(plot.dir, "/gene_score_plots_simulated.pdf") if(file.exists(plotfile)){ knitr::include_graphics(plotfile) }
plotfile <- paste0(plot.dir, "/subtype_plot.pdf") if(file.exists(plotfile)){ knitr::include_graphics(plotfile) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.