forked from epi2me-labs/wf-bacterial-genomes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextflow.config
106 lines (98 loc) · 2.46 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
params.help = ""
params.medaka_model = 'r941_min_high'
params {
help = false
out_dir = "output"
fastq = null
reference = null
threads = 1
medaka_model = "r941_prom_variant_g360"
chunk_size = 1000000
run_prokka = false
prokka_opts = ""
wfversion = "v0.2.0"
aws_image_prefix = null
aws_queue = null
}
executor {
$local {
cpus = 4
memory = "8 GB"
}
}
profiles {
// the "standard" profile is used implicitely by nextflow
// if no other profile is given on the CLI
standard {
docker {
enabled = true
// this ensures container is run as host user and group, but
// also adds host user to the within-container group
runOptions = "--user \$(id -u):\$(id -g) --group-add 100"
}
process {
withLabel:containerCPU {
container = "ontresearch/wf-hap-snps:${params.wfversion}"
}
}
process {
withLabel:prokka {
container = "ontresearch/prokka:latest"
}
}
}
// profile using conda environments rather than docker
// containers
conda {
docker {
enabled = false
}
process {
withLabel:containerCPU {
conda = "environment.yaml"
}
withLabel:containerGPU {
conda = "environment.yaml"
}
withLabel:prokka {
conda = "environment_prokka.yaml"
}
}
conda {
cacheDir = ""
}
}
awsbatch {
process {
executor = 'awsbatch'
queue = "${params.aws_queue}"
memory = '8G'
withLabel:containerCPU {
container = "${params.aws_image_prefix}-wf-hap-snps:${params.wfversion}"
}
withLabel:prokka {
// TODO: fix this
container = "ontresearch/prokka:latest"
}
shell = ['/bin/bash', '-euo', 'pipefail']
}
}
aws.region = 'eu-west-1'
aws.batch.cliPath = '/home/ec2-user/miniconda/bin/aws'
}
timeline {
enabled = true
file = "${params.out_dir}/execution/timeline.html"
}
report {
enabled = true
file = "${params.out_dir}/execution/report.html"
}
trace {
enabled = true
file = "${params.out_dir}/execution/trace.txt"
}
dag {
enabled = true
file = "${params.out_dir}/execution/pipeline.svg"
}