Skip to content

Commit

Permalink
Use closure for decoy publishDir
Browse files Browse the repository at this point in the history
  • Loading branch information
ewels committed Apr 26, 2021
1 parent affcf2d commit d73aeb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,8 @@ to_protein_decoy_ch = params.clean_database ? clean_database_sh : to_clean_ch
*/
process decoy {

publishDir "${params.outdir}/", mode: params.publish_dir_mode, saveAs: params.final_database_protein
publishDir "${params.outdir}/", mode: params.publish_dir_mode,
saveAs: { filename -> params.final_database_protein }

when:
params.decoy
Expand Down

0 comments on commit d73aeb2

Please sign in to comment.