View source: R/predictEthnicity.R
predictEthnicity | R Documentation |
Uses 1860 CpGs to predict self-reported ethnicity on placental microarray data.
predictEthnicity(betas, threshold = 0.75, force = FALSE)
betas |
n x m dataframe of methylation values on the beta scale (0, 1), where the variables are arranged in rows, and samples in columns. Should contain all 1860 predictors and be normalized with NOOB and BMIQ. |
threshold |
A probability threshold ranging from (0, 1) to call samples 'ambiguous'. Defaults to 0.75. |
force |
run even if missing predictors. Default is |
Predicts self-reported ethnicity from 3 classes: Africans, Asians, and Caucasians, using placental DNA methylation data measured on the Infinium 450k/EPIC methylation array. Will return membership probabilities that often reflect genetic ancestry composition.
The input data should contain all 1860 predictors (cpgs) of the final GLMNET model.
It's recommended to use the same normalization methods used on the training data: NOOB and BMIQ.
a tibble
## To predict ethnicity on 450k/850k samples
# Load placenta DNAm data
data(plBetas)
predictEthnicity(plBetas)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.