No retraction, correction or concern found when last checked on Oct 21, 2026.
FlaGs and webFlaGs: discovering novel biology through the analysis of gene neighbourhood conservation
Chayan Kumar Saha, Rodrigo Sanches Pires, Harald Brolin and 2 more
Bioinformatics · 2020 · CC BY
doi:10.1093/bioinformatics/btaa788
Abstract
Summary. Analysis of conservation of gene neighbourhoods over different evolutionary levels is important for understanding operon and gene cluster evolution, and predicting functional associations. Our tool FlaGs (standing for Flanking Genes) takes a list of NCBI protein accessions as input, clusters neighbourhood-encoded proteins into homologous groups using sensitive sequence searching, and outputs a graphical visualization of the gene neighbourhood and its conservation, along with a phylogenetic tree annotated with flanking gene conservation. FlaGs has demonstrated utility for molecular evolutionary analysis, having uncovered a new toxin–antitoxin system in prokaryotes and bacteriophages. The web tool version of FlaGs (webFlaGs) can optionally include a BLASTP search against a reduced RefSeq database to generate an input accession list and analyse neighbourhood conservation within the same run.
Availability and implementation. FlaGs can be downloaded from https://github.com/GCA-VH-lab/FlaGs or run online at http://www.webflags.se/.
Supplementary information. Supplementary data are available at Bioinformatics online.
Full text
From PubMed Central, U.S. National Library of Medicine, as current on Oct 21, 2026. Paragraph numbers are ours, so an answer can point at one.
1 Introduction
Conservation of gene order at long evolutionary distances is a strong indicator of a functional relationship among genes. Extreme examples are the tryptophan biosynthesis, and str ribosomal protein operons, which are conserved from bacteria to archaea. The vast amount of genomic sequence data that has become available in recent decades is a treasure trove of clues about the function of uncharacterized proteins, and the pathways in which they are involved. High-throughput identification of gene order conservation in genomes is a promising approach for predicting the involvement of proteins in particular pathways or systems. In addition to yielding functional predictions, the identification of conserved genomic architectures is essential for understanding the evolutionary dynamics behind the formation and restructuring of gene clusters, including reassembly of operons after disruption during evolution.
While there are a range of tools that analyse gene neighbourhood conservation or integrate this data along with other metrics for functional association prediction, these tend to be either restrictive in the genomes that can be considered (e.g. only complete genomes or those of model organisms) or require the creation of local genome databases. Other tools that connect to the National Center for Biotechnology Information (NCBI; https://www.ncbi.nlm.nih.gov/) to detect operons may lack sensitive sequence searching for homology assignments of neighbourhood genes. We felt there was a need for a tool that allows the use of the huge quantity of publicly accessible data in the NCBI RefSeq database and is sensitive enough to answer questions about homologous proteins over any evolutionary distance, from the strain or isolate level, to inter-kingdom or even inter-domain comparisons. We set out to build a Python tool that fulfils our list of essential criteria:
allows the user to have complete control over the input genomes being analysed;
has a simple input format that does not require coding, downloading of genomes or formatting of databases;
nevertheless, also has the option of running using locally stored genomes for offline analyses or analysing genomes that are not public;
can be run via a server with results emailed to the user;
can detect remote homology, suitable for analysing the most distant relationships among proteins and taxa as well as closer comparative analyses;
outputs gene neighbourhood annotated onto a phylogenetic tree;
produces publication-quality editable vector graphics.
2 The FlaGs workflow
Our resulting tool that fulfils the above requirements is called FlaGs (standing for Flanking Genes) (Fig. 1A). FlaGs takes in user-determined NCBI accessions that link to the RefSeq database (around 170 million proteins from almost 100 000 organisms as of March 2020). Input files can be easily and quickly prepared from selected sequences in the output of an NCBI BLASTP search against the RefSeq database without any scripting (see the manual; Supplementary Materials File S1). An optional addition to the input file is the NCBI genome assembly identifier to target a particular genome. FlaGs clusters flanking gene-encoded proteins using the sensitive Hidden Markov Model-based method Jackhmmer, part of the HMMER distribution. There are three ways to run FlaGs:
through the web server at www.webflags.se. This method can optionally include a BLASTP search against microbial RefSeq genomes or a representative genome database to identify homologues which with to run FlaGs;
locally, with FlaGs querying NCBI as it runs, and not requiring locally stored genomes;
locally, using locally stored genomes in RefSeq GFF and protein FASTA format.
FlaGs outputs information on the conservation of flanking gene-encoded proteins, and their identity, in graphical and text formats (Fig. 1A). The output always includes a to-scale diagram of flanking genes, number- and colour-coded by conservation groups (Fig. 1B). A ‘description’ file is also included, which acts as a legend for interpreting the flanking gene diagram. An optional output is a phylogenetic tree annotated with flanking genes reduced to triangular pennant-like flags. The tree-building feature uses the ETE 3 Python environment.
FlaGs is a flexible tool for sensitive detection of flanking gene conservation at any evolutionary distance, and displays results in an intuitive, publication-quality vector graphics format. The utility of FlaGs is exemplified by our recent discovery of a novel toxin–antitoxin system exploiting growth control via ppApp alarmone nucleotide signalling. The web server STRING is one of the most widely used tools to study the gene neighbourhood conservation of a gene of interest. STRING’s great strength is that it brings together pre-computed association data from a number of different sources to predict functional associations. It is an excellent first port of call for predicting the function of conserved genes. STRING, however, uses a limited set of around 5000 input organisms, and does not include bacteriophages. Therefore, it is somewhat limited when addressing neighbourhood conservation of genes with extremely patchy distributions as is often the case with genes belonging to the accessory component of pangenomes. The discovery of toxSASs was only possible through the access of FlaGs to the extensive cellular and viral genome resources in the RefSeq database. We expect that FlaGs will continue to be successful in the prediction and evolutionary analysis of genomic loci with various functions, not just toxin–antitoxins, but for example, secretion systems (where it has already been used in the description of a novel system), antibiotic biogenesis clusters, viral defence mechanisms, gene transfer agents, pathogenicity islands and transposons. A future direction of FlaGs is to go beyond RefSeq, taking advantage of all the genomic data stored in Genbank, which will further increase the genomes accessible to neighbourhood analysis by FlaGs by hundreds of thousands.
References 17
- 1.
- 2.
Dandekar T. (1998 ) Conservation of gene order: a fingerprint of proteins that physically interact. Trends Biochem. Sci., 23, 324–328.
Not in our library10.1016/s0968-0004(98)01274-2
- 3.
- 4.
Gabaldon T., Huynen M.A. (2004 ) Prediction of protein function and pathways in the genome era. Cell Mol. Life Sci., 61, 930–944.
Not in our library10.1007/s00018-003-3387-y
- 5.
Garcia P.S. et al (2019 ) GeneSpy, a user-friendly and flexible genomic context visualizer. Bioinformatics, 35, 329–331.
Not in our library10.1093/bioinformatics/bty459
- 6.
Gumerov V.M., Zhulin I.B. (2020 ) TREND: a platform for exploring protein function in prokaryotes based on phylogenetic, domain architecture and gene neighborhood analyses. Nucleic Acids Res, 48, W72–W76.
Not in our library10.1093/nar/gkaa243
- 7.
- 8.
Jimmy S. et al (2020 ) A widespread toxin–antitoxin system exploiting growth control via alarmone signaling. Proc. Natl. Acad. Sci. USA, 17, 10500–10510.
Not in our library10.1073/pnas.1916617117
- 9.
Lechner K. et al (1989 ) Organization and nucleotide sequence of a transcriptional unit of Methanococcus vannielii comprising genes for protein synthesis elongation factors and ribosomal proteins. J. Mol. Evol., 29, 20–27.
Not in our library10.1007/bf02106178
- 10.
Lemoine F. et al (2008 ) SynteBase/SynteView: a tool to visualize gene order conservation in prokaryotic genomes. BMC Bioinformatics, 9, 536.
Not in our library10.1186/1471-2105-9-536
- 11.
Martinez-Guerrero C.E. et al (2008 ) GeConT 2: gene context analysis for orthologous proteins, conserved domains and metabolic pathways. Nucleic Acids Res., 36, W176–180.
Not in our library10.1093/nar/gkn330
- 12.
O'Leary N.A. et al (2016 ) Reference sequence (RefSeq) database at NCBI: current status, taxonomic expansion, and functional annotation. Nucleic Acids Res., 44, D733–745.
Not in our library10.1093/nar/gkv1189
- 13.
Omelchenko M.V. et al (2003 ) Evolution of mosaic operons by horizontal gene transfer and gene displacement in situ. Genome Biol., 4, R55.
Not in our library10.1186/gb-2003-4-9-r55
- 14.
- 15.
Overmars L. et al (2013 ) MGcV: the microbial genomic context viewer for comparative genome analysis. BMC Genomics, 14, 209.
Not in our library10.1186/1471-2164-14-209
- 16.
Palmer,T. et al. (2020 ) A holin/peptidoglycan hydrolase‐dependent protein secretion system. Molecular Microbiology. doi: 10.1111/mmi.14599.
Not in our library10.1111/mmi.14599
- 17.
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.