Abstract Bacterial secondary metabolites are a major source of therapeutics and play key roles in microbial ecology. These compounds are encoded by biosynthetic gene clusters (BGCs), which show extensive genetic diversity across microbial genomes. While recent advances have enabled clustering of BGCs into gene cluster families (GCFs), there is still a lack of frameworks for systematically analysing their internal diversity at a population scale. Here, we introduce PanBGC, a pangenome-inspired framework that treats each GCF as a population of related BGCs. This enables classification of biosynthetic genes into core, accessory, and unique categories and provides openness metrics to quantify compositional diversity. Applied to over 250 000 BGCs from more than 35 000 genomes, PanBGC maps biosynthetic diversity of more than 80 000 GCFs. Our analysis reveals that gene composition reshuffling, rather than acquisition of new genes, is the dominant driver of diversity within GCFs, with most families exhibiting closed gene repertoires but high compositional variability. Additionally, transporter-related domains were commonly identified among core genes, reflecting the fundamental importance of compound export in BGC function. To facilitate exploration, we present PanBGC-DB (https://panbgc-db.cs.uni-tuebingen.de), an interactive web platform for comparative BGC analysis. PanBGC-DB offers gene- and domain-level visualizations, phylogenetic tools, openness metrics, and custom query integration. Together, PanBGC and PanBGC-DB provide a scalable framework for exploring biosynthetic gene clusters at population resolution and for contextualizing newly discovered BGCs within the global landscape of secondary metabolism.
Paccagnella et al. (2025) studied this question.