Description Usage Arguments Value See Also Examples
Create a Gviz-track of clusters (unidirectional TCs or bidirectional enhancers), where cluster strand and peak is indicated.
1 2 3 4 5 6 7 8 9 10 11 12 13 | trackClusters(object, ...)
## S4 method for signature 'GRanges'
trackClusters(
object,
plusColor = "cornflowerblue",
minusColor = "tomato",
unstrandedColor = "hotpink",
...
)
## S4 method for signature 'RangedSummarizedExperiment'
trackClusters(object, ...)
|
object |
GRanges: GRanges with peaks in the thick-column. |
... |
additional arguments passed on to GeneRegionTrack. |
plusColor |
character: Color for plus-strand features. |
minusColor |
character: Color for minus-strand features. |
unstrandedColor |
character: Color for unstranded features. |
GeneRegionTrack-object.
Other Genome Browser functions:
trackBalance()
,
trackCTSS()
,
trackLinks()
1 2 3 4 5 6 7 8 9 10 11 12 13 | library(Gviz)
data(exampleUnidirectional)
# Find some wide unidirectional clusters:
TCs <- subset(exampleUnidirectional, width >= 100)
# Create track
clusters_track <- trackClusters(TCs[1:2,], name='Tag clusters', col=NULL)
# Plot
plotTracks(clusters_track)
# See vignette for examples on how to combine multiple Gviz tracks
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.