No retraction, correction or concern found when last checked on Oct 18, 2026.
plotsr: visualizing structural similarities and rearrangements between multiple genomes
Manish Goel, Korbinian Schneeberger
Bioinformatics · 2022 · CC BY
doi:10.1093/bioinformatics/btac196
Abstract
Summary. Third-generation genome sequencing technologies have led to a sharp increase in the number of high-quality genome assemblies. This allows the comparison of multiple assembled genomes of individual species and demands new tools for visualizing their structural properties. Here, we present plotsr, an efficient tool to visualize structural similarities and rearrangements between genomes. It can be used to compare genomes on chromosome level or to zoom in on any selected region. In addition, plotsr can augment the visualization with regional identifiers (e.g. genes or genomic markers) or histogram tracks for continuous features (e.g. GC content or polymorphism density).
Availability and implementation. plotsr is implemented as a python package and uses the standard matplotlib library for plotting. It is freely available under the MIT license at GitHub (https://github.com/schneebergerlab/plotsr) and bioconda (https://anaconda.org/bioconda/plotsr).
Supplementary information. Supplementary data are available at Bioinformatics online.
Full text
From PubMed Central, U.S. National Library of Medicine, as current on Oct 18, 2026. Paragraph numbers are ours, so an answer can point at one.
1 Introduction
Third-generation sequencing technologies together with efficient phasing and scaffolding methods like Hi-C, trio-binning or gamete-binning have led to a sharp increase in the number of available haplotype-resolved, chromosome-level assemblies. Chromosome-level assemblies allow the identification of small genomic differences (like SNPs and indels) as well as large structural rearrangements (SRs) like inversions and translocations. Therefore, they are considered the gold standard for genomic differences identification.
Typically, the overall structure of individual genomes of a specific species is highly conserved because the genomes recombine (exchange chromosome arms) during sexual reproduction and thereby keep the same karyotype across different haplotypes. This introduces large syntenic regions between the genomes where recombination can occur without affecting the overall structure of the genomes. During genome comparisons, these syntenic regions (the ‘syntenic backbone’) can be identified. All remaining regions in the genomes are structural rearrangements by definition and can then be classified into inversions, duplications or translocations (here, we consider both intra- and inter-chromosomal relocations as translocations) based on their orientation and location in the genomes. Recently, we used these principles to develop SyRI, a tool to identify genomic differences in whole-genome assemblies of the same species.
For better analysis of these genomic differences between multiple genomes, there is a need for accurate and intuitive visualization tools. Currently available tools can visualize large structural rearrangements between a pair of genomes (e.g. MUMmer, Ribbon, rearrvisr) or are designed for visualizing local variations like SNPs and indels in pan-genomes (e.g. tubemaps, ODGI). For the visualization of large structural rearrangements in multiple genomes, we have developed plotsr (plot structural rearrangements). plotsr uses the synteny between genomes to identify homologous chromosomes as well as to match the orthologous regions between the genomes allowing for efficient zooming in on specific regions. It is a simple-to-use yet flexible and powerful visualization tool. It can be used to compare multiple haploid genomes as well as different haplotypes of individual polyploid genomes. In addition, plotsr can mark specific loci as well as plot histogram tracks to show distributions of genomic features along the chromosomes.
2 Implementation
plotsr is a python-based command-line tool. It requires the chromosome size (either through a fasta file or as a table) and the synteny and SRs information between the assemblies in a pairwise manner as input. For example, to visualize genomes A, B and C in this order, plotsr requires the comparison of A versus B and B versus C. These can be generated using genomic difference identification methods like SyRI, MUM&Co or assemblytics. The output of SyRI is accepted directly, while output from other methods can be provided in BEDPE format. Firstly, plotsr validates that the assemblies and structural information are consistent. Then, by using the pairwise synteny between genomes, it groups homologous chromosomes across the genomes and then plots the syntenic regions as well as SRs between them. plotsr can generate plots in two modes, (i) stacked mode: for better visualization of synteny and intra-chromosome rearrangements (Fig. 1); (ii) itx mode (similar to plots generated by JCVI): for better visualization of inter-chromosomal rearrangements (Fig. 2). The output can be generated in pdf, png or svg format. In addition, plotsr can show markers at predefined loci (e.g. genes, TEs or genomic markers) using BED files. plotsr can also plot the distribution of genomic features along the chromosomes (e.g. distribution of genes, SNPs, sequencing reads, etc.). This provides a visual comparison between sequence features and structural properties of the chromosomes. To adjust the plots, plotsr includes multiple parameters to control the visual properties (colour, size, spacing, etc.) of genomes, markers and tracks.
plotsr can also be used to zoom in on specific regions in any of the input genomes. For this, plotsr identifies the corresponding orthologous regions in all other genomes. This is a non-trivial task as some regions might include multiple rearrangements that obfuscate the syntenic regions in the other genomes. The identification of all syntenic regions would require whole-genome alignments of all genomes against the genome of interest implying the need for an all-versus-all genome alignment as input. This is computationally prohibitive once more than a few dozen genomes are involved. Instead, plotsr overcomes this challenge by using the syntenic backbone between the genomes to zoom in on any given region. For this, plotsr iteratively selects the regions syntenic to the selected region using pairwise genome comparisons until all genomes are covered. It then filters the structural information to only plot information overlapping these homologous regions resulting in a zoomed-in view of the genomes. Markers and feature tracks are also filtered automatically to plot those overlapping with the homologous regions.
3 Results
We visualized structural rearrangements between the human reference sequence (GRCh38), the human telomere-to-telomere assembly (t2t), two assemblies from the Human Pangenome Reference Consortium (panpat and panmat) and two assemblies from the Vertebrate Genomes Project (vgppat and vgpmat) using plotsr. Figure 1 shows the structural rearrangements in the first ten chromosomes whereas Supplementary Figure S1 shows structural rearrangements in all autosomal chromosomes. For this, pairwise whole-genome alignments were performed using minimap2 followed by synteny and structural rearrangement identification using SyRI. We also plotted gene annotation, distribution of common SNPs and centromere coordinates. Figure 1 shows that the genomes are predominantly syntenic (grey alignments). The vgppat and vgpmat assemblies have smaller pericentromeric regions (highly rearranged regions near the centromere) in chromosomes 1 and 9. Consequently, these chromosomes are smaller in vgppat and vgpmat genomes than other genomes. We also observed the depletion of genes in the centromeric regions. Using plotsr, we could also zoom in to highlight the genomic differences at Chr8:1–13 000 000 (reference genome coordinates) (Fig. 2a). The region was provided as a command-line parameter to plotsr which then automatically filtered and plotted the syntenic regions and rearrangements in all of the other genomes. In this region, we observed large inversions between the assemblies (labeled as ‘Inversion’ using plotsr) suggesting the presence of broadly two haplotypes. We also observed that a large region without any alignment between the t2t and the panpat genomes (labelled as ‘Not aligned’) became visible within the zoom-in visualization. In Figure 2b, we show the inter-chromosomal translocations and duplications between the assemblies as well using the ‘itx mode’ visualization from plotsr.
We benchmarked plotsr by visualizing differences in six human (haploid genome size: ∼3 Gbp), eight Arabidopsis thaliana (haploid genome size: ∼120 Mbp, Supplementary Fig. S2) and four potato (haploid genome size: ∼800 Mbp, Supplementary Fig. S3) genomes. plotsr finished within 1 min and used less than 0.5 GB of RAM for all tests (Supplementary Fig. S4). Runtime and memory both scaled linearly with the number of samples. They were independent of the size of the genome, rather they were correlated to the number of structural rearrangements present in the genomes. Filtering out small variants (SNPs and InDels) from input files further improved the runtime in all tests. We also demonstrated the usability of plotsr with different structural differences identification methods by visualizing genomic differences between A.thaliana accessions identified by MUM&Co and assemblytics (Supplementary Figs S5 and S6, Supplementary Note S1).
4 Discussion and conclusion
The advent of long-read sequencing technologies has simplified the generation of high-quality genome assemblies. To support the visual analysis of such assemblies, we presented plotsr, a python-based command-line tool for visualizing structural similarities and rearrangements between genomes. In addition, plotsr allows visualization of genomic features as well as zoom-in views on specific regions. plotsr is highly efficient as it only requires pairwise comparisons in the order in which the genomes are compared. In turn, this limits the visualization flexibility because different orders of the genomes would require additional comparisons (which of course could be generated). However, often the genome order is predetermined (e.g. based on phylogeny), and in such cases, pairwise comparisons are computationally more efficient than comparing all genomes against each other.
plotsr generates publication-quality visualizations that have already been used by several research groups. We believe that plotsr visualizations will help in getting a better understanding of the genome divergence of a species. Given the great importance of genomic analysis in many research fields, we are continuously developing plotsr to add more useful parameters allowing for more control and customization.
References 23
- 1.
Abdellah Z. et al (2004 ) Finishing the euchromatic sequence of the human genome. Nature, 431, 931–945.
Not in our library10.1038/nature03001
- 2.
Beyer W. et al (2019 ) Sequence tube maps: making graph genomes intuitive to commuters. Bioinformatics, 35, 5318–5320.
Not in our library10.1093/bioinformatics/btz597
- 3.
Campoy J.A. et al (2020 ) Gamete binning: chromosome-level and haplotype-resolved genome assembly enabled by high-throughput single-cell sequencing of gamete genomes. Genome Biol., 21, 20.
Not in our library10.1186/s13059-020-02235-5
- 4.
- 5.
Guarracino A. et al (2021 ) ODGI: understanding pangenome graphs. bioRxiv, 2021.11.10.467921.
Not in our library
- 6.
- 7.
Koren S. et al (2018 ) De novo assembly of haplotype-resolved genomes with trio binning. Nat. Biotechnol., 36, 1174–1182.
Not in our library10.1038/nbt.4277
- 8.
- 9.
Li A. et al (2021 ) Two reference-quality sea snake genomes reveal their divergent evolution of adaptive traits and venom systems. Mol. Biol. Evol., 38, 4867–4883.
Not in our library10.1093/molbev/msab212
- 10.
Li H. (2018 ) Minimap2: pairwise alignment for nucleotide sequences. Bioinformatics, 34, 3094–3100.
Not in our library10.1093/bioinformatics/bty191
- 11.
Lindtke D., Yeaman S. (2020 ) rearrvisr: an R package to detect, classify, and visualize genome rearrangements. bioRxiv, 2020.06.25.170522.
Not in our library
- 12.
Logsdon G.A. et al (2021 ) The structure, function and evolution of a complete human chromosome 8. Nature, 593, 101–107.
Not in our library10.1038/s41586-021-03420-7
- 13.
Nattestad M. et al (2021 ) Ribbon: intuitive visualization for complex genomic variation. Bioinformatics, 37, 413–415.
Not in our library10.1093/bioinformatics/btaa680
- 14.
Nattestad M., Schatz M.C. (2016 ) Assemblytics: a web analytics tool for the detection of variants from an assembly. Bioinformatics, 32, 3021–3023.
Not in our library10.1093/bioinformatics/btw369
- 15.
- 16.
O’Donnell S., Fischer G. (2020 ) MUM&Co: accurate detection of all SV types through whole-genome alignment. Bioinformatics, 36, 3242–3243.
Not in our library10.1093/bioinformatics/btaa115
- 17.
van Rengs W.M.J. et al (2022 ) A chromosome scale tomato genome built from complementary PacBio and Nanopore sequences alone reveals extensive linkage drag during breeding. Plant J..
Not in our library10.1111/tpj.15690
- 18.
- 19.
Simpson J.T., Pop M. (2015 ) The theory and practice of genome sequence assembly. Annu. Rev. Genomics Hum. Genet., 16, 153–172.
Not in our library10.1146/annurev-genom-090314-050032
- 20.
Tang H. et al (2015 ) jcvi: JCVI Utility Libraries. Zenodo..
Not in our library10.5281/zenodo.31631
- 21.
Zamyatin A. et al (2021 ) Chromosome-level genome assemblies of the malaria vectors Anopheles coluzzii and Anopheles arabiensis. Gigascience, 10, 1–16.
Not in our library10.1093/gigascience/giab017
- 22.
Zhang X. et al (2019 ) Assembly of allele-aware, chromosomal-scale autopolyploid genomes based on Hi-C data. Nat. Plants, 58, 833–845.
Not in our library10.1038/s41477-019-0487-8
- 23.
Zhang W.-P. et al (2021 ) Dead-end hybridization in walnut trees revealed by large-scale genomic sequence data. Mol. Biol. Evol., 39. msab308.
Not in our library10.1093/molbev/msab308
Cited by papers we hold 1
Reads
Read by people on this page
None yet.
Checked or read by AI through naulon
None yet.
A person counts once a day per paper. We keep no cookie and no address: a reader is a hash that changes every day. Any month under five reads shows no number.
Are you an author?
Is this your paper?
Claim it to add your note and be paid when agents cite it. Free.