Skip to content

Commit 5a7c685

Browse files
tgurbichochkalova
andauthored
Removed closure from result publishing
Co-authored-by: Sofia Ochkalova <[email protected]>
1 parent 3676776 commit 5a7c685

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

config/modules.config

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,10 @@ process {
6060
process {
6161
withName: SPLIT_DREP_MAIN {
6262
publishDir = [
63-
path: "${params.outdir}",
64-
saveAs: { filename ->
65-
def output_file = file(filename)
66-
if ( output_file.name == "clusters_split.txt" ) {
67-
return "additional_data/intermediate_files/clusters_split.txt"
68-
}
69-
return null
70-
},
71-
mode: "copy",
72-
failOnError: true
63+
path: "${params.outdir}/additional_data/intermediate_files",
64+
pattern: "clusters_split.txt",
65+
mode: "copy",
66+
failOnError: true
7367
]
7468
}
7569
}

0 commit comments

Comments
 (0)