← Latest papers
🧬 biology

Afanc: taxonomic deconvolution and probabilistic lineage assignment for pathogen genomic surveillance

Afanc is an extensible framework that integrates database construction, taxonomic deconvolution, and probabilistic lineage assignment to enable high-resolution pathogen genomic surveillance across diverse systems, including Mycobacteriaceae, Plasmodium falciparum, and Mpox.

Original authors: Arthur V. Morris, Anna Price, Thomas Connor

Published 2026-10-27
📖 5 min read🧠 Deep dive

Original authors: Arthur V. Morris, Anna Price, Thomas Connor

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ⚕️ This is an AI-generated explanation of a preprint that has not been peer-reviewed. It is not medical advice. Do not make health decisions based on this content. Read full disclaimer

In the modern fight against infectious disease, scientists have learned to read the genetic code of bacteria, viruses, and parasites to track how they move and change. This practice, known as genomic surveillance, relies on sequencing the tiny strands of DNA or RNA found in a patient's sample. However, turning that raw genetic data into a clear answer is often like trying to identify a specific person in a crowded, foggy room. The genetic material in a sample can be messy, incomplete, or mixed with other organisms, making it difficult to say exactly which bug is present and which specific family it belongs to. Current tools often struggle with this complexity, either identifying the general type of organism but missing the specific family, or getting confused when the genetic signal is weak or mixed with others. Without a clear answer, public health officials cannot accurately trace an outbreak or understand how a pathogen is spreading.

To solve this, researchers at Cardiff University have developed a new software tool called Afanc. This system is designed to act as a comprehensive guide for pathogen genomics, taking the noisy, confusing genetic data from a sample and sorting it into a clear, reliable classification. The tool works in two main stages. First, it acts as a broad filter, scanning the genetic material to determine the general type of organism present, such as a specific species of bacteria. Second, once the general type is identified, it switches to a more detailed mode to pinpoint the exact lineage or family branch, much like identifying a specific family within a large extended clan. This two-step approach allows the software to handle difficult situations where the genetic evidence is incomplete or where multiple organisms are present in the same sample.

The researchers tested Afanc on three very different types of pathogens to see if it could handle diverse challenges. They looked at a group of bacteria called Mycobacteriaceae, which includes the bacteria that cause tuberculosis and other diseases; a malaria parasite called Plasmodium falciparum, which has populations that vary by geography; and the Mpox virus, which has been spreading in recent outbreaks. In the case of the bacteria, the team simulated samples where the genetic material was very scarce, representing only 1% of the full genome. Even under these difficult conditions, Afanc successfully identified the correct species and subspecies, whereas other existing tools often failed or gave incorrect answers. When the researchers tested the software on samples containing a mixture of different bacterial species, Afanc was the only tool that managed to recover all the expected organisms without creating false alarms.

For the tuberculosis bacteria, the team compared Afanc against two other specialized tools used by laboratories around the world. Out of 958 samples, Afanc correctly assigned the lineage for 955 of them, with zero instances of assigning the bacteria to the wrong family branch. The other tools made a few more errors, occasionally placing a sample on an incorrect branch of the family tree. This precision is critical because different branches of the tuberculosis family can have different drug resistance profiles, and misidentifying them could lead to ineffective treatment.

The test with the malaria parasite was equally significant. The researchers used a massive dataset of over 20,000 samples to see if the software could predict the geographic origin of the parasite, a key factor in understanding how the disease spreads. Afanc correctly assigned the regional lineage for nearly 19,000 samples, outperforming the current leading tool by a significant margin. The improvement was most noticeable in regions where the parasite populations are very similar to each other, a scenario where other tools often struggle to tell them apart. Finally, for the Mpox virus, the software analyzed thousands of samples from recent outbreaks. It successfully identified the specific viral clade and lineage without making any wrong-branch assignments, even when the available data was limited or the metadata describing the samples was not as detailed as the genetic evidence.

A key strength of Afanc is how it handles uncertainty. Instead of forcing a definite answer when the evidence is weak or ambiguous, the software is designed to recognize when it cannot be sure. It can report that a sample is unclassified or that the evidence points to a broader group rather than a specific one. This prevents the kind of overconfident mistakes that can happen when a tool tries to guess the answer from incomplete data. The researchers also built the system to be flexible, allowing scientists to update the reference databases and lineage definitions as new information becomes available. This means the tool can adapt to new outbreaks or changes in how pathogens are classified without needing to be completely rebuilt.

The results suggest that Afanc provides a reliable framework for moving from raw, messy genetic data to clear, actionable insights. By combining broad screening with detailed lineage assignment, and by explicitly managing uncertainty, the tool offers a way to make sense of complex pathogen data that other methods miss. While the study was conducted using simulations and existing public datasets, the performance across such different types of organisms indicates that the approach is robust. For public health teams and researchers, this means having a more accurate way to identify the specific threats they face, which is a fundamental step in controlling the spread of infectious diseases.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →