rnb.execute.snp.removal: rnb.execute.snp.removal

Description Usage Arguments Value Author(s) Examples

View source: R/filtering.R

Description

Removes all probes overlapping with single nucleotide polymorphisms (SNPs) from the given dataset.

Usage

1
rnb.execute.snp.removal(rnb.set, snp = rnb.getOption("filtering.snp"))

Arguments

rnb.set

Methylation dataset as an object of type inheriting RnBSet.

snp

Criterion for the removal of sites or probes based on overlap with SNPs. Possible values are "no", "3", "5", "any" or "yes". See the documentation of rnb.options for a detailed explanation of the procedures these values encode.

Value

list of four elements:

"dataset.before"

Copy of rnb.set.

"dataset"

The (possibly) modified dataset object after removing probes that overlap with SNPs.

"filtered"

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

"snp"

The value of the snp parameter.

Author(s)

Yassen Assenov

Examples

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

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