Learn R Programming

RnBeads (version 1.4.0)

regionMapping,RnBSet-method: regionMapping-methods

Description

get the mapping of regions in the RnBSet object to methylation site indices in the RnBSet object

Usage

"regionMapping"(object, region.type)

Arguments

object
Dataset as an object of type inheriting RnBSet.
region.type
region type. see rnb.region.types for possible values

Value

A list containing for each region the indices (as integers) of sites that belong to that region

Examples

Run this code

library(RnBeads.hg19)
data(small.example.object)
logger.start(fname=NA)
promoter.probe.list <- regionMapping(rnb.set.example,"promoters")
#get the number of CpGs per promoter in the dataset:
sapply(promoter.probe.list,length)

Run the code above in your browser using DataLab