Skip to content

Commit aadc9d4

Browse files
committed
removing a footgun when running the pipeline repeatedly from the same project directory with varying nextclade datasets
1 parent afd39a8 commit aadc9d4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/nextclade.nf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ process CHECK_DATASET {
2525

2626
process DOWNLOAD_DATASET {
2727

28-
storeDir params.nextclade_cache
28+
tag "${valid_dataset}"
29+
30+
// Use publishDir instead of storeDir to avoid cross-run cache issues
31+
publishDir params.nextclade_cache, mode: 'copy', overwrite: true
2932

3033
input:
3134
val valid_dataset
@@ -45,6 +48,8 @@ process DOWNLOAD_DATASET {
4548

4649
process RUN_NEXTCLADE {
4750

51+
tag "${sequences.simpleName}"
52+
4853
publishDir params.nextclade, mode: 'copy'
4954

5055
input:

0 commit comments

Comments
 (0)