Remove the effects of sample covariates from gene expression via linear regression.
Usage
covariate_removal(expression_mat, covariate_df)
Arguments
- expression_mat
A sample by gene numeric matrix that stores gene expression values;
- covariate_df
A sample by covariate numeric matrix that stores sample covariates;
Value
A sample by gene numeric matrix that stores corrected gene expression values.