constructDesignMatrix {cancerGI} | R Documentation |
This function takes the raw RNAi data as input and generates a design matrix for regression. Specifically written for the format of the data set RNAi
, which contains four batches. This R function will use batch3
as the baseline.
constructDesignMatrix(data, covariates)
data |
Matrix of RNAi measurements; includes columns batch, query_gene and template_gene. |
covariates |
Vector of strings; each string is the name of a covariate. |
A design matrix. The number of rows is the same as that of the data set RNAi
, and the number of columns is the same as the length of covariates
.
## See example in documentation for the data set RNAi.