File tree Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 1010- fix workflow_dispatch trigger and parse more review comments in awsfulltest ([ #3235 ] ( https://github.com/nf-core/tools/pull/3235 ) )
1111- Add resource limits to Gitpod profile([ #3255 ] ( https://github.com/nf-core/tools/pull/3255 ) )
1212- Fix a typo ([ #3268 ] ( https://github.com/nf-core/tools/pull/3268 ) )
13+ - Remove ` def ` from ` nextflow.config ` and add ` trace_report_suffix ` param ([ #3296 ] ( https://github.com/nf-core/tools/pull/3296 ) )
1314
1415### Download
1516
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ params {
5252 version = false
5353 {%- if test_config % }
5454 pipelines_testdata_base_path = ' https://raw.githubusercontent.com/nf-core/test-datasets/' {% endif % }
55+ trace_report_suffix = new java.util.Date (). format( ' yyyy-MM-dd_HH-mm-ss' )
5556
5657 {%- if nf_core_configs -% }
5758 // Config options
@@ -249,22 +250,21 @@ set -C # No clobber - prevent output redirection from overwriting files.
249250// Disable process selector warnings by default. Use debug profile to enable warnings.
250251nextflow. enable. configProcessNamesValidation = false
251252
252- def trace_timestamp = new java.util.Date (). format( ' yyyy-MM-dd_HH-mm-ss' )
253253timeline {
254254 enabled = true
255- file = " ${ params.outdir} /pipeline_info/execution_timeline_${ trace_timestamp } .html"
255+ file = " ${ params.outdir} /pipeline_info/execution_timeline_${ params.trace_report_suffix } .html"
256256}
257257report {
258258 enabled = true
259- file = " ${ params.outdir} /pipeline_info/execution_report_${ trace_timestamp } .html"
259+ file = " ${ params.outdir} /pipeline_info/execution_report_${ params.trace_report_suffix } .html"
260260}
261261trace {
262262 enabled = true
263- file = " ${ params.outdir} /pipeline_info/execution_trace_${ trace_timestamp } .txt"
263+ file = " ${ params.outdir} /pipeline_info/execution_trace_${ params.trace_report_suffix } .txt"
264264}
265265dag {
266266 enabled = true
267- file = " ${ params.outdir} /pipeline_info/pipeline_dag_${ trace_timestamp } .html"
267+ file = " ${ params.outdir} /pipeline_info/pipeline_dag_${ params.trace_report_suffix } .html"
268268}
269269
270270manifest {
Original file line number Diff line number Diff line change 229229 "description" : " Base URL or local path to location of pipeline test dataset files" ,
230230 "default" : " https://raw.githubusercontent.com/nf-core/test-datasets/" ,
231231 "hidden" : true
232- }{% endif % }
232+ }{% endif % },
233+ "trace_report_suffix" : {
234+ "type" : " string" ,
235+ "fa_icon" : " far calendar" ,
236+ "description" : " Suffix to add to the trace report filename. Default is the date and time in the format yyyy-MM-dd_HH-mm-ss." ,
237+ "hidden" : true
238+ }
233239 }
234240 }
235241 },
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ def _update_validation_plugin_from_config(self) -> None:
9696 conf .get ("validation.help.shortParameter" , "help" ),
9797 conf .get ("validation.help.fullParameter" , "helpFull" ),
9898 conf .get ("validation.help.showHiddenParameter" , "showHidden" ),
99+ "trace_report_suffix" , # report suffix should be ignored by default as it is a Java Date object
99100 ] # Help parameter should be ignored by default
100101 ignored_params_config_str = conf .get ("validation.defaultIgnoreParams" , "" )
101102 ignored_params_config = [
You can’t perform that action at this time.
0 commit comments