View source: R/wbccPredictor.R
train_wbcc | R Documentation |
Train the cell-type composition predictor using partial least squares regression on mehtylation values
train_wbcc( data, covar, cellPer, model = formula(cellPer ~ covar + data), ncomp = 50, keep.model = FALSE, ... )
data |
Matrix with DNA methylation beta-values |
covar |
Matrix of covariates to correct for in the model |
cellPer |
Matrix of cell percentages on which the predictor will be trained |
model |
Formula (default: cellPer ~ covar + data) |
ncomp |
Number of PLS components to train (default: 50) |
keep.model |
Logical specifying whether to return the model (default: FALSE) |
... |
Additional parameters for plsr see ?plsr |
Prediction model PLSR object
mvaniterson
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.