Learn R Programming

methylKit (version 0.9.5)

getAssociationWithTSS: Get distance to nearest TSS and gene id from annotationByGenicParts

Description

This accessor function gets the nearest TSS, its distance to target feature,strand and name of TSS/gene from annotationByGenicParts object

Usage

getAssociationWithTSS(x)

Arguments

Value

a data.frame containing row number of the target features,distance of target to nearest TSS, TSS/Gene name, TSS strand

Examples

Run this code
# NOT RUN {
data(methylKit)
gene.obj=read.transcript.features(system.file("extdata", "refseq.hg18.bed.txt", package = "methylKit"))
ann=annotate.WithGenicParts(methylDiff.obj, gene.obj)
df=getAssociationWithTSS(ann)
head(df)
# }

Run the code above in your browser using DataLab