syntenicDotplot-methods | R Documentation |
Syntenic dotplot for Axt
alignment object or GRangePairs
.
syntenicDotplot(x, firstSeqlengths=NULL, secondSeqlengths=NULL, firstChrs=NULL, secondChrs=NULL, col=c("blue", "red"), type=c("line", "dot"))
x |
|
firstSeqlengths,secondSeqlengths |
|
firstChrs,secondChrs |
|
col |
|
type |
“line” or “dot” plot type: When plotting massive number of ranges, “dot” should be used. Otherwise, “line” should be used. |
This syntenic dotplot is a type of scatter plot for Axt
object,
and line plot for GRangePairs
object.
In the case of possibly massive number of Axt
alignments,
the line plots will make it invisible at a large genome scale.
Each axis represents concatenated selected chromosomes laid end-to-end, and each dot in the scatter-plot represents a putative homologous match between the two genomes. These dotplots are used for whole genome comparisons within the same genome or across two genomes from different taxa in order to identify synteny.
A ggplot
object.
For highly fragmented assemblies, the synteny is invisible on the dotplot.
Ge Tan
library(GenomeInfoDb) library(BSgenome.Ggallus.UCSC.galGal3) library(BSgenome.Hsapiens.UCSC.hg19) ## dotplot for Axt object fn <- file.path(system.file("extdata", package="CNEr"), "chr4.hg19.galGal3.net.axt.gz") axt <- readAxt(fn) firstSeqlengths <- seqlengths(BSgenome.Hsapiens.UCSC.hg19) secondSeqlengths <- seqlengths(BSgenome.Ggallus.UCSC.galGal3) firstChrs <- c("chr4") secondChrs <- c("chr4") syntenicDotplot(axt, firstSeqlengths, secondSeqlengths, firstChrs=firstChrs, secondChrs=secondChrs, type="dot") ## dotplot for GRangePairs object data(grangesPairsForDotplot) syntenicDotplot(grangesPairsForDotplot, type="line")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.