This repository contains the computational workflows used to generate the principal figures and analyses for the study entitled “Genome-Based Taxonomy Reveals Hidden Diversity within the Reorganized Stenotrophomonas Genus and Supports the Proposal of a Novel Species.” The repository is organized into five modular pipelines, each addressing a distinct analytical component of the study. Together, these modules integrate genome similarity metrics, gene content profiling, functional annotation, multivariate statistics, and geographic distribution analyses to support a genome-based reassessment of Stenotrophomonas taxonomy.
The first module focuses on genomic similarity and corresponds to Figures 2 and 3. It processes pairwise genomic similarity matrices derived from Average Nucleotide Identity (ANI) and Average Amino Acid Identity (AAI) analyses. The workflow includes normalization and symmetrization of matrices, hierarchical clustering of genomes, generation of heatmaps, extraction of pairwise similarity values, and construction of ANI versus AAI scatterplots. These analyses provide a quantitative framework for evaluating genomic relatedness and for defining taxonomic boundaries.
The second module corresponds to Figure 6 and addresses gene content profiling using ABRicate outputs. It integrates results from antimicrobial resistance, plasmid-associated, and virulence factor databases to quantify gene presence and abundance across genomes. Gene counts are aggregated into a matrix and visualized using ComplexHeatmap, with columns grouped by database and rows annotated by taxonomic classification. When available, antimicrobial resistance genes are further annotated by functional class. This module enables comparative visualization of gene distribution patterns across genomes.
The third module corresponds to Figure 5 and performs KEGG-based functional analyses combined with orthogroup inference. It includes the calculation of core orthogroups per taxonomic group, identification of the global core genome, and comparative analyses excluding selected outgroups. Orthogroups are expanded into KEGG Orthology terms and aggregated into hierarchical categories such as Class2 and Class3. Functional composition is visualized through heatmaps, and multivariate analyses are conducted using Principal Component Analysis and distance-based redundancy analysis. Additional statistical procedures include envfit analysis to identify significant contributing pathways, as well as pairwise testing and enrichment analyses. This module characterizes functional divergence and ecological differentiation among groups.
The fourth module corresponds to Figure 1 and focuses on the geographic distribution of isolates. It uses metadata to generate a global map in which country-level isolate counts are represented as a choropleth and continent-level species composition is displayed using pie charts. Spatial data processing is performed using sf and rnaturalearth, and visualization is implemented with ggplot2 and scatterpie. This module provides a biogeographic context for the sampled genomes.
The fifth module corresponds to Figure 7 and constructs bipartite genome–gene networks based on ABRicate outputs. In these networks, genomes and genes are represented as distinct node types, and edges indicate the presence of a gene within a genome. Genome nodes are annotated by taxonomic group and isolation source, while gene nodes are annotated by database origin. The networks are generated using igraph and visualized with ggraph, and include filtering steps to retain genes based on prevalence and genomes based on connectivity. These visualizations highlight shared and unique gene content across taxonomic groups.
Taken together, the five modules provide an integrated framework for analyzing genomic similarity, gene content, functional potential, and geographic distribution within the genus Stenotrophomonas. The combined results support the detection of previously unrecognized diversity, the identification of functionally distinct groups, the refinement of taxonomic boundaries, and the proposal of a novel species within the genus.