Machine learning-based prediction of memory requirements for metagenomic assembly in high-performance computing environments
Santiago SancheziD, Santino FaackiD, Martín BeracocheaiD, Robert D. FinniD, Björn Andreas GrüningiD, Bérénice BatutiD, Paul F. ZierepiD
Abstract
Metagenomic assembly can be a computationally intensive step in microbiome analysis, with memory requirements that vary widely depending on input data characteristics. In workflow systems like Galaxy and large-scale platforms like MGnify, which run thousands of heterogeneous jobs, inaccurate memory allocation drives job failures and costly retries when underestimated, and reduces throughput when overestimated. Current approaches rely primarily on heuristic rules based on input file size or sample metadata, which often fail to generalize across diverse datasets. In this study, we present a machine learning-based framework for predicting memory requirements of metagenomic assembly using metaSPAdes. We analyzed 300 assembly jobs from diverse biomes and evaluated 18 predictive models using combinations of input file size, biome classification, and sequence-derived k-mer features. K-mer profiles were computed from raw sequencing data and summarized into statistical descriptors capturing sequence complexity and diversity. Model performance was assessed using both conventional regression metrics and a production-oriented cost function that accounts for retry policies and resource waste in high-performance computing environments. Our results show that machine learning models can outperform commonly used heuristics. In particular, models incorporating biome information achieved the best performance and can be tuned to favor conservative predictions that reduce job failure rates. Simpler models based solely on input file size also performed competitively, offering a practical alternative for systems with limited feature availability. When evaluated under realistic workload distributions, predictive approaches reduced total memory waste by several million gigabyte-hours per 1,000 jobs compared to static allocation strategies. These findings demonstrate that data-driven resource prediction can substantially improve efficiency in metagenomic workflows. The proposed framework is adaptable to different computational environments and provides a foundation for integrating predictive resource allocation into large-scale bioinformatics platforms beyond Galaxy.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 0
- Assay
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Persistent Memory as an Effective Alternative to Random Access Memory in Metagenome Assembly
Jingchao Sun, Zhining Qiu, … Zhong Wang·BMC BioinformaticsPeer-reviewed·Nov 30, 2022
- Metagenomics-Toolkit: The Flexible and Efficient Cloud-Based Metagenomics Workflow featuring Machine Learning-Enabled Resource Allocation
Peter Belmann, Benedikt Osterholz, … Alexander Sczyrba·NAR Genomics and BioinformaticsPeer-reviewed·Jul 4, 2025
- Fast and haplotype-aware assembly of high-fidelity reads based on MSR sketching: the Alice assembler
Roland Faure, Baptiste Hilaire, … Dominique D. Lavenier·bioRxiv·Sep 29, 2025
- Improving Metagenomic Assemblies Through Data Partitioning: a GC content approach
Fábio Malcher Miranda, Cassio Batista, … Rommel Thiago Jucá Ramos·Lecture notes in computer sciencePeer-reviewed·Jan 1, 2018
- Assembling Metagenomes, One Community At A Time
A.J. van der Walt, Marc W. Van Goethem, … Don Arthur Cowan·BMC GenomicsPeer-reviewed·Jul 10, 2017
- Efficient De Novo Assembly and Recovery of Microbial Genomes from Complex Metagenomes Using a Reduced Set of k-mers
Hajra Qayyum, Amjad H. Ali, Masood Ur Rehman Kayani·bioRxiv·Jun 8, 2024