forked from CDCgov/tostadas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextflow.config
247 lines (219 loc) · 8.62 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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GENERAL INFORMATION
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
// To Do, decide what goes where between here and standard params
// Global default params, used in configs
params {
// input paths
fasta_path = "" // path to dir with fasta files that match metadata
fastq_path = "" // path to dir with fastq files that match metadata (for SRA upload of raw sequences)
ref_fasta_path = "${projectDir}/assets/ref/ref.MPXV.NC063383.v7.fasta"
meta_path = "${projectDir}/assets/metadata_template.xlsx"
ref_gff_path = "${projectDir}/assets/ref/ref.MPXV.NC063383.v7.gff"
// validation subworkflow
val_date_format_flag = 's'
val_keep_pi = false
validate_custom_fields = false
custom_fields_file = "${projectDir}/assets/custom_meta_fields/example_custom_fields.json"
// viral annotation params
annotation = true
repeatmasker_liftoff = true
liftoff = false
vadr = false
// organism specific repeat library settings
// if you want to add your own custom library, if you choose to use one of ours state 'varv' to use the 'varv' custom lib or 'mpox' to use the mpox custom lib
if ( params.variola ) {
params.repeat_lib = "${projectDir}/assets/lib/varv_repeats_lib.fasta"
}
// assumes mpox as default for repeatmasker liftoff subworkflow
else {
params.repeat_lib = "${projectDir}/assets/lib/MPOX_repeats_lib.fasta"
}
// bacterial annotation params
bakta = false
// submission params
submission = true
genbank = true
sra = true
gisaid = false
biosample = true
organism = "OTHER" // for GISAID submission, choices are <FLU,COV,OTHER>
submission_output_dir = "submission_outputs"
submission_wait_time = 380 // time in seconds
submission_config = "${projectDir}/bin/config_files/<your-ncbi-config>.yaml"
submission_prod_or_test = "test" // "prod" if submitting
send_submission_email = false
// general params
help = false
publish_dir_mode = 'copy'
output_dir = ""
overwrite_output = false
// To Do check if we need these three dirs
final_liftoff_output_dir = "liftoff"
bakta_output_dir = ""
vadr_output_dir = ""
final_liftoff_output_dir = "liftoff_outputs"
val_output_dir = "validation_outputs"
// taxon-specific params
variola = false
bacteria = false
virus = false
// environment params
env_yml = "${projectDir}/environment.yml"
docker_container = 'staphb/tostadas:latest'
docker_container_vadr = 'staphb/vadr:latest'
scicomp = false
run_conda = false
run_docker = false
run_singularity = false
// cleanup subworkflow
cleanup = false
clear_nextflow_log = false
clear_work_dir = false
clear_conda_env = false
clear_nf_results = false
overwrite_output = true
// required bakta params
bakta_db_type = "light" // light or full
download_bakta_db = ""
bakta_db_path = ""
bakta_min_contig_length = 5
bakta_threads = 2
bakta_genus = 'N/A'
bakta_species = 'N/A'
bakta_strain = 'N/A'
bakta_plasmid = 'unnamed'
bakta_locus = 'contig'
bakta_locus_tag = 'autogenerated'
bakta_translation_table = 11
// optional bakta params
bakta_compliant = ""
bakta_keep_contig_headers = ""
bakta_prodigal_tf = ""
bakta_replicons = ""
bakta_proteins = ""
bakta_skip_trna = ""
bakta_skip_tmrna = ""
bakta_skip_rrna = ""
bakta_skip_ncrna = ""
bakta_skip_ncrna_region = ""
bakta_skip_crispr = ""
bakta_skip_cds = ""
bakta_skip_pseudo = ""
bakta_skip_sorf = ""
bakta_skip_gap = ""
bakta_skip_ori = ""
bakta_skip_plot = ""
// liftoff annotation
lift_print_version_exit = false
lift_print_help_exit = false
lift_parallel_processes = 8
lift_delete_temp_files = 'true'
lift_coverage_threshold = 0.5
lift_child_feature_align_threshold = 0.5
lift_unmapped_features_file_name = 'output.unmapped_features.txt'
lift_copy_threshold = 1.0
lift_distance_scaling_factor = 2.0
lift_flank = 0.0
lift_overlap = 0.1
lift_mismatch = 2
lift_gap_open = 2
lift_gap_extend = 1
lift_infer_transcripts = 'false'
lift_infer_genes = false
lift_copies = 'false'
lift_minimap_path = 'N/A'
lift_feature_database_name = 'N/A'
lift_feature_types = "${projectDir}/assets/feature_types.txt"
// vadr annotation
vadr_models_dir = "${projectDir}/vadr_files/mpxv-models"
}
try {
includeConfig 'conf/modules.config'
} catch (Exception e) {
System.err.println("WARNING:Could not load conf/modules.config")
}
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PROFILES
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
// To Do: align these profiles with nf-core style, also align rest of this config
profiles {
test { includeConfig "conf/test_params.config" }
// run docker + specify settings
conda {
enable_conda = true
conda.enabled = true
docker.enabled = false
singularity.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
conda.useMamba = false
// Just for tracking that at least one option was selected
params.run_docker = false
params.run_conda = true
params.run_singularity = false
}
docker {
docker.enabled = true
docker.userEmulation = true
singularity.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
// Just for tracking that at least one option was selected
params.run_docker = true
params.run_conda = false
params.run_singularity = false
// Specify the container name
process {
withLabel: main {
container = params.docker_container
}
}
}
singularity {
singularity.enabled = true
singularity.autoMounts = true
docker.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
singularity.cacheDir = "$HOME/.singularity"
// Just for tracking that at least one option was selected
params.run_docker = false
params.run_conda = false
params.run_singularity = true
// Specify the container name
process {
withLabel: main {
container = params.docker_container
}
}
}
}
// todo: not sure about this - it's already somewhere else
// Load modules.config for DSL2 module specific options
//includeConfig 'conf/modules.config'
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NEXTFLOW TOWER SETTINGS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
tower {
enabled = false
accessToken = '<your token>'
workspaceId = '<your workspace id>'
}
manifest {
name = 'mpxv_nextflow'
author = 'Gupta, OConnell, Rowell, Sivakumar'
description = 'Nextflow workflow for annotation of viral and bacterial sequences and submission to NCBI databases'
mainScript = 'main.nf'
nextflowVersion = '>=20.07.1'
version = 'latest'
}