From 73926bd84b637deaf376af205f59577f8ee09c11 Mon Sep 17 00:00:00 2001 From: Kelly Sovacool Date: Mon, 25 Nov 2024 10:07:19 -0500 Subject: [PATCH 1/2] feat: add manifest.version entry & read from VERSION file --- main.nf | 6 +++++- nextflow.config | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/main.nf b/main.nf index 14598af..015f0e2 100644 --- a/main.nf +++ b/main.nf @@ -1,5 +1,5 @@ log.info """\ - CHAMPAGNE 🍾 + CHAMPAGNE $workflow.manifest.version 🍾 ============= NF version : $nextflow.version runName : $workflow.runName @@ -48,6 +48,10 @@ workflow.onComplete { } } +workflow version { + println "CHAMPAGNE ${workflow.manifest.version}" +} + workflow DOWNLOAD_SRA { ch_sra = Channel.from(file(params.sra_csv)) // assets/test_human_metadata.csv .splitCsv ( header:true, sep:',' ) diff --git a/nextflow.config b/nextflow.config index 22a42cd..1bcb593 100644 --- a/nextflow.config +++ b/nextflow.config @@ -163,6 +163,8 @@ report { includeConfig 'conf/modules.config' +String pipeline_version = new File("${projectDir}/VERSION").text + manifest { name = "CCBR/CHAMPAGNE" author = "CCR Collaborative Bioinformatics Resource" @@ -170,6 +172,7 @@ manifest { description = "CHromAtin iMmuno PrecipitAtion sequencinG aNalysis pipEline" mainScript = "main.nf" defaultBranch = "main" + version = "${pipeline_version}" } // Function to ensure that resource requirements don't go beyond From da107547448f1ac3e90a3050b44acb1cc3120f89 Mon Sep 17 00:00:00 2001 From: Kelly Sovacool Date: Mon, 25 Nov 2024 10:10:13 -0500 Subject: [PATCH 2/2] chore: update CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 42e7762..b60a43d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## CHAMPAGNE development version +- The CHAMPAGNE nextflow workflow now has a version entry in `nextflow.config`, in compliance with nf-core. (#213, @kelly-sovacool) + ## CHAMPAGNE 0.4.0 ### New features