Description Usage Arguments Value Examples
A same RBP can recognize multiple motifs, the function mergeMotifs() groups all the motifs found for each RBP and report the total counts.
1 | mergeMotifs(motifs)
|
motifs |
A data frame generated with |
A data frame.
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 30 31 32 33 34 35 | # Load data frame containing detected back-spliced junctions
data("mergedBSJunctions")
# Load short version of the gencode v19 annotation file
data("gtf")
# Example with the first back-spliced junctions.
# Multiple back-spliced junctions can also be analyzed at the same time.
# Annotate detected back-spliced junctions
annotatedBSJs <- annotateBSJs(mergedBSJunctions[1, ], gtf)
# Get genome
genome <- BSgenome::getBSgenome("BSgenome.Hsapiens.UCSC.hg19")
# Retrieve target sequences
targets <- getSeqsFromGRs(
annotatedBSJs,
genome,
lIntron = 200,
lExon = 10,
type = "ie"
)
# Get motifs
motifs <-
getMotifs(
targets,
width = 6,
species = "Hsapiens",
rbp = TRUE,
reverse = FALSE)
# Group motifs
mergedMotifs <- mergeMotifs(motifs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.