Manuscript · October 2026
Claude Opus 5.5 for bioinformatics: SwiftSNP, a byte-identical snp‑dists that is 336-fold faster than the fastest equivalent tool
Joe Christensen (ORCID) · Translational Neuropsychiatry Unit, Department of Clinical Medicine, Aarhus University

Abstract
SwiftSNP is a drop-in replacement for snp-dists, the small C program that many genomic epidemiology pipelines use to compute pairwise SNP distance matrices. On five published bacterial and SARS-CoV-2 alignments of 100 to 8,596 genomes it wrote the same matrix as snp-dists, byte for byte, and was 336-fold faster than the fastest other tool that reproduced that matrix (geometric mean at two threads). The matrix for 8,596 SARS-CoV-2 genomes took snp-dists 27 minutes and SwiftSNP 0.23 s on an AVX-512 CPU; on an ordinary AVX2 laptop SwiftSNP was 53-fold faster than snp-dists at one thread. snp-dists was slow because it compares every pair of genomes twice, at every column and one byte at a time, although in a Vibrio cholerae core-genome alignment fewer than one column in 2,000 can differ, and because it prints each matrix cell with its own printf call. I built SwiftSNP with correctness-gated coding agents (Claude Opus 5.5): every change had to keep the output byte-identical to snp-dists. No output byte differed in 188,700 random tests or in 67 real-data runs on three builds, for plain FASTA and gzip input and the snp-dists options. Multithreaded snp-dists writes corrupt matrices; a 21-line patch fixes it.
Cite
Christensen J. Claude Opus 5.5 for bioinformatics: SwiftSNP, a byte-identical snp-dists that is 336-fold faster than the fastest equivalent tool. Manuscript, 2026. Code: https://doi.org/10.5281/zenodo.23503646
Text and figures licensed under CC BY 4.0. Code licensed under GPL-3.0.