ReshapeData: Pre-process the Response Data for Further Calculation and...

Description Usage Arguments Details Value Author(s) Examples

View source: R/Reshape_data.R

Description

A function to transform the response data from data frame format to dose-response matrices. Several processes could be chose to add noise, impute missing values or correct base line to the dose-response matrix.

Usage

1
2
3
4
5
6
7
8
9
ReshapeData(
  data,
  impute = TRUE,
  impute_method = NULL,
  noise = FALSE,
  seed = NULL,
  iteration = 10,
  data_type = "viability"
)

Arguments

data

drug combination response data in a data frame format

impute

a logical value. If it is TRUE, the NA values will be imputed by mice. Default is TRUE.

impute_method

a single string. It sets the method parameter in function mice to specify the imputation method. Please check the documentation of mice to find the available methods.

noise

a logical value. It indicates whether or not adding noise to to the "response" values in the matrix. Default is TRUE.

seed

a single value, interpreted as an integer, or NULL. It is the random seed for calculating the noise. Default setting is NULL

iteration

An integer. It indicates the number of iterations for synergy scores calculation on data with replicates.

data_type

a parameter to specify the response data type which can be either "viability" or "inhibition".

Details

The input data must contain the following columns: (block_id/BlockId/PairIndex), (drug_row/DrugRow/Drug1), (drug_col/DrugCol/Drug2), (response/Response/inhibition/Inhibition), (conc_r/ConcRow/Conc1), (conc_c/ConcCol/Conc2), and (ConcUnit/conc_r_unit, conc_c_unit/ConcUnit1, ConcUnit2, ConcUnit3)

Value

a list of the following components:

Author(s)

Examples

1
2
3
4
data("mathews_screening_data")
# set a random number seed for generating the noises
set.seed(1)
data <- ReshapeData(mathews_screening_data)

Example output



synergyfinder documentation built on April 4, 2021, 6 p.m.