Description Usage Arguments Value Examples
The function annotates GRangesList
or GRanges
object as
overlapping with promoter,exon,intron or intergenic regions.
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)
|
target |
|
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 |
AnnotationByGeneParts
object or a list of
AnnotationByGeneParts
objects if target is a GRangesList
object.
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.