-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextflow.config
197 lines (154 loc) · 5.07 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
// this is a comment, and it is here to help you!
manifest {
author = "Sophie-Luise Heidig"
version = "1.0.0"
homePage = "https://github.com/Bio2Byte/bioenvada"
mainScript = "pipeline.nf"
name = "BioEnvAda"
description = "A Nextflow pipeline that assesses evolutionary relationships and pressure on a set of ortholog proteins"
defaultBranch = "main"
}
params.executionTimestamp = new java.text.SimpleDateFormat("yyyy_MM_dd_HH_mm_ss").format(new Date())
// Input file
params.targetSequences = "$launchDir/example.fasta"
params.type = 'nuc' // can also be 'aa'
params.filterValid = false //'identifierOfAnIvalidSequence'
params.qc = false // --qc only removes empty columns, --qc '0.8' removes columns with less then 80% occupancy
// Conda environment path (type in terminal: conda env list)
params.condaEnvPath = '/Users/me/miniconda3/envs/my_env'
// Data reduction
params.clustering = false
params.relabel = false
// Alignment and tree building
params.alignSequences = false
params.buildTree = false
params.buildTreeEvo = false //use this for ancestral sequence reconstruction
// Available predictors:
//bio2byt tools
params.dynamine = true
params.efoldmine = false
params.disomine = false
params.agmata = false
//structure
params.fetchStructures = false
//evolutinary pressure
params.outGroup = false //'partialLabelOutGroup'
params.eteEvol = false
params.csubst = false
params.branchIds = false //'1,2,3'
// Output files
params.plotBiophysicalFeatures = false
params.selectedProteins = false //'partialLabel1,partialLabel2'
params.buildLogo = false
params.plotTree = false
params.outDir = "$launchDir/results"
//report {
// enabled = true
// file = "results/bioenvada_${params.executionTimestamp}.html"
// overwrite = true
//}
//If you want to run without docker on your local HPC, adapt the modules! It may be usefule to comment out the container line, too.
process {
conda = params.condaEnvPath
container = 'slheidig/csubst'
withName: 'predictBiophysicalFeatures' {
label = 'tinysnail'
container = 'quay.io/biocontainers/b2btools:3.0.5--pyhdfd78af_0'
//container = 'diazadriang/b2b-tools-public'
}
withName: 'buildMultipleSequenceAlignmentNuc' {
label = 'bigboy'
container = 'reslp/macse:2.05'
//module = 'MAFFT/7.505-GCC-11.3.0-with-extensions'
}
withName: 'buildMultipleSequenceAlignmentAA' {
label = 'bigboy'
container = 'biocontainers/clustal-omega:v1.2.1_cv5'
}
withName: 'takeMultipleSequenceAlignment' {
container = 'quay.io/biocontainers/b2btools:3.0.5--pyhdfd78af_0'
}
withName: 'takeMultipleSequenceAlignmentNuc' {
container = 'quay.io/biocontainers/b2btools:3.0.5--pyhdfd78af_0'
}
withName: 'buildPhylogeneticTree' {
label = 'bigboy'
container = 'reslp/iqtree:2.0.7'
// module = 'FastTree/2.1.11-GCCcore-11.3.0'
}
withName: 'buildPhylogeneticTreeEvol' {
label = 'bigboy'
container = 'reslp/iqtree:2.0.7'
}
withName: 'buildLogo' {
container = 'quay.io/biocontainers/weblogo:3.7.9--pyhdfd78af_0'
}
withName: 'plotBiophysicalFeatures' {
container = 'quay.io/biocontainers/b2btools:3.0.5--pyhdfd78af_0'
}
withName:cdHitClustering{
container = 'chrishah/cdhit:v4.8.1'
//module = 'CD-HIT/4.8.1-GCC-11.3.0'
}
withName:plotPhylogeneticTree{
container = 'slheidig/ad_ete3'
}
withName:runEteEvol{
label = 'tinysnail'
container = 'slheidig/ad_ete3'
}
}
profiles {
standard {
process {
executor = 'local'
withLabel: tinysnail {
cpus = '4'
memory = '4.GB'
}
withLabel: bigboy {
cpus = '8'
memory = '8GB'
}
}
}
hydra {
singularity {
cacheDir = "$VSC_SCRATCH/.apptainer"
}
process {
executor = 'slurm'
cpus ='1'
memory ='8.GB'
time ='1h'
//clusterOptions '--mail-type=ALL'
withLabel: tinysnail {
cpus = '1'
memory = '7.GB'
time ='20h'
}
withLabel: bigboy {
cpus = '40'
memory = '40GB'
time ='20h'
//clusterOptions ='--mail-type=ALL'
}
}
}
withdocker {
docker.enabled = true
singularity.enabled = false
docker.temp = 'auto'
}
withsingularity {
docker.enabled = false
singularity {
enabled = true
//cacheDir = "$VSC_SCRATCH/.apptainer"
runOptions = "-B /run"
}
}
withconda {
conda.enabled = true
}
}