Skip to content

MetaGEAR Pipeline

MetaGEAR Pipeline is the Nextflow / nf-core pipeline at the core of the platform. It takes shotgun metagenomic data through a set of workflows that run independently or chain together, with outputs in a consistent schema designed to be easy to post-process.

schirmer-lab/metagear-pipeline ↗ — source, releases, and the canonical pipeline reference.

The workflows

You pick one with --workflow. The first four run from reads; the rest read an earlier run’s outputs from the same directory.

WorkflowWhat it producesBuilds on
download_databasesInstalls every reference database the others need
qc_dna / qc_rnaTrimmed, host-decontaminated reads and a QC reportraw reads
microbial_profilesMetaPhlAn taxonomic and HUMAnN functional profilesclean reads
genesAssembly, gene and protein catalogs, abundance matricesclean reads
virusViral and plasmid catalogs, annotation, host prediction, lifestyle callsclean reads
classificationPer-contig classification and per-sample bacterial binsclean reads
magCohort MAG catalog with GTDB-Tk taxonomy and MAG×sample abundanceclassification
mspMetaSpecies Pangenomes from co-abundance, with taxonomygenes
structuresStructural-homology annotation for proteins sequence search leaves unassignedgenes/virus

Each has its own reference page under Pipeline reference, mirrored from the pipeline repository so it always matches the released code.

Presets

Most cohorts do not need one workflow at a time. MetaGEAR Tools ships presets that run several in order in one workspace, each reusing what the ones before it produced:

PresetRunsUse it when
profilesmicrobial_profilesReference-based profiles only, without assembling the cohort.
genomesgenesclassificationmagmspYou want the assembled bacterial picture.
microbiomegenomes + virusYou want everything, viruses and plasmids included.
Terminal window
metagear microbiome --input samplesheet.csv --outdir results/

A preset is not a separate analysis — it is the same workflows in dependency order, with --reuse-outputs switched on so nothing is recomputed. Running them by hand in the same order gives the same result.

Presets — what each one produces, what it costs, and how to preview a run.

How you run it

Directly with Nextflow, if you already use it:

Terminal window
nextflow run schirmer-lab/metagear-pipeline \
-profile docker \
--workflow genes \
--input samplesheet.csv \
--outdir results/

--workflow is required — without it the run validates the samplesheet and exits without analysing anything.

The recommended path, especially if you are not a regular Nextflow user, is MetaGEAR Tools: it installs the pipeline, manages the reference databases, applies sensible resource defaults, and adds the presets above.

Inputs and outputs

A CSV samplesheet pointing at paired-end FASTQ files:

sample,fastq_1,fastq_2
SAMPLE-01,/path/to/sample1_R1.fastq.gz,/path/to/sample1_R2.fastq.gz

classification also reads an optional biome column between sample and fastq_1, used to pick the SemiBin2 model.

Outputs go to one directory shared by every workflow, organised by artifact rather than by workflow — catalogs/, abundance/, annotations/, assemblies/ — which is what lets a later workflow discover what an earlier one produced.

Built on nf-core

MetaGEAR Pipeline uses the nf-core framework, inheriting community conventions for reproducibility, containerization and testing. It runs with Docker, Singularity or any nf-core-supported execution profile, on a laptop or an HPC cluster.

Where to go next