- Open Access
Synima: a Synteny imaging tool for annotated genome assemblies
BMC Bioinformatics volume 18, Article number: 507 (2017)
Ortholog prediction and synteny visualization across whole genomes are valuable methods for detecting and representing a range of evolutionary processes such as genome expansion, chromosomal rearrangement, and chromosomal translocation. Few standalone methods are currently available to visualize synteny across any number of annotated genomes.
Here, I present a Synteny Imaging tool (Synima) written in Perl, which uses the graphical features of R. Synima takes orthologues computed from reciprocal best BLAST hits or OrthoMCL, and DAGchainer, and outputs an overview of genome-wide synteny in PDF. Each of these programs are included with the Synima package, and a pipeline for their use. Synima has a range of graphical parameters including size, colours, order, and labels, which are specified in a config file generated by the first run of Synima – and can be subsequently edited. Synima runs quickly on a command line to generate informative and publication quality figures. Synima is open source and freely available from https://github.com/rhysf/Synima under the MIT License.
Synima should be a valuable tool for visualizing synteny between two or more annotated genome assemblies.
Orthologous genes are sections of nucleic acid that encode a protein or functional RNA molecule and have descended from a single ancestral gene followed by divergence through speciation [1, 2]. In contrast, paralogous genes are those that have arisen from duplication within a single species. Orthology and paralogy together constitute sequence homology. Numerous repositories of pre-determined orthologs are available including OrthoDB , Eggnog , InParanoid , and the Orthologous Matrix (OMA) project . Orthologous genes can also be identified de novo from newly annotated genomes to assess assembly or annotation completeness, predict/infer gene function, and as a precursor to phylogenetic analyses between two or more species [7,8,9]. Many tools and methods have been developed to predict orthologs, for example via reciprocal best hits from pairwise Basic Local Alignment Search Tool (BLAST)  of proteins, which can be further clustered and assessed by such tools (as well as both being databases): InParanoid  or OrthoMCL . Large gene families, low quality annotation and/or assemblies have each been identified as contributing factors to accuracy in ortholog prediction . Ortholog predictions are further refined by identifying those that fall in contiguous chains, such as by the tool DAGchainer .
Orthologs can be used to provide evidence for synteny: the conservation of the ordering of loci on chromosomes between two individuals or species. Visualizing syntenic regions is valuable for detecting and displaying evolutionary processes, including genome expansions , and chromosomal translocations . Furthermore, lack of synteny has been used to identify horizontal gene transfer . Genome assembly contamination or inaccuracies may also be detected given, for example, low levels of synteny, or an abundance of chromosomal rearrangements in otherwise closely related isolates. Other methods for detecting these processes include Dot Plots , or global alignment search tools such as Mummer  or Threaded Blockset Aligner (TBA) . However, these methods are inherently genome rather than gene centric, requiring additional work to identify changes to gene content across species, or indeed distinguish erroneous ortholog or genome assembly from biological variation.
Synteny visualization has been implemented in a range of software suites and tools such as Sybil/Sybillite , which is both a command line and web tool to search and visualize several genomes based on clusters of orthologous genes. Another popular synteny visualization tool is Circos , which draws genomes as a circle, with arcs between regions of conservation or interactions. Owing to differences in requirements, data-input, and the type of visualization required – additional tools are still required for use in comparative genomes, while existing tools often require further development and maintenance for new features, and error corrections.
Here, I present a Perl based tool named Synteny Imager (Synima) to visualize chains of predicted orthologs between two or more genomes. Synima reads the orthology data contained in DAGchainer output files and generates and launches an Rscript visualising the locations and relationships between chromosomes and genes of each genome in PDF. Chromosomes and/or up to three separate gene categories can be optionally highlighted in a single run of Synima, either as specified on the command line from an initial run, or specified in a Synima config file. Synima is freely available from https://github.com/rhysf/Synima. Synima supersedes code that was successfully used in a range of projects [16, 23,24,25], where it facilitated the quantification and presentation of genome similarity and evolutionary changes between and within species. The tool has therefore been developed and tested on a range of datasets, including up to 12 genomes of 17.2–18.3 million bases long each, although this does not reflect an upper limit.
Included in the Synima package is a pipeline written for Linux or Macintosh OS for predicting and generating chains of orthologs between any number of genomes. Details of the methodology for each of these programs are available from their respective publications (BLAST , OrthoMCL  and DAGchainer ). Full details of the pipeline are also provided in the README accompanying the Synima application. Briefly, the Synima pipeline starts with a Repository specification file (Repo_spec) that specifies the genome FASTA, complementarity-determining region (cds) FASTA, peptide (pep) FASTA, and annotation GFF for each genome being compared. These files need to be (and are checked for being) uniformly formatted for each isolate or species (i.e. ID’s in FASTA corresponding to the same parent ID of a given feature in the GFF). The Repo_spec and accompanying files are used to generate a Repository Sequence Database, consisting of a summary of all the contained data, and are the input for the remaining steps. Next, an all vs all legacy BLAST wrapper script is run (optionally in parallel). The m8 formatted output from pairwise blasts are clustered using an OrthoMCL v1.4 wrapper script, that has the mcl application v10–201 dependency (https://micans.org/mcl/). Alternatively, (for very large datasets), the blast reports can be clustered by reciprocal best hits (RBH) with the Slclust application dependency (https://sourceforge.net/p/slclust/) that performs single-linkage clustering. Next, summaries of the OrthoMCL or RBH outputs are generated. A DAGchainer wrapper script is finally run on the. Cluster summary file, and Synima run on the DAGchainer output (.aligncoords and aligncoords.spans).
Synima (the ultimate step of the pipeline, or simply run on independently generated DAGchainer output) runs on the command line of Linux, Macintosh or terminal emulators in Windows, and requires only the Perl and R interpreters, and BioPerl installed. As input, Synima takes a genome FASTA file for each isolate of interest, and the predicted chains of orthologs in a tabulated delimited aligncoords and aligncoords.spans file, described in the README, which can be generated from tools such as DAGchainer . Synima has a range of graphical parameters (size, chromosomal colours, gene colours, text etc.), and outputs a PDF overview of the determined synteny.
Figure 1a shows an example output figure from Synima. Here, the synteny (shown in default R colour ‘azure4’) of four genomes belonging to each of the four known lineages of the environmental and human pathogen Cryptococcus gattii are presented (data from ). Small black boxes above contig line show locations of all genes (And the lack of genes in a large region of WM276 cgbb is thereby revealed). For illustrative purposes, supercontig (sc) 5 of the hypervirulent VGII CNB2/R265 isolate and sc1 of VGIV IND107 are highlighted in R colours ‘darkgoldenrod1’ and ‘cadetblue’, respectively. The location of genes involved in 1. ergosterol production, 2. capsule biosynthesis and 3. capsule attachment and cell wall remodeling  are presented in R colours ‘cornflowerblue’, ‘coral3’ and ‘darkcyan’, respectively. As a comparison to Synima’s output, two alternative tools for visualizing synteny are shown in Fig. 1b and c: a Dotplot generated from a Mummer alignment  and a Circos figure respectively, both showing synteny between C. gattii CNB2/R265 and IND107. These alternative methods may be preferable for identifying chromosomal duplications within a genome for example, while Synima may be chosen for visualizing synteny between multiple genomes.
In addition to visualizing synteny, Synima includes a pipeline for the prediction of orthologs and preparing input aligncoords and aligncoords.spans files from a genome FASTA and annotation in GFF3 format for each isolate. The pipeline generates all vs all (pairwise) BLASTp hits with or without the option of parallel computing via the Platform Load Sharing Facility (LSF), Sun GridEngine (SGE) or Univa GridEngine (UGE), RBH or OrthoMCL clustering, and DAGChainer. Each program is included in the Synima repository, and was used for the generation of Fig. 1a. This pipeline therefore facilitates both the detection of orthologs, and the correctly formatted inputs for Synima.
I present here a new tool for Synteny Imaging (Synima) from chains of predicted orthologs, including a pipeline for their prediction. Synima was used in several previous projects, although it has undergone large code refinements for reducing bugs, increased ability to run on a broad range of genome sizes (kilobases to megabases), FASTA ID formats, and a substantial increase in graphical parameters. For example, Synima identifies the clearest way to image the synteny with minimum overlap, which can nevertheless also be specified (or further refined) by editing the self-generated Config file.
Although several tools have been developed to visualize synteny from predicted orthologs i.e. [21, 22], the particular aesthetics of Synima’s output, its ease to which it can be incorporated into existing bioinformatics pipelines, and speed of use (circa minutes), should make Synima a valuable tool for researchers interested in synteny between two or more annotated genome assemblies, and highlighting genes of interest among them.
Fitch WM. Distinguishing homologous from analogous proteins. Syst Zool. 1970;19:99–113.
Koonin EV. Orthologs, paralogs, and evolutionary genomics. Annu Rev Genet. 2005;39:309–38.
Zdobnov EM, Tegenfeldt F, Kuznetsov D, Waterhouse RM, Simão FA, Ioannidis P, et al. OrthoDB v9.1: cataloging evolutionary and functional annotations for animal, fungal, plant, archaeal, bacterial and viral orthologs. Nucleic Acids Res. 2017;45:D744–9.
Jensen LJ, Julien P, Kuhn M, von Mering C, Muller J, Doerks T, et al. eggNOG: automated construction and annotation of orthologous groups of genes. Nucleic Acids Res. 2008;36:D250–4.
Sonnhammer ELL, Östlund G. InParanoid 8: orthology analysis between 273 proteomes, mostly eukaryotic. Nucleic Acids Res. 2015;43:D234–9.
Altenhoff AM, Škunca N, Glover N, Train C-M, Sueki A, Piližota I, et al. The OMA orthology database in 2015: function predictions, better plant support, synteny view and other improvements. Nucleic Acids Res. 2015;43:D240–9.
Parra G, Bradnam K, Korf I. CEGMA: a pipeline to accurately annotate core genes in eukaryotic genomes. Bioinforma Oxf Engl. 2007;23:1061–7.
Simão FA, Waterhouse RM, Ioannidis P, Kriventseva EV, Zdobnov EM. BUSCO: assessing genome assembly and annotation completeness with single-copy orthologs. Bioinforma Oxf Engl. 2015;31:3210–2.
Tatusov RL, Galperin MY, Natale DA, Koonin EV. The COG database: a tool for genome-scale analysis of protein functions and evolution. Nucleic Acids Res. 2000;28:33–6.
Altschul SF, Gish W, Miller W, Myers EW, Lipman DJ. Basic local alignment search tool. J Mol Biol. 1990;215:403–10.
Remm M, Storm CE, Sonnhammer EL. Automatic clustering of orthologs and in-paralogs from pairwise species comparisons. J Mol Biol. 2001;314:1041–52.
Li L, Stoeckert CJ, Roos DS. OrthoMCL: identification of ortholog groups for eukaryotic genomes. Genome Res. 2003;13:2178–89.
Trachana K, Larsson TA, Powell S, Chen W-H, Doerks T, Muller J, et al. Orthology prediction methods: a quality assessment using curated protein families. Bioessays. 2011;33:769–80.
Haas BJ, Delcher AL, Wortman JR, Salzberg SL. DAGchainer: a tool for mining segmental genome duplications and synteny. Bioinforma Oxf Engl. 2004;20:3643–6.
Haas BJ, Kamoun S, Zody MC, Jiang RHY, Handsaker RE, Cano LM, et al. Genome sequence and analysis of the Irish potato famine pathogen Phytophthora infestans. Nature. 2009;461:393–8.
Farrer RA, Desjardins CA, Sakthikumar S, Gujja S, Saif S, Zeng Q, et al. Genome evolution and innovation across the four major lineages of Cryptococcus gattii. MBio. 2015;6:e00868–15.
Rolland T, Neuvéglise C, Sacerdot C, Dujon B. Insertion of horizontally transferred genes within conserved syntenic regions of yeast genomes. PLoS One. 2009;4:e6515.
Gibbs AJ, McIntyre GA. The diagram, a method for comparing sequences. Its use with amino acid and nucleotide sequences. Eur J Biochem. 1970;16:1–11.
Delcher AL, Salzberg SL, Phillippy AM. Using MUMmer to identify similar regions in large sequence sets. Curr Protoc Bioinformatics 2003;Chapter 10:Unit 10.3.
Blanchette M, Kent WJ, Riemer C, Elnitski L, Smit AFA, Roskin KM, et al. Aligning multiple genomic sequences with the threaded Blockset aligner. Genome Res. 2004;14:708–15.
Riley DR, Angiuoli SV, Crabtree J, Dunning Hotopp JC, Tettelin H. Using Sybil for interactive comparative genomics of microbes on the web. Bioinformatics. 2012;28:160–6.
Krzywinski M, Schein J, Birol I, Connors J, Gascoyne R, Horsman D, et al. Circos: an information aesthetic for comparative genomics. Genome Res. 2009;19:1639–45.
Farrer RA, Martel A, Verbrugghe E, Abouelleil A, Ducatelle R, Longcore JE, et al. Genomic innovations linked to infection strategies across emerging pathogenic chytrid fungi. Nat Commun. 2017;8:14742.
Muñoz JF, Farrer RA, Desjardins CA, Gallo JE, Sykes S, Sakthikumar S, et al. Genome diversity, recombination, and virulence across the major lineages of Paracoccidioides. mSphere. 2016;1:e00213–6.
Ma L, Chen Z, Huang DW, Kutty G, Ishihara M, Wang H, et al. Genome analysis of three Pneumocystis species reveals adaptation mechanisms to life exclusively in mammalian hosts. Nat Commun. 2016;7:10740.
O’Meara TR, Alspaugh JA. The Cryptococcus neoformans capsule: a sword and a shield. Clin Microbiol Rev. 2012;25:387–408.
I would like to thank Chris Desjardins and Brian Haas for assistance and contributions to the ortholog prediction code and pipeline, and José Muñoz and anonymous reviewer 1 for code testing.
This work was supported by an MIT / Wellcome Trust Fellowship.
Availability of data and materials
Synima is open source and freely available from https://github.com/rhysf/Synima under the MIT License. The download includes all example data presented in this manuscript.
Ethics approval and consent to participate
Consent for publication
The author declares that he has no competing interests.
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
About this article
Cite this article
Farrer, R.A. Synima: a Synteny imaging tool for annotated genome assemblies. BMC Bioinformatics 18, 507 (2017). https://0-doi-org.brum.beds.ac.uk/10.1186/s12859-017-1939-7
- Imaging tool