-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathnextflow.config
154 lines (131 loc) · 3.75 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
includeConfig 'external-modules/spark/nextflow.config'
manifest {
name = 'JaneliaSciComp/multifish'
author = 'Janelia MultiFISH Team Project'
homePage = 'https://github.com/JaneliaSciComp/multifish'
description = 'Analysis pipeline for EASI-FISH (Expansion-Assisted Iterative Fluorescence In Situ Hybridization)'
mainScript = 'main.nf'
nextflowVersion = '>=20.10.0'
version = '1.1.0'
}
params {
lsf_opts = ''
runtime_opts = ''
singularity_cache_dir = getEnvValue("HOME", "/tmp") + "/.singularity_cache"
singularity_user = getEnvValue("USER", null)
}
process {
beforeScript = 'export PROCESS_DIR=`pwd`'
withLabel: small {
cpus = 1
memory = 1.GB
}
}
profiles {
standard {
docker.enabled = false
singularity.enabled = true
process {
withLabel: withGPU {
containerOptions = "--nv"
}
}
}
localsingularity {
docker.enabled = false
singularity.enabled = true
process {
withLabel: withGPU {
containerOptions = "--nv"
}
}
}
localdocker {
docker.enabled = true
singularity.enabled = false
}
lsf {
process {
executor = 'lsf'
clusterOptions = params.lsf_opts
withLabel: withGPU {
queue = 'gpu_rtx'
clusterOptions = '-gpu "num=1" ' + params.lsf_opts
containerOptions = "--nv"
}
withLabel: withAVX2 {
clusterOptions = '-R"select[avx2]" ' + params.lsf_opts
}
withLabel: preferLocal {
executor = 'local'
}
}
docker.enabled = false
singularity.enabled = true
}
tower {
process {
withLabel: withGPU {
containerOptions = ""
}
}
docker.enabled = true
singularity.enabled = false
params.singularity_user = "ec2_user"
}
tower_gpu {
process {
withLabel: withGPU {
accelerator = 1
containerOptions = "--runtime nvidia"
}
}
docker.enabled = true
singularity.enabled = false
}
awsbatch {
aws {
region = 'us-east-1'
client {
maxConnections = 20
connectionTimeout = 10000
}
batch {
cliPath = '/home/ec2-user/miniconda/bin/aws'
maxTransferAttempts = 10
volumes = [ '/tmp', '/s3-multifish', '/efs-multifish' ]
jobRole = 'easi-multifish-dev-ECSTaskRole'
}
}
process {
executor = 'awsbatch'
queue = 'easi-multifish-dev-multifish-cpu-job-queue'
withLabel: small {
queue = 'easi-multifish-dev-multifish-small-cpu-job-queue'
}
withLabel: withGPU {
accelerator = 1
queue = 'easi-multifish-dev-multifish-gpu-job-queue'
containerOptions = "--runtime nvidia"
}
}
docker.enabled = true
singularity.enabled = false
}
}
singularity {
autoMounts = true
cacheDir = "${params.singularity_cache_dir}"
runOptions = "-e --env PROCESS_DIR=\$PROCESS_DIR --env USER=${params.singularity_user} ${params.runtime_opts}"
}
// Borrowed from nf-virontus/nextflow.config
// Try to get a system environment variable value with some key. If the key
// doesn't exist, then return a default value
def getEnvValue(envKey, defaultValue = null) {
envMap = new HashMap(System.getenv())
if (envMap.containsKey(envKey)) {
envMap[envKey]
} else {
defaultValue
}
}