predictEthnicity {planet} | R Documentation |
Uses 1860 CpGs to predict self-reported ethnicity on placental microarray data.
predictEthnicity(betas, threshold = 0.75)
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. |
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)