remove.sites-methods: remove.sites-methods

Description Usage Arguments Value See Also Examples

Description

Removes the specified probes from the dataset.

Usage

1
2
3
4
5
6
7
8
## S4 method for signature 'RnBSet'
remove.sites(object, probelist, verbose = FALSE)

## S4 method for signature 'RnBeadSet'
remove.sites(object, probelist, verbose = TRUE)

## S4 method for signature 'RnBeadRawSet'
remove.sites(object, probelist, verbose = TRUE)

Arguments

object

Dataset of interest.

probelist

List of probes to be removed in the form of a logical, integer or character vector. If this parameter is logical, it is not recycled; its length must be equal to the number of probes in object. If it is integer or character, it must list only probes that exist in the dataset. Specifying probe indices larger than the number of probes, or non-existent probe identifiers results in an error.

verbose

if TRUE additional diagnostic output is generated

Value

The modified dataset.

See Also

remove.samples for removing samples from a methylation dataset

Examples

1
2
3
4
5
6
7
library(RnBeads.hg19)
data(small.example.object)
print(rnb.set.example)
## remove 100 random sites
s2r<-sample.int(nrow(sites(rnb.set.example)), 100)
rnb.set.f<-remove.sites(rnb.set.example, s2r)
print(rnb.set.f)

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