rnb.execute.sex.removal: rnb.execute.sex.removal

Description Usage Arguments Value Author(s) Examples

View source: R/filtering.R

Description

Removes all sites in sex chromosomes from the given dataset.

Usage

1

Arguments

rnb.set

Methylation dataset as an object of type inheriting RnBSet.

Value

List of three elements:

"dataset.before"

Copy of rnb.set.

"dataset"

The (possibly) modified dataset after retaining sites on autosomes only.

"filtered"

integer vector storing the indices (in beta matrix of the unfiltered dataset) of all removed probes.

Author(s)

Yassen Assenov

Examples

1
2
3
4
library(RnBeads.hg19)
data(small.example.object)
rnb.set.filtered <- rnb.execute.sex.removal(rnb.set.example)$dataset
identical(meth(rnb.set.example), meth(rnb.set.filtered)) # FALSE

RnBeads documentation built on March 3, 2021, 2 a.m.