11---
22title : " `r params$title`"
33author : " `r params$author`"
4- date : " `r format(Sys.time(), " %d %B %Y" )`"
4+ date : " `r format(Sys.time(), ' %d %B %Y' )`"
55output :
6- pdf_document :
7- toc : yes
8- toc_depth : ' 2'
96 html_document :
107 self_contained : yes
118 code_folding : hide
@@ -28,11 +25,10 @@ params:
2825 - Firstname Lastname (Department)
2926 - Firstname Lastname (Department)
3027 input : text
31- input_data_file :
32- label : ' [REQUIRED] Path to binary file with input `SummarizedExperiment` produced
33- with `save(...)`'
34- value : /home/rstudio/NEST/hermes/data/summarized_experiment.rda
35- input : file
28+ input_summarized_experiment :
29+ label : ' [REQUIRED] Name of the `SummarizedExperiment` object to use as input'
30+ value : summarized_experiment
31+ input : text
3632 output_data_file :
3733 label : ' [REQUIRED] Path to binary file where filtered and normalized `HermesData`
3834 object should be saved'
@@ -112,7 +108,7 @@ library(hermes)
112108``` {r}
113109# Load Data and get object HermesData
114110obj_name <- load(params$input_data_file)
115- se <- get(obj_name )
111+ se <- get(params$input_summarized_experiment )
116112stopifnot(is(se, "SummarizedExperiment"))
117113
118114# Section 1 - Pre Filtering, with added QC flags
@@ -151,7 +147,7 @@ sessionInfo()
151147
152148# Dataset Summary
153149
154- The dataset used is "` r obj_name ` " saved in file ` r params$input_data_object ` .
150+ The dataset used is "` r params$input_summarized_experiment ` " .
155151The data set was composed of <b >` r ncol(object_original) ` </b > samples and <b >` r nrow(object_original) ` </b > genes.
156152
157153## Technical Metrics {.tabset}
@@ -192,7 +188,8 @@ There are many ways to filter out genes with lower counts. When there are n biol
192188This barplot shows the chromosomes with their proportions of low expression genes.
193189
194190``` {r, include = params$show_output}
195- draw_genes_barplot(object_original)
191+ draw_genes_barplot(object_original) +
192+ theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust = 1))
196193```
197194
198195### Genes with extremely high counts
@@ -251,7 +248,11 @@ object_cor <- hermes::correlate(object_original, method = params$cor_method)
251248```
252249
253250``` {r, include = params$show_output}
254- autoplot(object_cor)
251+ autoplot(
252+ object_cor,
253+ row_names_gp = grid::gpar(fontsize = 8),
254+ column_names_gp = grid::gpar(fontsize = 8)
255+ )
255256```
256257
257258### Boxplot of non-zero genes per sample
@@ -320,6 +321,7 @@ object_pca <- calc_pca(object_filtered_normalized, assay_name = "counts")
320321autoplot(
321322 object_pca,
322323 label = TRUE,
324+ label.repel = TRUE,
323325 data = as.data.frame(colData(object_filtered_normalized)),
324326 colour = params$pca_batch_var
325327)
@@ -338,6 +340,7 @@ object_norm_pca <- calc_pca(
338340autoplot(
339341 object_norm_pca,
340342 label = TRUE,
343+ label.repel = TRUE,
341344 data = as.data.frame(colData(object_filtered_normalized)),
342345 colour = params$pca_batch_var
343346)
0 commit comments