Re-purposing software for functional characterization of the microbiome

Laura‐Jayne Gardiner, Niina Haiminen, Filippo Utro, Laxmi Parida, Ed Seabolt, Ritesh Krishna, James H. KaufmanMicrobiome 2021

Abstract

We demonstrate that improved functional classification of metagenomic sequencing reads is possible by re-purposing a range of taxonomic classification tools that are already well-established, in conjunction with either protein or nucleotide reference databases. We leverage the advances in speed, accuracy and efficiency that have been made for taxonomic classification and translate these benefits for the rapid functional classification of microbiomes. While we focus on a specific set of commonly used methods, the functional annotation approach has broad applicability across other sequence classification tools. We hope that re-purposing becomes a routine consideration during bioinformatic resource development.

Introduction: The Computational Bottleneck in Functional Profiling

In microbiome research, two fundamental questions drive analysis: "Who is there?" (taxonomic profiling) and "What are they doing?" (functional profiling). While the field has seen the development of incredibly fast, k-mer-based tools for taxonomic identification, functional analysis has historically remained a significant computational bottleneck.

Standard functional profiling typically relies on alignment-based methods, where every DNA read is compared against massive databases of known proteins. This process is computationally expensive and slow. Furthermore, many reads match multiple proteins equally well; without a hierarchical structure—analogous to the genus and species ranks in taxonomy—it is difficult to categorize these ambiguous reads effectively. This study addresses these challenges by applying the speed and hierarchical logic of taxonomic classifiers to the domain of functional annotation.

Methods: Re-purposing Taxonomic Tools

The core innovation of this research is the "re-purposing" of existing high-performance software. The authors took tools designed for taxonomy—specifically Kraken, Kraken 2, and Kaiju—and adapted them to use a functional "map" instead of a taxonomic one.

Building a Functional Tree

The Gene Ontology (GO) database, which describes molecular functions, is structured as a Directed Acyclic Graph (DAG). However, taxonomic tools require a strict tree structure. To bridge this, the researchers employed a Depth-First Search (DFS) algorithm to transform the "Molecular Function" subset of GO into a 10-level rooted tree.

Distribution of out-degrees in the functional tree hierarchy.

This transformation allows the software to navigate functional relationships hierarchically. As shown in the out-degree distribution of the resulting tree, while most nodes have few children, the structure maintains the complexity necessary to represent diverse molecular functions.

Lowest Common Function (LCF)

Just as taxonomic tools assign a read to the "Lowest Common Ancestor" (LCA) when it matches multiple species, the authors introduced the concept of the Lowest Common Function (LCF). If a sequence matches multiple specific functional terms, the tool assigns it to the most specific parent node that encompasses all matches, ensuring accuracy even in the face of ambiguity.

Key Results and Insights

The re-purposing strategy yielded significant improvements across several metrics:

  • Performance Gains: Kraken 2 achieved functional classification speeds up to 80 times faster than traditional alignment-based workflows (e.g., Bowtie 2/DIAMOND).
  • Accuracy and Precision: In simulations with low evolutionary divergence, the tools correctly assigned approximately 84-86% of reads to specific or closely related functional terms.
  • Resource Efficiency: Kraken 2 required significantly less memory (under 2 GB) compared to Bowtie 2 (58 GB), enabling high-level functional analysis on standard consumer hardware.
  • Biological Discovery: Applying these tools to a global soil metagenome dataset revealed that antioxidant activity in soil microbes increases significantly at higher latitudes. This biological insight was less apparent using traditional, non-hierarchical methods.

Conclusion

The most profound insight from this work is that many bioinformatics tools are functionally agnostic; taxonomic classifiers are essentially high-performance engines for traversing hierarchical trees. By swapping the underlying reference tree, researchers can change a tool's entire purpose without rewriting core code. This study advocates for "re-purposability" to become a standard design goal in bioinformatics, allowing the community to rapidly adapt established tools to new biological hierarchies.

Summary updated

Abstract

We demonstrate that improved functional classification of metagenomic sequencing reads is possible by re-purposing a range of taxonomic classification tools that are already well-established, in conjunction with either protein or nucleotide reference databases. We leverage the advances in speed, accuracy and efficiency that have been made for taxonomic classification and translate these benefits for the rapid functional classification of microbiomes. While we focus on a specific set of commonly used methods, the functional annotation approach has broad applicability across other sequence classification tools. We hope that re-purposing becomes a routine consideration during bioinformatic resource development. Video abstract.
BibTeX
@inproceedings{gardiner2021re,
  author = {Laura‐Jayne Gardiner and Niina Haiminen and Filippo Utro and Laxmi Parida and Ed Seabolt and Ritesh Krishna and James H. Kaufman},
  title = {{Re-purposing software for functional characterization of the microbiome}},
  booktitle = {Microbiome},
  year = {2021},
  doi = {10.1186/s40168-020-00971-1},
}
Figure