Description Usage Arguments Value Examples
View source: R/annotateRepeats.R
The function annotateRepeats() annotates repetitive elements
located in the region flanking the back-spliced junctions of each circRNA.
Repetitive elements are provided by AnnotationHub storage which
collected repeats from RepeatMasker database. See AnnotationHub
and http://www.repeatmasker.org for more details.
An empty list is returned if none overlapping repeats are found.
1 | annotateRepeats(targets, annotationHubID = "AH5122", complementary = TRUE)
|
targets |
A list containing the target regions to analyze.
It can be generated with |
annotationHubID |
A string specifying the AnnotationHub id to use. Type data(ahRepeatMasker) to see all possible options. E.g. if AH5122 is specified, repetitive elements from Homo sapiens, genome hg19 will be downloaded and annotated. Default value is "AH5122". |
complementary |
A logical specifying whether to filter and report only back-spliced junctions of circRNAs which flanking introns contain complementary repeats, that is, repeats belonging to a same family but located on opposite strands. |
A list.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | # Load data frame containing detected back-spliced junctions
data("mergedBSJunctions")
# Load short version of the gencode v19 annotation file
data("gtf")
# Annotate the first back-spliced junctions
annotatedBSJs <- annotateBSJs(mergedBSJunctions[1, ], gtf)
# Get genome
if (requireNamespace("BSgenome.Hsapiens.UCSC.hg19", quietly = TRUE)){
genome <- BSgenome::getBSgenome("BSgenome.Hsapiens.UCSC.hg19")
# Retrieve targets
targets <- getSeqsFromGRs(
annotatedBSJs,
genome,
lIntron = 200,
lExon = 10,
type = "ie"
)
# Annotate repeats
repeats <- annotateRepeats(targets, annotationHubID = "AH5122",
complementary = TRUE)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.