-
Notifications
You must be signed in to change notification settings - Fork 1
/
nextflow.config
226 lines (178 loc) · 6.58 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
//create unique output folders
params.executionTimestamp = new java.text.SimpleDateFormat("yyyy_MM_dd_HH_mm_ss").format(new Date())
//Parameters to adapt run to dataset
params.condaEnvPath = false
params.data = "$launchDir/data"
params.structures = "$params.data/structures"
params.seqs = "$params.data/seqs"
params.dsspPath = "$params.data/dssp"
params.seqFormat = "fasta"
params.seqQC = 5
params.dropSimilar = false
params.favoriteSeqs = false
params.outFolder = "$launchDir/results/simsa_${params.executionTimestamp}"
params.outName = "finalMSA"
params.convertMSA = false
params.createSubsets = false
params.minSubsetID = 20
params.maxSubsetSize = true
params.useSubsets = false
params.retrieve = false
params.model = false
params.localModel = false
params.strucQC = 5
params.mafftParams = false
params.tcoffeeParams = false
params.dssp = false
params.squeeze = false
params.squeezePerc = 80
params.reorder = false
//only postprocessing
params.align = true
params.alignment = "$launchDir/alignment.fasta"
params.magic = false
//run all
if (params.magic){
params.seqQC = 5
params.dropSimilar = 90
params.outName = "magicMSA"
params.createSubsets = 30
params.minSubsetID = "min"
params.retrieve = true
params.model = true
params.strucQC = 5
params.dssp = true
params.squeeze = "H,E"
params.reorder = true
}
//Parameter logics
//there can only be one
if (params.createSubsets) {params.useSubsets = false}
//type test useSubsets
if (params.useSubsets) {assert Boolean.isCase(params.useSubsets), " useSubsets can only be 'true' or 'false', please check your launch file or command line"}
//squeeze requries dssp
if (params.squeeze){params.dssp = true}
//minimal parameter value should be 1
//if (params.localModel){params.localModel = 1}
manifest {
author = "Crauwels Charlotte, Sophie-Luise Heidig"
version = "1.0.0"
homePage = "https://github.com/Bio2Byte/simsapiper"
mainScript = "simsapiper.nf"
name = "SIMSApiper"
description = "A Nextflow pipeline that creates reliable, structure-informed MSAs of thousands of protein sequences which can supplement structural information from online resources automatically"
defaultBranch = "main"
}
report {
enabled = true
file = "$params.outFolder/nextflow_report_${params.outName}.html"
overwrite = true
}
trace {
enabled = true
raw = true
file = "$params.outFolder/resources_${params.outName}.txt"
overwrite = true
}
profiles {
standard {
process {
executor = 'local'
conda = "${params.condaEnvPath ? params.condaEnvPath : "$projectDir/recipes/conda_env_m_apple_simsapiper.yml"}"
container = 'slheidig/simsapiper:05'
withName:'runTcoffee'{
cpus = '4'
memory = ' 7 GB'
container='diazadriang/simsa-tcoffee:1.0.0'
}
}
}
server {
process {
executor = 'local'
queueSize = 10
pollInterval = '5 sec'
conda = "${params.condaEnvPath ? params.condaEnvPath : "$projectDir/recipes/conda_env_server_simsapiper.yml"}"
container = 'slheidig/simsapiper:05'
withName:'runTcoffee'{
cpus = '10'
memory = '10 GB'
container='diazadriang/simsa-tcoffee:1.0.0'
}
}
}
hpc {
process {
executor = 'slurm'
cpus ='1'
memory ='4 GB'
time ='10min'
pollInterval = '5 sec'
queueSize = 10
container = 'slheidig/simsapiper:05'
withName:'runTcoffee'{
cpus = '10'
memory = { 40.GB * task.attempt }
time = { 2.h * task.attempt * task.attempt * task.attempt }
container='diazadriang/simsa-tcoffee:1.0.0'
}
}
}
hydra {
singularity { //for dssp
enabled = true
cacheDir = "$VSC_SCRATCH/.apptainer"
}
process {
executor = 'slurm'
cpus ='1'
memory ='4 GB'
time ='10min'
pollInterval = '5 sec'
queueSize = 10
module = 'Biopython/1.79-foss-2022a:SciPy-bundle/2022.05-foss-2022a'
withName:'runTcoffee'{
module = 'T-Coffee/13.45.61.3c310a9:TM-align/20190822-GCC-11.3.0:SAP/1.1.3-GCC-11.3.0 '
cpus = '10'
memory = { 40.GB * task.attempt }
time = { 2.h * task.attempt * task.attempt * task.attempt }
//clusterOptions ='--mail-type=ALL'
//clusterOptions = '--partition=skylake'
}
withName:'mergeMafft'{
module = 'MAFFT/7.505-GCC-11.3.0-with-extensions:Biopython/1.79-foss-2022a:SciPy-bundle/2022.05-foss-2022a'
}
withName:'cdHitCollapse' {
module = 'CD-HIT/4.8.1-GCC-11.3.0:Biopython/1.79-foss-2022a:SciPy-bundle/2022.05-foss-2022a'
}
withName:'cdHitSubsetting' {
module = 'CD-HIT/4.8.1-GCC-11.3.0:BLAST+/2.13.0-gompi-2022a:Biopython/1.79-foss-2022a:SciPy-bundle/2022.05-foss-2022a'
}
withName:'runDssp' {
container = 'slheidig/dssp3:2'
}
withName:'esmFolds'{
module = 'legacy-software:ESM-2/2.0.0-foss-2021a-CUDA-11.3.1:OpenFold/1.0.1-foss-2021a-CUDA-11.3.1'
time = { 1.h * params.localModel }
memory = { 40.GB * params.localModel / 2 }
clusterOptions = "--partition=ampere_gpu,pascal_gpu --nodes=1 --gpus-per-node=1 --ntasks-per-gpu=1 --cpus-per-gpu=8"
}
}
}
withdocker {
docker.enabled = true
singularity.enabled = false
docker.temp = 'auto'
//docker.runOptions = '-u \$(id -u):\$(id -g) '
}
withsingularity {
docker.enabled = false
singularity {
enabled = true
runOptions = "-B /run"
}
}
withconda {
conda.enabled = true
}
}