×

nf-schema @ 2.7.3

Provider: nextflow-io
Claimed: 08 Sep 2025 14:57:59 (UTC)
Description: The nf-schema plugin for Nextflow validates pipeline parameters and sample sheets (CSV, TSV, JSON, YAML formats) against defined schemas, while providing help messages and parameter summaries. It solves the problem of ensuring correct input data types and formats before pipeline execution. Pipeline developers use it to enforce data validation and improve user experience through automated documentation and error checking.
Latest version: 2.8.0
Total downloads: 1.7M View trends

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'
}

You can now 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 >=25.10.0
Depends On -
Release Date 07 Jul 2026 11:02:52 (UTC)
Release Notes https://github.com/nextflow-io/nf-schema/releases/tag/2.7.3
Download URL https://registry.nextflow.io/api/v1/plugins/nf-schema/2.7.3/download/nf-schema-2.7.3.zip
Store URL https://public.cr.seqera.io/v2/nextflow/plugin/nf-schema/blobs/sha256:6a7216daf1639e866b2384225649663828246014532d80d0ae83cfceeb4f3be9
Size 540.5 KB
Checksum 16c743e22f6b65484e304425dd49c4c7af781e43edb71894c27d61a45af217366e1f84500c777ca89651117984728cb38fa2b0a1959db5413ffabc81e7985bd0
Total downloads 6.5K 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)