Skip to content

Commit

Permalink
Added text/html as content mime type for the report file
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp committed Oct 10, 2024
1 parent 4e2e23b commit 49f9a8a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
15 changes: 12 additions & 3 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -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'
]
]
}
}

0 comments on commit 49f9a8a

Please sign in to comment.