From 49f9a8a02d0eb32cac4b210ebd7eae39a5dc4858 Mon Sep 17 00:00:00 2001 From: Usman Rashid Date: Thu, 10 Oct 2024 22:02:02 +1300 Subject: [PATCH] Added text/html as content mime type for the report file --- CHANGELOG.md | 1 + conf/modules.config | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 749d7926..0ce92b0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 2. Updated nf-core/template to 3.0.1 [#149](https://github.com/Plant-Food-Research-Open/assemblyqc/issues/149) 3. Updated `samtools faidx` to 1.21 4. Now using nf-test for pipeline level testing [#153](https://github.com/Plant-Food-Research-Open/assemblyqc/issues/153) +5. Added `text/html` as content mime type for the report file [#146](https://github.com/Plant-Food-Research-Open/assemblyqc/issues/146) ### `Fixed` diff --git a/conf/modules.config b/conf/modules.config index 24722302..817e6f0c 100644 --- a/conf/modules.config +++ b/conf/modules.config @@ -387,9 +387,18 @@ process { withName: '.*:ASSEMBLYQC:CREATEREPORT' { publishDir = [ - path: { "$params.outdir" }, - mode: params.publish_dir_mode, - saveAs: { filename -> filename.equals("versions.yml") ? null : filename } + [ + path: { "$params.outdir" }, + mode: params.publish_dir_mode, + pattern: 'report.json', + contentType: 'application/json' + ], + [ + path: { "$params.outdir" }, + mode: params.publish_dir_mode, + pattern: 'report.html', + contentType: 'text/html' + ] ] } }