New feature
Allow printing of workflow output variables (PR #6875) only when they contain results, to avoid displaying empty variables in the final logs.
Use case
In a Nextflow workflow using a switch/case process structure, some branches may not produce results depending on the input parameters. Currently, all output variables are printed in the final logs, including empty ones (e.g., afMassiveAlphaFillpredictions:, afMassiveAlphaFillMultiQC:).
This makes the final output less readable and less informative, as users must manually filter out empty variables to identify relevant results.
Outputs:
/[...]/results_workflow_output
afMassiveAlphaFillpredictions:
afMassiveAlphaFillMultiQC:
colabFoldSearchResult:
- [BTB-domain, colabFoldSearch/BTB-domain]
colabFoldSearchVersions:
- colabFoldSearch/versions.txt
colabFoldSearchOptions:
- colabFoldSearch/options.txt
Outputs:
/[...]/results_workflow_output
colabFoldSearchResult:
- [BTB-domain, colabFoldSearch/BTB-domain]
colabFoldSearchVersions:
- colabFoldSearch/versions.txt
colabFoldSearchOptions:
- colabFoldSearch/options.txt
Suggested implementation
Introduce an option or mechanism to:
- Automatically detect if a variable/channel is empty before printing it.
- Skip printing empty variables in the final human-readable output.
New feature
Allow printing of workflow output variables (PR #6875) only when they contain results, to avoid displaying empty variables in the final logs.
Use case
In a Nextflow workflow using a switch/case process structure, some branches may not produce results depending on the input parameters. Currently, all output variables are printed in the final logs, including empty ones (e.g., afMassiveAlphaFillpredictions:, afMassiveAlphaFillMultiQC:).
This makes the final output less readable and less informative, as users must manually filter out empty variables to identify relevant results.
Suggested implementation
Introduce an option or mechanism to: