|
1 |
| -#' Prepare proteomics data for analysis |
| 1 | +#' Prepare proteomics data for analysis. |
2 | 2 | #'
|
3 |
| -#' @param data_path A character containing the path to an .xlsx file. |
4 |
| -#' @param intensity_columns An integer vector containing the intensity columns of the table. |
5 |
| -#' @param na_strings A character vector containing symbols to be recognized as missing values (with the exception of 0). |
6 |
| -#' @param zero_to_NA If \code{TRUE}, 0 will be treated as missing value. |
7 |
| -#' @param do_log_transformation If \code{TRUE}, the data will be log-transformed. |
8 |
| -#' @param log_base A numeric containing the base used, if data is log-transformed. |
9 |
| -#' @param use_groups If \code{TRUE}, the data contains groups. |
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 |
| -#' @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. |
| 3 | +#' @param data_path \strong{character} \cr |
| 4 | +#' The path to an .xlsx file containing the input data. |
| 5 | +#' @param intensity_columns \strong{integer vector} \cr |
| 6 | +#' The numbers of the intensity columns in the table. |
| 7 | +#' @param na_strings \strong{character} \cr |
| 8 | +#' A vector containing the symbols to be recognized as missing values (with the exception of 0). |
| 9 | +#' @param zero_to_NA \strong{logical} \cr |
| 10 | +#' If \code{TRUE}, 0 will be treated as missing value. |
| 11 | +#' @param do_log_transformation \strong{logical} \cr |
| 12 | +#' If \code{TRUE}, the data will be log-transformed. |
| 13 | +#' @param log_base \strong{numeric} \cr |
| 14 | +#' The base used, if \code{do_log_transformation = TRUE}. |
| 15 | +#' @param use_groups \strong{logical} \cr |
| 16 | +#' If \code{TRUE}, group information encoded in the column names is used. |
| 17 | +#' @param group_colours \strong{character vector} \cr |
| 18 | +#' The hex codes for the group colors, if the data has groups. If \code{NULL}, a default color scale will be used. |
| 19 | +#' @param normalization \strong{character} \cr |
| 20 | +#' The method of normalization. Options are "nonorm" (no normalization), "median", "loess", "quantile" or "lts" normalization. |
| 21 | +#' @param lts_quantile \strong{numeric} \cr |
| 22 | +#' The quantile for the lts normalization if \code{normalization = "lts"}. |
13 | 23 | #'
|
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 |
| 24 | +#' @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. |
15 | 25 | #' @export
|
16 | 26 | #'
|
17 | 27 | #' @examples
|
18 |
| -#'\dontrun{ |
19 |
| -#' path <- "/Users/thisuser/Documents/dataFolder/data.xlsx" |
20 |
| -#' intensity_cols <- 3:17 |
21 |
| -#' |
22 |
| -#' prepared_data <- prepareData(data_path = path, intensity_columns = intensity_cols) |
23 |
| -#'} |
24 | 28 | #'
|
25 | 29 |
|
26 | 30 | prepareData <- function (data_path,
|
|
0 commit comments