-
Notifications
You must be signed in to change notification settings - Fork 5
/
nextflow.config
67 lines (56 loc) · 1.59 KB
/
nextflow.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
* Copyright (c) 2022, Seqera Labs.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This Source Code Form is "Incompatible With Secondary Licenses", as
* defined by the Mozilla Public License, v. 2.0.
*
*/
manifest {
description = 'Proof-of-concept pipeline for performing hyperparameter optimization of machine learning models with Nextflow'
author = 'Ben Sherman'
nextflowVersion = '>=23.10.0'
}
nextflow {
enable.moduleBinaries = true
}
/*
* Default pipeline parameters. They can be overriden on the command line eg.
* given `params.foo` specify on the run command line `--foo some_value`.
*/
params {
fetch_dataset = true
dataset_name = 'wdbc'
visualize = true
datadir = 'data'
train = true
train_data = "${params.datadir}/*.train.txt"
train_meta = "${params.datadir}/*.meta.json"
train_models = ['dummy', 'gb', 'lr', 'mlp', 'rf']
predict = true
predict_models = "${params.datadir}/*.pkl"
predict_data = "${params.datadir}/*.predict.txt"
predict_meta = "${params.datadir}/*.meta.json"
outdir = 'results'
}
/*
* Execution profiles for different environments.
*/
profiles {
slurm {
process.executor = 'slurm'
}
conda {
process.conda = "$baseDir/conda.yml"
conda.enabled = true
}
wave {
process.conda = "$baseDir/conda.yml"
docker.enabled = true
wave.enabled = true
wave.strategy = 'conda'
}
}