Home Research

Component Nextflow Pipeline Anatomy

Stub. DSL2 layout, channel idioms, operator-chain reading rules. Grows from cast contact with rnaseq/sarek/ad-hoc — see issue #17.

Raw
Revised
2026-11-10
Rev
3
Nextflow Pipeline Anatomy (DSL2)

Nextflow Pipeline Anatomy (DSL2)

Stub. Grown from cast contact, not pre-emptively (see issue #17).

Primary sources

Directives outside the process body

nf-core pipelines keep publication paths and command-line arguments out of the process body. The root nextflow.config pulls them in with includeConfig, often through a workflow config into per-module nextflow.config files or conf/modules/. Each assignment sits in a withName: or withLabel: selector. A selector may be a plain process name, a regular expression, or a subworkflow-qualified path such as NFCORE_RNASEQ:RNASEQ:FASTQC. Closures stay as written, because evaluating them would hide which params and meta fields they read. A profiles { } block is separate from that chain. includeConfig and selectors inside it apply only when that profile is selected, and summarize-nextflow records the profile name on those entries. A script block that is only template 'file' points at templates/<file> next to the module. The Mold copies the three into publish_dir, resolved_args, and template.

Open gaps

Paragraphs land here when the runtime cast hits a pipeline shape SKILL.md does not cover. Each entry names the motivating target.

Incoming References (8)

  • Component Nextflow Channel Operators related note — Structured digest of Nextflow channel operators (47 entries) with cardinality and shape semantics; backs summarize-nextflow §6 edge reconciliation.
  • Component Nextflow Containers And Envs related note — Container URL grammar (depot, BioContainers, mulled-v2, Wave, ORAS) and conda directive resolution rules backing summarize-nextflow §5.
  • Iwc Map Over Lifecycle Survey related note — Survey of IWC map-over lifecycle recipes, with a Nextflow-to-Galaxy crosswalk for collection construction, cleanup, reshape, reduce, and publish phases.
  • Iwc Parameter Derivation Survey related note — Corpus survey of Galaxy workflow recipes that turn upstream data, metadata, or small files into runtime parameters.
  • Nextflow workflow I/O semantics related note — Defines Nextflow workflow inputs and outputs from docs plus observed fixture pipeline structures.
  • Nextflow parameter schema (nf-schema meta-schema) related note — JSON Schema (Draft 2020-12) meta-schema validating per-pipeline nextflow_schema.json files. Upstream from nextflow-io/nf-schema.
  • nf-core module meta.yml schema related note — JSON Schema (Draft-07) validating nf-core module meta.yml — channel IO, tools, containers, conda lockfiles. Upstream from nf-core/modules.
  • nf-core subworkflow meta.yml schema related note — JSON Schema (Draft-07) validating nf-core subworkflow meta.yml — channel IO, components dependencies, authors. Upstream from nf-core/modules.