Description Usage Arguments Details Note Author(s) See Also Examples
This function plots a given set of aligned chimeric reads along a reference sequence. It plots the breakpoints of translations or inversions and marks deletions, insertions and mismatches. Optionally, it displays all base pairs in a given region around the breakpoint.
1 2 |
brpData |
A |
geneSymbols |
Boolean value whether to automatically load and plot the gene symbols from the Ensembl database. Additionally,
|
plotMut |
Boolean value whether to mark deletions, insertions and mismatches. |
plotBasePairs |
Optionally, |
maxBasePairs |
The maximum number of base pairs to be plotted. Only used in conjunction with |
legend |
A logical value (TRUE/FALSE) whether to plot a legend that explains the colouration of the insertions, deletions, mismatches and breakpoints. |
title |
A title for the plot. |
col |
A vector of four colours to draw insertions, deletions, mismatches and breakpoints. In this order, the default colours are "red",
"green", "black" and "orange" (use |
This method is intended to be run after the pipeline for structural
variant detection. Therefore, see the methods
filterChimericReads
, detectBreakpoints
and
mergeBreakpoints
to correctly preprocess your alignment
before running plotChimericReads
.
It is recommended to first create and resize the output device (e.g. the plotting window or a pdf file) before plotting. For example, on Unix
systems you may try X11(width=w, height=h)
or pdf(file="plotChimericReads.pdf", width=w, height=h)
for some window width w (e.g.
w=12) and window height h (e.g. h=6).
Christoph Bartenhagen
Breakpoints-class
,
detectBreakpoints
,
mergeBreakpoints
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # load breakpoint data containing twelve chimeric reads describing an inversion in chromosome 16
data("breakpoints")
breakpoints
# standard plot
# (only arrangement of reads plotted; breakpoints in orange, deletions
# in red, insertions in green and mismatches in black by default)
plotChimericReads(breakpoints)
# plot base pairs in the breakpoint region (+/- 32bp)
## Not run: plotChimericReads(breakpoints, plotBasePairs=TRUE, maxBasePairs=32)
# use custom colours and display a legend:
# deletions="brown", insertions="blue", mismatches="yellow", breakpoints="gray"
plotChimericReads(breakpoints, col=c("brown", "blue", "yellow", "gray"), legend=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.