Skip to content

Commit 1c33dac

Browse files
author
Karin Schork
committed
option to turn of generation of MA-plots
1 parent 8f07b13 commit 1c33dac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

R/workflow_QC.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#' @param boxplot_method A character containing the method used. Possible are "boxplot" and "violinplot". Default is "boxplot".
3333
#'
3434
# MA-Plot parameters
35+
#' @param generate_MAplots If \code{TRUE}, MA plots will be generated, if \code{FALSE} they will not be generated (mostly for debugging purposes).
3536
#' @param MA_maxPlots A numeric containing the maximum number of MA plots that should be generated. Defaults is 5000.
3637
#' @param MA_alpha If \code{TRUE}, the data points of the MA plots will be transparent.
3738
#' @param MA_sampling A numeric containing the sampling rate for MA-Plots. Useful to sample part of the data set for data sets on peptide/feature level with many data points.
@@ -100,6 +101,7 @@ workflow_QC <- function(data_path,
100101

101102
boxplot_method = "boxplot",
102103

104+
generate_MAplots = TRUE,
103105
MA_maxPlots = 5000,
104106
MA_alpha = FALSE,
105107
MA_sampling = 1,
@@ -174,6 +176,7 @@ workflow_QC <- function(data_path,
174176

175177
#### Calculate MA Plot ####
176178

179+
if (generate_MAplots) {
177180
ma_data <- MA_Plots(D = prepared_data[["D"]],
178181
do_log_transformation = FALSE,
179182
output_path = output_path, suffix = suffix,
@@ -182,6 +185,7 @@ workflow_QC <- function(data_path,
182185
plot_height = plot_height, plot_width = plot_width, sampling = MA_sampling)
183186

184187
mess <- paste0(mess, ma_data)
188+
}
185189

186190

187191
#### Calculate PCA Plot ####

0 commit comments

Comments
 (0)