Learn R Programming

MEAL (version 1.2.3)

filterSet: Filter a MethylationSet, an ExpressionSet or a SnpSet

Description

Filter a MethylationSet, an ExpressionSet or a SnpSet

Usage

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

Run this code
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
}

Run the code above in your browser using DataLab