Learn R Programming

methylKit (version 0.9.5)

getMembers: Get the membership slot of annotationByFeature

Description

Membership slot defines the overlap of target features with annotation features as a matrix.

Usage

getMembers(x)

Arguments

Value

a matrix showing overlap of target features with annotation features. 1 for overlap, 0 for non-overlap. Each row in the matrix corresponds to a genomic feature that is annoted by one of the following functions: annotate.WithFeature, annotate.WithFeature.Flank, annotate.WithGenicParts

Examples

Run this code
# NOT RUN {
data(methylKit)
cpg.obj=read.feature.flank(system.file("extdata", "cpgi.hg18.bed.txt", package = "methylKit"),feature.flank.name=c("CpGi","shores"))

ann=annotate.WithFeature.Flank(methylDiff.obj,cpg.obj$CpGi,cpg.obj$shores,feature.name="CpGi",flank.name="Shores")
mat=getMembers(ann)
head(mat)
# }

Run the code above in your browser using DataLab