ReshapeData {synergyfinder} | R Documentation |
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.
ReshapeData(data, impute = TRUE, noise = TRUE, correction = "non", data.type = "viability")
data |
drug combination response data in a data frame format |
impute |
a logical value. If it is |
noise |
a logical value. It indicates whether or not adding noise to
to the "response" values in the matrix. Default is |
correction |
a character. This argument is extended from the argument
|
data.type |
a parameter to specify the response data type which can be either "viability" or "inhibition". |
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.
a list of the following components:
dose.response.mats a list of the dose-response matrices with %inhibition as the response data. Row names and column names are drug concentrations.
adjusted.response.mats The dose response matrix adjusted.
The processes are chosen by arguments impute
, noise
, and
correction
. If no process was chosen, the final result will not
contain this result.
drug.pairs a data frame contains the name of the row drug, the name of the column drug, concentration unit and block IDs.
Liye He liye.he@helsinki.fi
Shuyu Zheng shuyu.zheng@helsinki.fi
data("mathews_screening_data") # set a random number seed for generating the noises set.seed(1) data <- ReshapeData(mathews_screening_data)