Two isolates of the same bacterial species can differ by hundreds of genes. Comparative genomics asks what those genomes share, where they differ and what the differences might mean. This article explains the main approaches and how to read them with care.
Why compare bacterial genomes?
Bacterial genomes change through mutation, but also by gaining and losing whole genes, often through horizontal gene transfer on plasmids, phages and other mobile elements. As a result, strains of one species can carry quite different gene sets. Comparing genomes helps researchers:
- confirm how closely related isolates are;
- find genes that are shared by all strains, or specific to some;
- see whether particular genes, such as resistance or metabolic genes, are present across a collection;
- generate hypotheses about adaptation, ecology and evolution.
Start with comparable inputs
A comparison is only as good as the genomes going into it. Before comparing, check each assembly's quality (total length, number of contigs and N50), and annotate all genomes the same way. Prokka is one widely used tool for consistent prokaryotic annotation [1]. Mixing genomes annotated by different pipelines can create apparent differences that are really differences in method.
How similar are two genomes?
The most common whole-genome similarity measure is average nucleotide identity (ANI): the average identity of the regions two genomes share. ANI has become a standard way to delineate prokaryotic species. A value of roughly 95 to 96% corresponds to the traditional DNA–DNA hybridisation boundary used to define species [2].
Large-scale analyses support that boundary. Computing ANI across about 90,000 prokaryotic genomes with FastANI, one study found that almost all pairs fell clearly above 95% within species or below 83% between species, with few in between [3].
ANI only describes the shared parts of two genomes, so it is usually read alongside the fraction of each genome that aligns. Two genomes can share high identity in their common regions while still differing substantially in gene content.
Core and accessory genes: the pan-genome
When researchers compared several genomes of Streptococcus agalactiae in 2005, they found that each new genome added genes not seen before. They described the full gene repertoire of a species as its pan-genome, made up of a core genome shared by all strains and an accessory (or dispensable) genome present in only some [4].
Pan-genome tools cluster genes from many annotated genomes into gene families, then report which families each genome contains. The output is usually a presence and absence table, along with summary counts of core and accessory families. Roary [5] and Panaroo [6] are widely used examples. Panaroo was designed to correct common annotation errors, such as genes split across contigs, which otherwise inflate the accessory genome [6].
Looking for specific genes
Sometimes the question is narrower: is a particular gene present in each of these genomes? A targeted comparison searches each annotated genome for named genes or locus identifiers and reports where they are found.
Absence needs careful interpretation. If a gene is not reported, it may genuinely be missing, but it may also sit in a gap between contigs, be annotated under a different name, or differ enough in sequence to fall below the search threshold.
Reading comparison figures
Comparative results are often shown as heatmaps of gene presence, similarity matrices, or genome maps with links between matching regions. These figures summarise a lot of data, which makes them persuasive. Before drawing conclusions:
- check the thresholds behind each figure, such as identity cut-offs for clustering;
- remember that a figure describes only the genomes you included, not the whole species;
- look at the underlying tables, not just the colours.
Common pitfalls
- Fragmented assemblies can make genes look absent or split one gene into two.
- Inconsistent annotation creates differences that are artefacts of method.
- Contamination can add genes that do not belong to the organism.
- Sampling bias, such as many closely related isolates from one outbreak, can skew what looks core or rare.
Comparative genomics on AstroNexus
The AstroNexus comparative workspace takes FASTA assemblies and offers three modes. Pairwise compares exactly two assemblies and reports ANI, annotation and a protein comparison. Multi-genome compares 3 to 20 related assemblies and produces a table of the gene families each genome has. Targeted looks for 1 to 50 named genes or locus IDs across 2 to 20 assemblies. The comparative genomics lesson explains the inputs for each mode.
All results are for research use only and are not for clinical or diagnostic use.
References
- Seemann T. Prokka: rapid prokaryotic genome annotation. Bioinformatics. 2014;30(14):2068–2069. doi:10.1093/bioinformatics/btu153
- Richter M, Rosselló-Móra R. Shifting the genomic gold standard for the prokaryotic species definition. Proceedings of the National Academy of Sciences USA. 2009;106(45):19126–19131. doi:10.1073/pnas.0906412106
- Jain C, Rodriguez-R LM, Phillippy AM, Konstantinidis KT, Aluru S. High throughput ANI analysis of 90K prokaryotic genomes reveals clear species boundaries. Nature Communications. 2018;9:5114. doi:10.1038/s41467-018-07641-9
- Tettelin H, Masignani V, Cieslewicz MJ, et al. Genome analysis of multiple pathogenic isolates of Streptococcus agalactiae: implications for the microbial "pan-genome". Proceedings of the National Academy of Sciences USA. 2005;102(39):13950–13955. doi:10.1073/pnas.0506758102
- Page AJ, Cummins CA, Hunt M, et al. Roary: rapid large-scale prokaryote pan genome analysis. Bioinformatics. 2015;31(22):3691–3693. doi:10.1093/bioinformatics/btv421
- Tonkin-Hill G, MacAlasdair N, Ruis C, et al. Producing polished prokaryotic pangenomes with the Panaroo pipeline. Genome Biology. 2020;21:180. doi:10.1186/s13059-020-02090-4
Educational content for research use only. Not clinical or diagnostic guidance.