ranges2annot | R Documentation |
Assigns region types such as promoter
, exon
or unknown
to genomic
regions such as CTSS, tag clusters, or consensus clusters.
ranges2annot(ranges, annot, upstream = 500, downstream = 500)
ranges |
A |
annot |
A |
upstream |
Number of bases upstream the start of the transcript models to be considered as part of the promoter region. |
downstream |
Number of bases downstream the start of the transcript models to be considered as part of the promoter region. |
Only the biotypes that are likely to have a pol II promoter will be
filtered in. This is currently hardcoded in the function; see its source
code. Example of biotypes without a pol II promoter: VDJ segments, miRNA,
but also snoRNA, etc. Thus, the Intergenic category displayed in output of
the plotAnnot
may include counts overlaping with real exons of discarded
transcribed regions: be careful that large percentages do not necessarly
suggest abundance of novel promoters.
A Run-length-encoded (Rle
) factor of same length as the CTSS
object, indicating if the interval is promoter
, exon
, intron
or
unknown
, or just promoter
, gene
, unknown
if the type
metadata is absent.
Charles Plessy
CTSScoordinatesGR
, exampleZv9_annot
Other CAGEr annotation functions:
annotateCTSS()
,
plotAnnot()
,
ranges2genes()
,
ranges2names()
CAGEr:::ranges2annot(CTSScoordinatesGR(exampleCAGEexp), exampleZv9_annot)
ctss <- GenomicRanges::GRanges("chr1", IRanges::IPos(c(1,100,200,1500)), "+")
ctss <- GenomicRanges::GPos(ctss, stitch = FALSE)
ctss <- as(ctss, "CTSS")
gr1 <- GenomicRanges::GRanges( "chr1"
, IRanges::IRanges(c(650, 650, 1400), 2000), "+")
CAGEr:::ranges2annot(ctss, gr1)
gr2 <- gr1
gr2$type <- c("transcript", "exon", "transcript")
gr2$transcript_type <- c("protein_coding", "protein_coding", "miRNA")
CAGEr:::ranges2annot(ctss, gr2, up=500, down=20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.