Skip to content

Commit c711913

Browse files
author
Karin Schork
committed
data sampling fór MA-Plots
1 parent 3107798 commit c711913

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

R/MA_Plot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ MA_Plot_single <- function(sample_1, sample_2,
7373
#' @param alpha If \code{TRUE}, the data points will be transparent.
7474
#' @param plot_height The height of the resulting MA plots.
7575
#' @param plot_width The width of the resulting MA plots.
76-
#' @param sampling A numeric containing the sampling rate. Useful to sample part of the data set for data sets on peptide/feature level with many data points.
76+
#' @param sampling A numeric containing the sampling rate. Useful to sample part of the data set for data sets on peptide/feature level with many data points.
7777
#' @param ... Additional arguments for affy::ma.plot.
7878
#'
7979
#' @return A pdf file containing the MA plots for all sample combinations.

R/workflow_QC.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
# MA-Plot parameters
3535
#' @param MA_maxPlots A numeric containing the maximum number of MA plots that should be generated. Defaults is 5000.
3636
#' @param MA_alpha If \code{TRUE}, the data points of the MA plots will be transparent.
37+
#' @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.
3738
#'
3839
# PCA parameters:
3940
#' @param PCA_impute If \code{TRUE}, missing values will be imputed.
@@ -101,6 +102,7 @@ workflow_QC <- function(data_path,
101102

102103
MA_maxPlots = 5000,
103104
MA_alpha = FALSE,
105+
MA_sampling = 1,
104106

105107
#PCA_groupvar1 = "group",
106108
#PCA_groupvar2 = NULL,
@@ -173,7 +175,7 @@ workflow_QC <- function(data_path,
173175
output_path = output_path, suffix = suffix,
174176
labels = 1:ncol(prepared_data[["D"]]), labels2 = colnames(prepared_data[["D"]]),
175177
maxPlots = MA_maxPlots, alpha = MA_alpha,
176-
plot_height = plot_height, plot_width = plot_width)
178+
plot_height = plot_height, plot_width = plot_width, sampling = MA_sampling)
177179

178180
mess <- paste0(mess, ma_data)
179181

0 commit comments

Comments
 (0)