# PyamilySeq: exposing the fragility of conventional gene (re)clustering and prokaryotic pangenomic inference methods

**Authors:** Nicholas J Dimonaco

PMC · DOI: 10.1093/nargab/lqaf198 · NAR Genomics and Bioinformatics · 2026-01-06

## TL;DR

This paper introduces PyamilySeq, a tool that reveals how sensitive gene clustering and pangenome analysis are to methodological choices and hidden biases.

## Contribution

The novel contribution is the development of PyamilySeq, a toolkit for diagnosing biases in gene clustering and pangenome inference.

## Key findings

- Clustering thresholds and paralog handling significantly affect gene family composition.
- Unrelated parameters like decimal precision and resource allocation can alter clustering outcomes.
- Many tools fail to report representative sequences, undermining downstream analyses.

## Abstract

Pangenomics has become a central framework for exploring microbial diversity and evolution, enabling researchers to distinguish genes that define shared biological function from those that drive adaptation. However, this relies on clustering genes by sequence similarity, a process that is far less deterministic than often assumed. This study introduces PyamilySeq, a transparent and flexible toolkit designed to diagnose and quantify hidden biases within gene clustering and pangenome inference methodologies. Using PyamilySeq, we can see how clustering thresholds (often hard-coded and poorly documented) and paralog handling can substantially alter gene family composition. Surprisingly, even parameters unrelated to clustering, such as decimal precision (0.8 versus 0.80), output selection, and even CPU and memory allocation, can alter gene family assignments, challenging the assumption that identical clustering thresholds yield consistent results. Furthermore, tools often fail to report biologically meaningful or representative sequences for gene families, undermining downstream analyses. These findings reveal systematic fragilities in gene clustering and pangenome construction and highlight that pangenomics is not merely a data-driven task but a methodological one, where transparency, reproducibility, and interpretability are as critical as biological insight. This work calls for a re-evaluation of how pangenomes are constructed and compared, and advocates for methodologies that make their assumptions explicit and their results verifiable.

Graphical Abstract

## Full-text entities

- **Chemicals:** CPU (-), paraquat (MESH:D010269)
- **Species:** Escherichia coli (E. coli, species) [taxon 562], Citrobacter (genus) [taxon 544], Mycoplasma (genus) [taxon 2093]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12770986/full.md

## Figures

3 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12770986/full.md

## References

54 references — full list in the complete paper: https://tomesphere.com/paper/PMC12770986/full.md

---
Source: https://tomesphere.com/paper/PMC12770986