TSSlogo | R Documentation |
Plot the sequence logo of the region flanking the TSS. When this function is given tag clusters or consensus clusters, it uses the dominant peak as the transcription start site.
TSSlogo(x, upstream = 10, downstream = 10)
## S4 method for signature 'CAGEexp'
TSSlogo(x, upstream = 10, downstream = 10)
## S4 method for signature 'TagClusters'
TSSlogo(x, upstream = 10, downstream = 10)
## S4 method for signature 'ConsensusClusters'
TSSlogo(x, upstream = 10, downstream = 10)
## S4 method for signature 'CTSS'
TSSlogo(x, upstream = 10, downstream = 10)
x |
A |
upstream |
Number of bases to plot upstream the TSS. |
downstream |
Number of bases to plot downstream the TSS, including the TSS itself. |
This function will only work if the CAGEexp
object was built with a
BSgenome
package, as it needs to extract genomic sequences.
A ggplot2::ggplot
object showing the sequence logo. The
coordinates displayed are negative for upstream sequences and positive
downstream. The position of the TSS is set to 1.
Charles Plessy
Other CAGEr plot functions:
hanabiPlot()
,
plotAnnot()
,
plotCorrelation()
,
plotExpressionProfiles()
,
plotInterquantileWidth()
,
plotReverseCumulatives()
TSSlogo(exampleCAGEexp|>consensusClustersGR(), 20, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.