PyOrthoANI, PyFastANI, and Pyskani: a suite of Python libraries for computation of average nucleotide identity
The average nucleotide identity (ANI) metric has become the gold standard for prokaryotic species delineation in the genomics era. The most popular ANI algorithms are available as command-line tools and/or web applications, making it inconvenient to incorporate them into bioinformatic workflows, which utilize the popular Python programming language. Here, we present PyOrthoANI, PyFastANI, and Pyskani, Python libraries for three popular ANI computation methods. ANI values produced by PyOrthoANI, PyFastANI, and Pyskani are virtually identical to those produced by OrthoANI, FastANI, and skani, respectively (adjusted <i>R</i> <sup>2</sup> <i>></i>0.999). Compared to OrthoANI, PyOrthoANI is, on average, 3× faster per genome, while PyFastANI has multithreading support for single queries. All three libraries integrate seamlessly with BioPython, making it easy and convenient to use, compare, and benchmark popular ANI algorithms within Python-based bioinformatic workflows, software programs, and notebooks. Each library is available as part of the Python Package Index repository under the open-source MIT license, with source code available via GitHub (PyOrthoANI, https://github.com/althonos/orthoani; PyFastANI, https://github.com/althonos/pyfastani; Pyskani, https://github.com/althonos/pyskani).
Authors
- Georg Zeller (ORCID: https://orcid.org/0000-0003-1429-7485)
- Martin Larralde (ORCID: https://orcid.org/0000-0002-3947-4444)
- Laura M. Carroll (ORCID: https://orcid.org/0000-0002-3677-0192)
Institutions
- European Molecular Biology Organization (DE)
- Leiden University Medical Center (NL)
- European Molecular Biology Laboratory (DE)
- Umeå University (SE)
Publication Details
- Journal
- NAR Genomics and Bioinformatics
- Published
- 2025-06-21
- DOI
- https://doi.org/10.1093/nargab/lqaf095
- Citations
- 1
- Primary Topic
- Genomics and Phylogenetic Studies
- Type
- article
- Field-Weighted Citation Impact
- 0.81
Funders
- European Molecular Biology Laboratory
- Deutsche Forschungsgemeinschaft
- Universiteit Leiden
- Vetenskapsrådet
- Leids Universitair Medisch Centrum
- Science for Life Laboratory