nf-versions @ 0.4.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. Contributions for new tool version support are greatly appreciated!
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 ...
"""
}
Custom Python Libraries and Tools
Use pyPackageVersion() for custom Python tools or libraries. If the package is not installed the helper emits secret_sauce_lib: "" rather than failing the task:
include { pyPackageVersion } from 'plugin/nf-versions'
process SECRET_SAUCE {
output:
eval({pyPackageVersion("secret_sauce_lib")}), topic: "versions"
script:
"""
secret-sauce.py ...
"""
}
Custom R Libraries
Use rLibraryVersion() for R libraries, resolved with packageVersion(). If the library is not installed the helper emits ichorCNA: "" rather than failing the task:
include { rLibraryVersion } from 'plugin/nf-versions'
process RUN_ICHORCNA {
output:
eval({rLibraryVersion("ichorCNA")}), topic: "versions"
script:
"""
runIchorCNA.R ...
"""
}
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())
}
| Plugin Function | Tool |
|---|---|
bcftoolsVersion() |
bcftools |
bedtoolsVersion() |
bedtools |
bwaVersion() |
bwa |
bwaMem2Version() |
bwa-mem2 |
falcoVersion() |
falco |
fastpVersion() |
fastp |
fastqcVersion() |
FastQC |
fastqcRsVersion() |
fastqc-rs |
fgbioVersion() |
fgbio |
mosdepthVersion() |
mosdepth |
picardVersion() |
picard |
revtagVersion() |
revtag |
sambambaVersion() |
sambamba |
samtoolsVersion() |
samtools |
splitcodeVersion() |
splitcode |
License
This plugin is published under the MIT license. Copyright © 2026 Fulcrum Genomics LLC.
| Nextflow version | >=25.10.0 |
|---|---|
| Depends On | - |
| Release Date | 06 Jul 2026 20:55:12 (UTC) |
| Release Notes | https://github.com/fulcrumgenomics/nf-versions/releases/tag/0.4.0 |
| Download URL | https://registry.nextflow.io/api/v1/plugins/nf-versions/0.4.0/download/nf-versions-0.4.0.zip |
| Store URL | https://public.cr.seqera.io/v2/nextflow/plugin/nf-versions/blobs/sha256:37baad8bd303f326b6ef6e7bc606975852c09bef653fbef9bc7d74dec0b33a11 |
| Size | 9.0 KB |
| Checksum | fbbee1a96da7c072f673fef6d0686f9a94c650e0fc12b6905e28414d79feac2793f6200833fcf1891218ad192ac174198ff3c5fb1c78113ca52daa4df0ae6b93 |
| Total downloads | 1.2K View trends |
| Security Scan |