Learn R Programming

RnBeads (version 1.4.0)

rnb.execute.gender.prediction: rnb.execute.gender.prediction

Description

Infers the gender of every sample in the given Infinium 450k dataset, based on average signal intensity values on the autosomes and the sex chromosomes.

Usage

rnb.execute.gender.prediction(rnb.set)

Arguments

rnb.set
Methylation dataset as an object of type RnBeadRawSet.

Value

The possibly modified dataset. If gender could be predicted, the sample annotation table is enriched with two more columns - "Predicted Male Probability" and "Predicted Gender".

Examples

Run this code

library(RnBeads.hg19)
data(small.example.object)
rnb.set.example <- rnb.execute.gender.prediction(rnb.set.example)
table(rnb.set.example[, "Predicted Gender"])

Run the code above in your browser using DataLab