annotateWithGeneParts-methods: Annotate given object with promoter, exon, intron and...

Description Usage Arguments Value Examples

Description

The function annotates GRangesList or GRanges object as overlapping with promoter,exon,intron or intergenic regions.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
annotateWithGeneParts(target, feature, strand = FALSE,
  intersect.chr = FALSE)

## S4 method for signature 'GRanges,GRangesList'
annotateWithGeneParts(target, feature,
  strand = FALSE, intersect.chr = FALSE)

## S4 method for signature 'GRangesList,GRangesList'
annotateWithGeneParts(target, feature,
  strand = FALSE, intersect.chr = FALSE)

Arguments

target

GRanges or GRangesList object storing chromosome locations to be annotated (e.g. chipseq peaks)

feature

GRangesList object containing GRanges object for promoter, exons, introns and transcription start sites, or simply output of readTranscriptFeatures function

strand

If set to TRUE, annotation features and target features will be overlapped based on strand (def:FALSE)

intersect.chr

boolean, whether to select only chromosomes that are common to feature and target. FALSE by default

Value

AnnotationByGeneParts object or a list of AnnotationByGeneParts objects if target is a GRangesList object.

Examples

1
2
3
4
5
data(cage)
bed.file = system.file("extdata/chr21.refseq.hg19.bed", package = "genomation")
gene.parts = readTranscriptFeatures(bed.file)
cage.annot = annotateWithGeneParts(cage, gene.parts, intersect.chr=TRUE)
cage.annot

BIMSBbioinfo/genomation documentation built on March 13, 2020, 5:28 a.m.