Filter a MethylationSet, an ExpressionSet or a SnpSet

Description

Filter a MethylationSet, an ExpressionSet or a SnpSet

Usage

1
filterSet(set, range)

Arguments

set

MethylationSet, ExpressionSet or a SnpSet

range

GenomicRanges with the desired range.

Value

MethylationSet, ExpressionSet or a SnpSet with only the features of the range.

Examples

1
2
3
4
5
6
7
8
if (require(minfiData) & require(GenomicRanges)){
range <- GRanges(seqnames=Rle("chrY"), 
ranges = IRanges(3000000, end=12300000))
set <- prepareMethylationSet(MsetEx[1:100, ], pData(MsetEx))
set
filteredset <- filterSet(set, range)
filteredset
}

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.