A class to hold chromatin interaction data for a specific genomic region.
The InteractionTrack class is a specific Gviz-derived class for enabling the visualisation of chromatin interaction data.
It allows interactions on a specified chromosome to be visualised by examining interactions between anchors as bezier curves.
The object is instantiated and used in a similar fashion to standard Gviz tracks,
e.g., plotted using the plotTracks
function.
Several additional display parameters are defined for this class:
plot.anchors
:Logical scalar indicating whether anchor elements are to be drawn.
col.anchors.line
:String specifying the colour of border of these anchor elements.
col.anchors.fill
:String specifying the colur to fill these anchor elements.
plot.outside
:Logical scalar indicating whether interactions spanning outside of the window are to be plotted.
col.outside
:String specifying the line colour to use for outside-spanning interactions.
plot.trans
:Logical scalar indicating whether trans-chromosomal interactions are to be plotted.
col.trans
:String specifying the line colour to use for trans-chromosomal interactions.
col.interactions
:String specifying the colour of arcs representing interactions within the region of interest.
col.interaction.types
:A named character vector of colours to use for each type of interaction, where the name corresponds to the type of interaction (e.g., promoter-promoter, distal-promoter).
A named character vector of colours to use for the border of each type of anchor element, where the name corresponds to the anchor type (e.g., promoter).
A named character vector of colours to use for the fillof each type of anchor element, where the name corresponds to the anchor type (e.g., promoter).
A number of options are available to convey quantitative information:
By default, the height of an arc representing an interaction is proportional to the number of supporting reads.
Instead of using the counts to define this, the height can be set to be proportional to either fdr
or p.value
using the interaction.measure
display parameter.
By changing the interaction.dimension
to "width"
, the line widths of each arc now represent the statistic supporting them, instead of the heights.
The heights of the arcs can be made to be proportional to the log10 of the supporting statistic by changing interaction.dimension.transform
to "log"
.
All of these parameters can be set with standard methods, i.e., displayPars<-
on a InteractionTrack object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.