rnb.execute.gender.prediction {RnBeads} | R Documentation

## rnb.execute.gender.prediction

### Description

Infers the gender of every sample in the given 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"`.

### Author(s)

Yassen Assenov

### Examples

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

[Package RnBeads version 1.12.1 Index]