nf-versions @ 0.2.0
Summary
Collect CLI tool version information from Nextflow processes and collate it for MultiQC. Version strings are bash echo commands designed for use with Nextflow's eval output directive. They produce YAML-formatted lines that MultiQC can read directly. These helpers avoid the need to continuously and verbosely specify version strings in both script and stub blocks, reducing boilerplate code in your Nextflow modules.
Get Started
Add the plugin to your Nextflow config:
plugins { id 'nf-versions' }
Examples
Version Functions in Nextflow Processes
include { bwaMem2Version; samtoolsVersion } from 'plugin/nf-versions'
process ALIGN {
output:
eval({bwaMem2Version()}), topic: "versions"
eval({samtoolsVersion()}), topic: "versions"
script:
"""
bwa-mem2 mem ... | samtools sort ...
"""
}
Supported Tools:
| Plugin Function | Tool |
|---|---|
bcftoolsVersion() |
bcftools |
bwaMem2Version() |
bwa-mem2 |
falcoVersion() |
falco |
fgbioVersion() |
fgbio |
picardVersion() |
picard |
samtoolsVersion() |
samtools |
splitcodeVersion() |
splitcode |
Custom Python Libraries and Tools
Use pyPackageVersion() for custom Python tools or libraries:
include { pyPackageVersion } from 'plugin/nf-versions'
process SECRET_SAUCE {
output:
eval({pyPackageVersion("secret_sauce_lib")}), topic: "versions"
script:
"""
secret-sauce.py ...
"""
}
Collating Versions for MultiQC
In your workflow, mix the versions topic channel through collateVersions() before passing to MultiQC:
include { MULTIQC } from './modules/multiqc'
include { collateVersions } from 'plugin/nf-versions'
workflow {
// ... pipeline logic ... //
def qc = channel.empty()
qc = qc.mix(channel.topic("for_multiqc"))
qc = qc.mix(collateVersions(channel.topic("versions")))
MULTIQC(qc.collect())
}
License
This plugin is published under the MIT license. Copyright © 2026 Fulcrum Genomics LLC.
| Nextflow version | >=25.10.0 |
|---|---|
| Depends On | - |
| Release Date | 02 Apr 2026 17:58:07 (UTC) |
| Release Notes | https://github.com/fulcrumgenomics/nf-versions/releases/tag/0.2.0 |
| Download URL | https://registry.nextflow.io/api/v1/plugins/nf-versions/0.2.0/download/nf-versions-0.2.0.zip |
| Store URL | https://public.cr.seqera.io/v2/nextflow/plugin/nf-versions/blobs/sha256:bd62b0f35ad1edb8c1b05d8804b1514f9963bc43c224f0beea1abf68e56cb201 |
| Size | 8.3 KB |
| Checksum | b841ca33cb8a49d95ff8b321aa5f350270a90030756c333aba45ed170fd758a5fabac2ec21fe5df7ebd16480b7872d5b227c94cdd744200daffda34fe325de30 |
| Total downloads | 44 View trends |
| Security Scan |
| Version | Nextflow version | Date | Status | Downloads |
|---|---|---|---|---|
| 0.2.0 | >=25.10.0 | 02 Apr 2026 17:58:07 (UTC) | 44 |