ReshapeData {synergyfinder}R Documentation

Pre-processe the response data for furhter calculation and plot

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

ReshapeData(
  data,
  impute = TRUE,
  noise = TRUE,
  correction = "non",
  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 ImputeNA. Default is TRUE.

noise

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

correction

a character. This argument is extended from the argument method of CorrectBaseLine function. There are three available valuse: non, part, all. The default setting is non.

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, drug_row, drug_col, response, conc_r, conc_c, conc_r_unit, conc_c_unit.

Value

a list of the following components:

Author(s)

Examples

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

[Package synergyfinder version 2.0.12 Index]