This Snakemake pipeline dedicated to Metagenomic data analysis consists out of several modules that cover a) read-based b) contig-based and c) MAG-based analyses as well as quantification, quality checks and a report for each module. Naturally, it runs seamlessly on HPC systems and all required software tools are bundled in docker containers. Further, all required databases are pre-configured and ready to be downloaded from a central place.
This makes it straight forward and as user-friendly as it can get.
The pipeline is organised in modules, which can run one-by-one. Further, the user can also choose to run individual tools, giving full flexibility on how to use and run the pipeline. An opt-in module separates eukaryotic from prokaryotic contigs and bins the eukaryotic ones.
For a step-by-step tutorial on how to install the pipeline and all pre-compiled databases, please see
Guide to install the pipeline: Installation
Guide to prepare the configuration files: Setup
Guide for running the pipeline: Usage
Information for additional tools: Extra
For troubleshooting, please visit the collection of most common errors: Troubleshooting
List of contributing authors: ...
Please use the issue tracker from the GitHub or contact one of the contributors, if you'd prefer personal contact.
Read preprocessing and quality control:
Read-based annotation and profiling:
Assembly and binning:
MAG and contig annotation:
Quantification:
Eukaryotic contigs (opt-in):
This pipeline did not start from scratch. Its development for the Holoruminant project began in 2024
from a fork of mg_assembly, a Snakemake workflow for
genome-resolved metagenomics from the 3D'omics project, written mainly by Jorge Langa with
contributions from Raphael Eisenhofer and Amalia Toffano. We gratefully acknowledge their work.
- The fork. We forked
mg_assemblyat commitae01c0d(January 2024). That fork, with its full commit history, is still available atfischuu/holoruminant_mg_pipe. This repository was started separately in May 2024, so its own history does not show the original authors' commits. - Versions up to 0.4.63 (branch
old) contain code taken directly frommg_assembly. - The re-implementation. Between August and November 2026 (starting with commit
d3e207f) we re-implemented that code. This wasn't done from scratch: it was done by a developer who knew the earlier code, with AI assistance (Claude Code). The overall flow of the pipeline and the choice and order of tools for assembly, binning and dereplication still follow the design ofmg_assembly, and some rule names, file names, result paths, the contig id format and individual lines remain the same or similar. - Shared with
mg_quant. The module layout, the rule naming scheme and some helper code are shared withmg_quant, another 3D'omics workflow published under the MIT licence. Its notice is reproduced in THIRD_PARTY_NOTICES.md. - Added since the fork. metaSPAdes; the read-based tools HUMAnN, MetaPhlAn, phyloFlash, Sylph, Krona, DIAMOND and NCyc; the contig annotation module; MAG annotation with Bakta, CAMPER, eggNOG-mapper, PhyloPhlAn and Proteinortho; the eukaryote module; per-rule resource escalation; and the PDF reports.
Naming these projects does not imply that their authors have reviewed or endorsed this pipeline. If
this pipeline is useful to you, please also credit mg_assembly.

