nf-schema @ 3.0.0
Summary
A Nextflow plugin to work with validation of pipeline parameters and sample sheets. This plugin provides functionality for:
- 📖 Print usage instructions to the terminal (for use with
--help) - ✍️ Print log output showing parameters with non-default values
- ✅ Validate supplied parameters against the pipeline schema
- 📋 Validate the contents of supplied sample sheet files
- 🛠️ Create a type-casted list from a parsed sample sheet
Supported sample sheet formats are CSV, TSV, JSON and YAML.
Get Started
Declare the plugin in your Nextflow pipeline configuration file:
plugins {
id 'nf-schema@2.7.2'
}
This is all that is needed - Nextflow will automatically fetch the plugin code at run time. Always pin the plugin version to ensure your pipeline continues working when new versions with breaking changes are released.
Include the plugin helper functions into your Nextflow pipeline:
include { validateParameters; paramsSummaryLog; samplesheetToList } from 'plugin/nf-schema'
// Validate input parameters
validateParameters()
// Print summary of supplied parameters
log.info paramsSummaryLog(workflow)
// Create a new channel of metadata from a sample sheet passed to the pipeline through the --input parameter
ch_input = Channel.fromList(samplesheetToList(params.input, "assets/schema_input.json"))
Alternatively, enable the creation of the help message (using --help) in the configuration file:
validation {
help {
enabled = true
}
}
Requirements:
- Java 17 or later
- Nextflow 25.10.0 or later
Examples
include { validateParameters; paramsSummaryLog; samplesheetToList } from 'plugin/nf-schema'
// Validate input parameters
validateParameters()
// Print summary of supplied parameters
log.info paramsSummaryLog(workflow)
// Create a new channel of metadata from a sample sheet passed to the pipeline through the --input parameter
ch_input = Channel.fromList(samplesheetToList(params.input, "assets/schema_input.json"))
License
Apache License 2.0. See the LICENSE file for details.
| Nextflow version | >=26.04.0 |
|---|---|
| Depends On | - |
| Release Date | 29 Sep 2026 13:58:24 (UTC) |
| Release Notes | https://github.com/nextflow-io/nf-schema/releases/tag/3.0.0 |
| Download URL | https://registry.nextflow.io/api/v1/plugins/nf-schema/3.0.0/download/nf-schema-3.0.0.zip |
| Store URL | https://public.cr.seqera.io/v2/nextflow/plugin/nf-schema/blobs/sha256:550162a466ce3f38f80104a7b54be84dc8dcea4c2a2e58ac6325ba2e288c04b0 |
| Size | 550.8 KB |
| Checksum | a390d812533bd8d7b985ce3dae4718a1f09bfa63a8cb18d260da0d15e8de51823585456ccafeb89b7ee2daaabe70e00bef3099271529ea7622b9564f24e6f979 |
| Total downloads | 22 View trends |
| Security Scan |
| Version | Nextflow version | Date | Status | Downloads |
|---|---|---|---|---|
| 3.0.0 | >=26.04.0 | 29 Sep 2026 13:58:24 (UTC) | 22 | |
| 2.8.0 | >=26.04.0 | 10 Aug 2026 14:06:23 (UTC) | 7.8K | |
| 2.7.3 | >=25.10.0 | 07 Jul 2026 11:02:52 (UTC) | 27.4K | |
| 2.7.2 | >=25.10.0 | 17 Apr 2026 14:29:04 (UTC) | 167.7K | |
| 2.7.1 | >=25.10.0 | 03 Apr 2026 08:04:34 (UTC) | 10.8K | |
| 2.7.0 | >=25.10.0 | 02 Apr 2026 08:32:26 (UTC) | 79.2K | |
| 2.6.1 | >=25.10.0 | 27 Oct 2025 10:50:21 (UTC) | 127.8K | |
| 2.6.0 | >=25.10.0 | 24 Oct 2025 10:40:48 (UTC) | 4.7K | |
| 2.5.1 | >=25.04.0 | 02 Sep 2025 14:48:39 (UTC) | 594.0K | |
| 2.5.0 | >=25.04.0 | 28 Aug 2025 07:12:18 (UTC) | 911 | |
| 2.4.2 | >=24.10.0 | 06 May 2025 07:59:38 (UTC) | 215.2K | |
| 2.4.1 | >=24.10.0 | 10 Apr 2025 11:56:52 (UTC) | 12.1K | |
| 2.4.0 | >=24.10.0 | 03 Apr 2025 13:11:57 (UTC) | 15.8K | |
| 2.3.0 | >=23.10.0 | 13 Jan 2025 10:17:53 (UTC) | 339.0K | |
| 2.2.1 | >=23.10.0 | 03 Dec 2024 12:04:06 (UTC) | 30.6K | |
| 2.2.0 | >=23.10.0 | 30 Oct 2024 10:21:53 (UTC) | 78.4K | |
| 2.1.2 | >=23.10.0 | 18 Oct 2024 09:53:04 (UTC) | 11.5K | |
| 2.1.1 | >=23.10.0 | 19 Sep 2024 09:03:41 (UTC) | 187.2K | |
| 2.1.0 | >=23.10.0 |