-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnextflow.config
More file actions
131 lines (103 loc) · 2.79 KB
/
Copy pathnextflow.config
File metadata and controls
131 lines (103 loc) · 2.79 KB
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
// ---- Global Docker settings ----
docker {
enabled = true
runOptions = '-u $(id -u):$(id -g)'
}
// ---- Global AWS credentials (only used if awsbatch profile is active) ----
aws {
accessKey = '*'
secretKey = '*'
region = 'us-east-2'
}
// ---- Default parameters ----
params {
input = "test_data/fastq/"
outdir = "output"
threads = 2
jobs = 2
}
// ---- Profiles ----
profiles {
// --- For GitHub Actions CI or local dev ---
test {
process.executor = 'local'
process.memory = '7 GB'
process.cpus = 2
docker.enabled = true
params {
input = "test_data/fastq"
outdir = 'ci_output'
threads = 2
jobs = 2
}
}
// --- Optional: production run with AWS Batch ---
awsbatch {
aws.batch.cliPath = '/home/ec2-user/miniconda/bin/aws'
process {
executor = 'awsbatch'
queue = 'spot_low_priority'
memory = '7 GB'
cpus = 2
withName:AUTOCYCLER {
errorStrategy = { task.exitStatus in [143, 137, 104, 134, 139] ? 'retry' : 'finish' }
maxRetries = 1
memory = { 7.GB * task.attempt }
container = 'seqwell/autocycler:0.5.2'
}
withName:NANOSTAT {
container = 'quay.io/biocontainers/nanostat:1.6.0--pyhdfd78af_0'
}
withName:PYSAMSTATS {
container = 'quay.io/biocontainers/pysamstats:1.1.2--py311h384fd50_15'
}
withName:PLASMIDMAP {
container = 'cautree/plasmidmap:latest'
}
withName:PLANNOTATE {
container = 'seqwell/fq_assemble:v1.0'
}
withName:MINIMAP2 {
container = 'cautree/minimap2'
}
withName:PLOT_COVERAGE {
container = 'seqwell/python:v2.0'
}
}
aws {
accessKey = '*'
secretKey = '*'
region = 'us-east-2'
}
}
}
// ---- Process-specific settings (default local + docker) ----
process {
executor = 'local'
memory = '7 GB'
cpus = 2
withName:AUTOCYCLER {
errorStrategy = { task.exitStatus in [143, 137, 104, 134, 139] ? 'retry' : 'finish' }
maxRetries = 1
memory = { 7.GB * task.attempt }
container = 'seqwell/autocycler:0.5.2'
}
withName:NANOSTAT {
container = 'quay.io/biocontainers/nanostat:1.6.0--pyhdfd78af_0'
}
withName:PYSAMSTATS {
container = 'quay.io/biocontainers/pysamstats:1.1.2--py311h384fd50_15'
}
withName:PLASMIDMAP {
container = 'cautree/plasmidmap:latest'
}
withName:PLANNOTATE {
container = 'seqwell/fq_assemble:v1.0'
}
withName:MINIMAP2 {
container = 'cautree/minimap2'
}
withName:PLOT_COVERAGE {
container = 'seqwell/python:v2.0'
}
}