constructDesignMatrix {cancerGI} | R Documentation |
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)
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. |
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
.
Examples
## See example in documentation for the data set RNAi.
[Package cancerGI version 1.0.1 Index]