You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/prepareData.R
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@
9
9
#' @param use_groups If \code{TRUE}, the data contains groups.
10
10
#' @param group_colours A character vector of hex codes for the group colors, if the data has groups. If \code{NULL}, a default color scale will be used.
11
11
#' @param normalization A character containing the method of normalization. The possible methods are no normalization "nonorm" or "median", "loess", "quantile" or "lts" normalization.
12
+
#' @param lts_quantile A numeric containing the quantile for the lts normalization if \code{normalization = "lts"}, default is 0.8.
12
13
#'
13
14
#' @return A list containing the prepared data and the ids of the data as data.frames as well as the groups, number of groups and group colors
14
15
#' @export
@@ -28,7 +29,7 @@ prepareData <- function (data_path,
28
29
zero_to_NA=TRUE,
29
30
do_log_transformation=TRUE, log_base=2,
30
31
use_groups=FALSE, group_colours=NULL,
31
-
normalization="loess"){
32
+
normalization="loess", lts_quantile=0.8){
32
33
33
34
34
35
#### read and prepare data file ####
@@ -67,7 +68,7 @@ prepareData <- function (data_path,
Copy file name to clipboardExpand all lines: R/workflow_QC.R
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
# mandatory parameters
8
8
#' @param intensity_columns An integer vector containing the intensity columns of the table.
9
9
#' @param normalization_method A character containing the method of normalization. The possible methods are no normalization "nonorm" or "median", "loess", "quantile" or "lts" normalization.
10
+
#' @param lts_quantile A numeric containing the quantile for the lts normalization if \code{normalization = "lts"}, default is 0.8.
10
11
#' @param use_groups If \code{TRUE}, group information encoded in the column names are used. Default is \code{TRUE}.
0 commit comments