predictPreeclampsia: predictPreeclampsia

View source: R/predictPreeclampsia.R

predictPreeclampsiaR Documentation

predictPreeclampsia

Description

Uses 45 CpGs to predict early preeclampsia (PE delivered before or at 34 weeks of gestation) on placental DNA methylation microarray data.

Usage

predictPreeclampsia(betas, ...)

Arguments

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

Details

Assigns the class labels "early-PE" or "normotensive" to each sample and returns a class probability.

Value

produces a list with components detailed in the mixOmics::predict R documentation

It is recommended that users apply beta-mixture quantile normalization (BMIQ) to their data

prior to prediction. This was the normalization method used on the training data.

Examples


# 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()


wvictor14/plmec documentation built on Feb. 4, 2025, 6:39 p.m.