Skip to content

Commit 9e39190

Browse files
committed
fixed stub run
1 parent 7f53fcb commit 9e39190

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

modules/grid_search.nf

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
process import_features {
2-
publishDir "${params.outdir}/features/", mode: "copy"
2+
publishDir "${params.outdir}/features/", mode: "copy", pattern: "*.h5"
33
tag "${feature_extractor}"
44
input:
55
tuple path(dataset), val(target_column), path(splits)
@@ -31,8 +31,9 @@ process split_dataset {
3131
"""
3232
stub:
3333
"""
34-
mkdir -p splits/$target_column/
35-
cp $dataset splits/$target_column/
34+
mkdir -p ./$target_column/
35+
cp $dataset ./$target_column/
36+
cd ./$target_column/
3637
touch splits_0_bool.csv
3738
touch splits_1_bool.csv
3839
touch splits_2_bool.csv
@@ -66,9 +67,11 @@ process grid_search {
6667
"""
6768
touch ${feature_extractor}.${model}.cv_result.csv
6869
touch ${feature_extractor}.${model}.test_metrics.csv
69-
touch ${feature_extractor}.${model}.test_predictions.csv
7070
touch ${feature_extractor}.${model}.pipeline.joblib
7171
touch ${feature_extractor}.${model}.best_params.json
72+
for i in {0..9}; do
73+
touch ${feature_extractor}.${model}.\$i.test_predictions.csv
74+
done
7275
"""
7376
}
7477

nextflow.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ profiles {
6565
cpus = 1
6666
memory = '1 GB'
6767
time = '5 min'
68+
errorStrategy = 'retry'
69+
maxRetries = 3
6870
}
6971
}
7072
docker.enabled = false

0 commit comments

Comments
 (0)