nf-schema @ 2.8.0
Summary
A Nextflow plugin that provides functionality for validating pipeline parameters and sample sheets. Key features include:
- 📖 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'
}
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"))
Or 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
| Nextflow version | >=26.04.0 |
|---|---|
| Depends On | - |
| Release Date | 10 Aug 2026 14:06:23 (UTC) |
| Release Notes | https://github.com/nextflow-io/nf-schema/releases/tag/2.8.0 |
| Download URL | https://registry.nextflow.io/api/v1/plugins/nf-schema/2.8.0/download/nf-schema-2.8.0.zip |
| Store URL | https://public.cr.seqera.io/v2/nextflow/plugin/nf-schema/blobs/sha256:1466fea73502dda8c8059dfe4190be1a857151bc2a500a87a86ffd223918a3f2 |
| Size | 542.4 KB |
| Checksum | 092978621ec32cb9b2af94efbf67a5dcb13031c055bc44af59a682a9bbcd2524022e1032ec89b542164da72a17a6cc540b3e06a100e36749895d86aa548242ad |
| Total downloads | 348 View trends |
| Security Scan |
| Version | Nextflow version | Date | Status | Downloads |
|---|---|---|---|---|
| 2.8.0 | >=26.04.0 | 10 Aug 2026 14:06:23 (UTC) | 348 | |
| 2.7.3 | >=25.10.0 | 07 Jul 2026 11:02:52 (UTC) | 6.5K | |
| 2.7.2 | >=25.10.0 | 17 Apr 2026 14:29:04 (UTC) | 103.9K | |
| 2.7.1 | >=25.10.0 | 03 Apr 2026 08:04:34 (UTC) | 8.9K | |
| 2.7.0 | >=25.10.0 | 02 Apr 2026 08:32:26 (UTC) | 54.4K | |
| 2.6.1 | >=25.10.0 | 27 Oct 2025 10:50:21 (UTC) | 113.3K | |
| 2.6.0 | >=25.10.0 | 24 Oct 2025 10:40:48 (UTC) | 4.2K | |
| 2.5.1 | >=25.04.0 | 02 Sep 2025 14:48:39 (UTC) | 532.5K | |
| 2.5.0 | >=25.04.0 | 28 Aug 2025 07:12:18 (UTC) | 695 | |
| 2.4.2 | >=24.10.0 | 06 May 2025 07:59:38 (UTC) | 189.3K | |
| 2.4.1 | >=24.10.0 | 10 Apr 2025 11:56:52 (UTC) | 9.8K | |
| 2.4.0 | >=24.10.0 | 03 Apr 2025 13:11:57 (UTC) | 14.4K | |
| 2.3.0 | >=23.10.0 | 13 Jan 2025 10:17:53 (UTC) | 279.5K | |
| 2.2.1 | >=23.10.0 | 03 Dec 2024 12:04:06 (UTC) | 29.3K | |
| 2.2.0 | >=23.10.0 | 30 Oct 2024 10:21:53 (UTC) | 72.9K | |
| 2.1.2 | >=23.10.0 | 18 Oct 2024 09:53:04 (UTC) | 11.2K | |
| 2.1.1 | >=23.10.0 | 19 Sep 2024 09:03:41 (UTC) | 177.5K | |
| 2.1.0 | >=23.10.0 | 20 Aug 2024 12:36:43 (UTC) | 14.6K | |
| 2.0.1 | >=22.10.0 | 04 Jul 2024 09:26:02 (UTC) |