constructDesignMatrix: Generate a design matrix from raw RNAi data.
Description
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.
Usage
constructDesignMatrix(data, covariates)
Value
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.
Arguments
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.