View source: R/predictPreeclampsia.R
predictPreeclampsia | R Documentation |
Uses 45 CpGs to predict early preeclampsia (PE delivered before or at 34 weeks of gestation) on placental DNA methylation microarray data.
predictPreeclampsia(betas, ...)
betas |
matrix or array of methylation values on the beta scale (0, 1), where the variables are arranged in rows, and samples in columns. |
... |
feeds into outersect function |
Assigns the class labels "early-PE" or "normotensive" to each sample and returns a class probability.
produces a list with components detailed in the mixOmics::predict
R documentation
prior to prediction. This was the normalization method used on the training data.
# To predict early preeclampsia on 450k/850k samples
# Load data
library(ExperimentHub)
eh <- ExperimentHub()
query(eh, "eoPredData")
# test object
x_test <- eh[['EH8403']]
x_test %>% predictPreeclampsia()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.