Description Usage Arguments Value Examples
Get Residuals
1 2 3 4 5 6 7 8 | GetResiduals(
dnam,
betaToM = TRUE,
pheno_df,
covariates_char,
nCores_int = 1L,
...
)
|
dnam |
data frame or matrix of methylation values,
with row names = CpG IDs, column names = sample IDs. This is often the
genome-wide array data. Note that if beta values are the input here,
then |
betaToM |
indicates if converting methylation beta values to mvalues |
pheno_df |
a data frame with phenotype and covariates, with variable
|
covariates_char |
character vector for names of the covariate variables |
nCores_int |
Number of computing cores to be used when executing code in parallel. Defaults to 1 (serial computing). |
... |
Dots for additional arguments passed to the cluster constructor.
See |
output a matrix of residual values, in the same dimension as dnam
1 2 3 4 5 6 7 8 9 10 | data(betasChr22_df)
data(pheno_df)
GetResiduals(
dnam = betasChr22_df[1:10, 1:10],
betaToM = TRUE,
pheno_df = pheno_df,
covariates_char = c("age.brain", "sex", "slide")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.