nf-core/mag
nf-core/mag reconstructs metagenomic sequences, groups contigs into genome bins, and assesses or annotates those bins. Use it when the question requires genome context that a taxonomic read table cannot provide.
An assembly and a genome bin are different products
Section titled “An assembly and a genome bin are different products”An assembler joins compatible read evidence into contigs. A genome bin groups contigs using signals such as sequence composition and coverage across samples. A bin can remain incomplete, contain foreign sequences, or combine strains. Calling it a metagenome assembled genome, MAG, does not remove those uncertainties.
| Stage | Main evidence | Limit to inspect |
|---|---|---|
| Read preprocessing | Quality and selected host or control references | Useful microbial reads can be lost under an unsuitable rule |
| Assembly | Overlap and sequence graph structure | Repeats, uneven depth, and strain variation can fragment or confuse the assembly |
| Genome bins | Composition and coverage relationships | Similar organisms and weak coverage signals can mix contigs |
| Quality assessment | Marker sets and model estimates | Estimates depend on reference coverage and marker assumptions |
| Taxonomy and annotation | Genome comparisons and gene models | A label or gene prediction inherits its reference limitations |
The pipeline supports different short read, long read, and hybrid paths. Select the path that matches the actual reads and inspect the versioned output documentation for its products. A list of every supported tool is not an instruction to run all of them on the same specimen.
Choose individual assembly or coassembly deliberately
Section titled “Choose individual assembly or coassembly deliberately”Coassembly pools read evidence across a declared set of samples. It can improve coverage for shared organisms, while additional strain diversity can complicate the assembly graph. Group samples using the study question and biological context, not whichever grouping produces the longest contigs.
Preserve sample identity when reads are mapped back to the resulting contigs. Coverage across samples supplies evidence for genome bins and their abundance. Coverage alone does not establish genome completeness or an organism’s absolute cell count.
Report quality as a set of measurements
Section titled “Report quality as a set of measurements”Report estimated completeness and contamination with the tool and database versions. Add assembly continuity, total length, coverage, and evidence about strain mixture where relevant. An N50 describes contig lengths; it does not measure whether the sequences belong to one correct genome.
The MIMAG reporting standard defines genome quality categories with multiple criteria. Its high quality draft category requires more than favorable completeness and contamination estimates, including specified ribosomal RNA and transfer RNA evidence. State which criteria were actually checked before assigning that category.
Interpret the recoverable fraction
Section titled “Interpret the recoverable fraction”Failure to recover a genome does not establish that the organism was absent. Low abundance, strain variation, extraction bias, or assembly decisions can prevent reconstruction. Compare assembly results with the read evidence from taxprofiler while keeping their targets separate.
The functional analysis lesson explains what gene searches can add once suitable sequences exist.
Further reading
Section titled “Further reading”-
The guide distinguishes short-read and long-read inputs, assembly input, coassembly, and co-binning. Its input requirements explain which reads must remain available when you start from existing assemblies.