-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
publishDir pattern specification conflicts with set-val-file in output channel #3637
Comments
Try the latest version |
I get the same problem/output:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I think problem is that the publish pattern depends on The publish pattern does not support closures, so I tried to put the entire publishDir in a closure: publishDir { [
[ path: "${params.output}", mode: "copy", pattern: "${comp_id}/species_test.txt" ]
] } This actually doesn't work because nextflow/modules/nextflow/src/main/groovy/nextflow/script/ProcessConfig.groovy Lines 875 to 886 in a60ef72
So I added some logic to support closures: else if( target instanceof Closure ) {
configProperties.put('publishDir', target)
} But it still didn't work 🤷♂️ Not sure what else to try |
Bug report
Expected behavior and actual behavior
When using publishDir with a pattern specification containing a variable, the pattern is expected to be recognized.
This works well with nextflow version 20.04.1, but with nextflow version 21.10.6 or newer (and maybe with some previous versions, I am not sure where the problem arose) the matching outputs are not copied to the specified directory.
In particular, we only have this problem when the output channel contains a set-val-file specification (otherwise everything works as expected).
Steps to reproduce the problem
This snippet shoud reproduce the problem:
Program output
The program does not fail nor reports any warnings/errors. The files are just not copied in the output directory (specified in the command line)
Environment
The text was updated successfully, but these errors were encountered: