simpledotplot | R Documentation |
This function takes alignment coordinates from 'nucmer' or 'minimap2' aligner and construct a simple dot plot.
simpledotplot(
coords.file = NULL,
format = "nucmer",
shape = "segment",
min.align.len = 1000,
keep.longest.aln = FALSE,
highlight.pos = NULL,
highlight.region = NULL,
genome.coord = FALSE
)
coords.file |
A path to a PAF or NUCMER specific file containing alignments to be loaded. |
format |
Is either 'mm2' or 'nucmer' for minimap2 or NUCmer specific input 'coords.file', respectively. |
shape |
A shape used to plot aligned sequences: Either 'segment' or 'point'. |
min.align.len |
Minimum alignment length to retain. |
keep.longest.aln |
Set to |
highlight.pos |
A single or a set of positions to be highlighted as vertical solid lines. |
highlight.region |
A pair of positions to be highlighted as vertical range. |
genome.coord |
Set to |
A ggplot
object.
David Porubsky
## Get NUCmer alignment coordinates to plot
nucmer.coords <- system.file("extdata", "HG00438_1_nucmer.coords", package = "SVbyEye")
## Make a dotplot
simpledotplot(coords.file = nucmer.coords, format = "nucmer")
## Get minimap2 alignments to plot
mm2.coords <- system.file("extdata", "HG01071_2_mm2.paf", package = "SVbyEye")
## Make a dotplot
simpledotplot(coords.file = mm2.coords, format = "mm2")
## Highlight desired genomic positions
highlight.pos <- c(330000, 560000)
simpledotplot(coords.file = mm2.coords, format = "mm2", highlight.pos = highlight.pos)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.