estimateSex: Predict sex by using robust sex-related CpG sites on ChrX and...

View source: R/estimateSex.R

estimateSexR Documentation

Predict sex by using robust sex-related CpG sites on ChrX and ChrY

Description

Predict sex by using robust sex-related CpG sites on ChrX and ChrY

Usage

estimateSex(betas, do_plot = FALSE)

Arguments

betas

A matrix with sample IDs as column names, and probe names as row names, ideally: beta = M / (M + U + 100). Take a look at an example betas with: "data(melon); print(betas(melon)[1:10, 1:3])".

do_plot

logical. Should plot the predicted results? Default: FALSE

Value

dataframe contains predicted sex information.

Author(s)

Wang, Yucheng, et al. "DNA methylation-based sex classifier to predict sex and identify sex chromosome aneuploidy." BMC genomics 22.1 (2021): 1-11.

Examples

data(melon)
pred_XY <- estimateSex(betas(melon), do_plot=TRUE)

schalkwyk/wateRmelon documentation built on April 15, 2024, 12:06 p.m.