This function create a Rmarkdown script and render it as a HTML document.
The HTML document is a quality-control report using all the metrics from visualise()
based on recommendations from NanoString.
Usage
render(
nacho_object,
colour = "CartridgeID",
output_file = "NACHO_QC.html",
output_dir = ".",
size = 1,
show_legend = TRUE,
show_outliers = TRUE,
outliers_factor = 1,
outliers_labels = NULL,
clean = TRUE
)Arguments
- nacho_object
[list] A list object of class
"nacho"obtained fromload_rcc()ornormalise().- colour
[character] Character string of the column in
ssheet_csvor more generally innacho_object$nachoto be used as grouping colour.- output_file
[character] The name of the output file.
- output_dir
[character] The output directory for the rendered output_file. This allows for a choice of an alternate directory to which the output file should be written (the default output directory is the working directory, i.e.,
.). If a path is provided with a filename inoutput_filethe directory specified here will take precedence. Please note that any directory path provided will create any necessary directories if they do not exist.- size
[numeric] A numeric controlling point size (
ggplot2::geom_point()or line size (ggplot2::geom_line()).- show_legend
[logical] Boolean to indicate whether the plot legends should be plotted (
TRUE) or not (FALSE). Default isTRUE.- show_outliers
[logical] Boolean to indicate whether the outliers should be highlighted in red (
TRUE) or not (FALSE). Default isTRUE.- outliers_factor
[numeric] Size factor for outliers compared to
size. Default is1.- outliers_labels
[character] Character to indicate which column in
nacho_object$nachoshould be used to be printed as the labels for outliers or not. Default isNULL.- clean
[logical] Boolean to indicate whether the Rmd and Rdata file used to produce the HTML report are removed from
output_dir. Default isTRUE.
Examples
if (interactive()) {
data(GSE74821)
render(GSE74821)
}