-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnextflow.config
126 lines (118 loc) · 3.41 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
// these values supersede params in the profile and are themselves
// superseded by contents of -params-file or command line args
nextflow.enable.dsl=2
// these can be overridden using command line args like
// --container dada2-nf:17.1
params {
// Docker image is hosted on github
container = "ghcr.io/nhoffman/dada2-nf:2.0.3"
min_reads = 1
// for Processes that use nproc also see queueSize and maxForks
nproc = 8
work_dir = "work"
}
// TODO: version number should contain output of `git describe --tags --dirty`
manifest {
homePage = 'https://github.com/nhoffman/dada2-nf'
description = 'Dada2 pipeline for dereplication, chimera checking, and 16s detection'
version = '1.0.0'
name = 'dada2-nf'
}
profiles {
standard {
workDir = params.work_dir
resume = true // null for no resume
singularity {
enabled = true
autoMounts = true
cacheDir = 'singularity/'
}
params {
output = 'output'
}
process {
container = params.container
executor = 'local'
}
withLabel: c5d_2xlarge {
// Meant to match the AWS Batch cd5.9xlarge which has 32 cpus. For
// local execution cpus must be configured at the application and
// no more than 2 forks at a time.
maxForks = 8
}
executor{
queueSize = 64
}
}
docker {
workDir = params.work_dir
resume = true // null for no resume
docker {
enabled = true
}
params {
output = 'output'
}
process {
container = params.container
executor = 'local'
withLabel: c5d_2xlarge {
maxForks = 8
}
}
executor{
queueSize = 64
}
}
local {
workDir = params.work_dir
resume = true // null for no resume
params {
output = 'output'
}
process {
container = params.container
executor = 'local'
}
withLabel: c5d_2xlarge {
// Meant to match the AWS Batch cd5.9xlarge which has 32 cpus. For
// local execution cpus must be configured at the application and
// no more than 2 forks at a time.
maxForks = 8
}
executor{
queueSize = 64
}
}
uw_batch {
workDir = 's3://molmicro-data/nextflow-workdir/dada2-nf'
params {
output = 'output'
}
process {
scratch = "/docker_scratch"
queue = 'molmicro-queue'
executor = 'awsbatch'
container = params.container
// allocate resources according to labels; see
// https://www.nextflow.io/docs/latest/config.html#scope-process
// https://www.nextflow.io/docs/latest/process.html#label
withLabel: med_cpu_mem {
cpus = 8
memory = { 8.GB * task.attempt }
errorStrategy = 'retry'
maxRetries = 3
}
withLabel: c5d_2xlarge {
cpus = 32
}
}
aws {
region = 'us-west-2'
batch {
volumes = '/docker_scratch'
cliPath = '/home/ec2-user/miniconda/bin/aws'
}
}
}
}