Skip to content

Commit 6c9cfa2

Browse files
committed
removing comparable storeDir footguns to nextclade but for the sylph downloads
1 parent aadc9d4 commit 6c9cfa2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

modules/sylph.nf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ process DOWNLOAD_SYLPH_DB {
1818

1919
tag "${db_url}"
2020

21-
storeDir "${params.results}/sylph_cache"
21+
// Use publishDir instead of storeDir to avoid cross-run cache issues
22+
publishDir "${params.results}/sylph_cache", mode: 'copy', overwrite: true
2223

2324
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore' }
2425
maxRetries 1
@@ -30,8 +31,10 @@ process DOWNLOAD_SYLPH_DB {
3031
path "*.syldb", emit: syldb
3132

3233
script:
34+
// Extract filename from URL for meaningful output name
35+
def db_name = db_url.tokenize('/')[-1]
3336
"""
34-
wget -q "${db_url}" -O database.syldb
37+
wget -q "${db_url}" -O ${db_name}
3538
"""
3639
}
3740

0 commit comments

Comments
 (0)