forked from BU-ISCIII/relecov-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinitial_config-EQA2026.yaml
More file actions
351 lines (335 loc) · 10.3 KB
/
initial_config-EQA2026.yaml
File metadata and controls
351 lines (335 loc) · 10.3 KB
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
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
# THIS INITIAL CONFIG SHOULD BE SET AFTER INSTALLATION
# MAKE A COPY OF THIS FILE IN YOUR HOME AND CONFIGURE IT TO YOUR NEEDS
# THEN RUN: relecov-tools add-extra-config --config_file path/to/initial_config_copy.yaml
# IMPORTANT: Do not remove nor modify the required_conf keys unless you explicitly need to, that would surely break the code
# NOTE: Each key in 'modules_outpath' must match with a Command as listed with `relecov-tools --help` (but with '_' instead of '-')
# required_conf lists will be merged with the ones in configuration.json without override, keeping the sum of both
required_conf: ['generic', 'pipeline_manager', 'sftp_handle', 'read_lab_metadata', 'upload_to_gisaid', 'upload_to_ena', 'update_db', 'build_schema', 'download', 'logs_to_excel', 'mail_sender', 'map', 'metadata_homogeneizer', 'read_bioinfo_metadata', 'upload_results', 'validate', 'wrapper']
generic:
required_conf: ["project_name", "json_schemas", "logs_config", "validate_config"]
# Keep in mind that a required field missing or equal to "" will raise a validation error
project_name: "EQA2026"
logs_config:
default_outpath: /tmp/
modules_outpath:
wrapper: /tmp/wrapper
download: /tmp/download
pipeline_manager: /tmp/pipeline_manager
read_bioinfo_metadata: /tmp/read_bioinfo_metadata
json_schemas:
relecov_schema: relecov_schema_EQA.json
validate_config:
sample_id_ontology: "GENEPIO:0001123"
# CONFIG FOR MODULE PARAMETERS
mail_sender:
required_conf: ["args"]
# args can be used to set default values for the modules, can be overriden via CLI
args:
delivery_template_path_file: /path/templates/
email_host: host
email_port: port
email_host_user: email@gmail.com
email_use_tls: true
yaml_cred_path: /path/credentials.yml
institutions_guide_path: /path/contacts.json
download:
required_conf: ["args"]
args:
user: ''
password: ''
conf_file: ''
download_option: ''
output_dir: ''
target_folders: []
subfolder: RELECOV
read_lab_metadata:
required_conf: ["args", "unique_sample_id", "metadata_lab_heading_file", "alt_heading_equivalences", "lab_metadata_req_json", "samples_json_fields"]
args:
metadata_file: ''
sample_list_file: ''
output_dir: ''
files_folder: ''
cast_values_from_schema: true
sample_data_map_field: collecting_lab_sample_id
schema_file: relecov_schema_EQA.json
metadata_lab_heading_file: read_lab_metadata_heading_default.json
alt_heading_equivalences:
Sample ID: Sample ID given for sequencing
LAB ID: Originating Laboratory
"Sequencing date Formato: YYYY-MM-DD": Sequencing Date
Commercial All-in-one library kit: Commercial All-in-one library kit
'Library preparation kit ': Library Preparation Kit
Enrichment protocol: Enrichment Protocol
if enrichment protocol is Other, specify: If Enrichment Protocol Is Other, Specify
Amplicon protocol: Enrichment panel/assay
if enrichment panel/assay is Other, specify: If Enrichment panel/assay Is Other, Specify
Amplicon version: Enrichment panel/assay version
Number Of Samples In Run: Number Of Samples In Run
Number of variants with effect (missense, frameshit, stop codon): Number of variants with effect
Sequencing platforms (Illumina, Nanopore, IonTorrent, PacBio, other): Sequencing Instrument Model
Variant designation table filename: Lineage analysis file
Library preparation kit: Library Preparation Kit
Library layout: Library Layout
Read lenght: Read length
SARS-CoV-2 Lineage designation: Lineage designation
fastq filename R1: Sequence file R1 fastq
fastq filename R2: Sequence file R2 fastq
lab_metadata_req_json: {}
json_enrich:
on_missing_schema_field: warn
force_submitting_institution_id_from_lab_code: false
required_copy_from_other_field: {}
samples_json_fields:
- sequence_file_R1_md5
- sequence_file_R2_md5
- sequence_file_R1
- sequence_file_R2
- sequence_file_path_R1
- sequence_file_path_R2
- batch_id
validate:
required_conf: ["args"]
args:
json_file: ''
json_schema_file: ''
metadata: ''
output_dir: ''
excel_sheet: ''
upload_files: false
logsum_file: ''
map:
required_conf: ["args"]
args:
destination_schema: ''
json_file: ''
origin_schema: ''
output_dir: ''
schema_file: ''
upload_to_ena:
required_conf: ["args", "ENA_configuration", "checklist", "ena_fixed_fields", "additional_formating"]
args:
user: ''
password: ''
center: ''
ena_json: ''
template_path: ''
action: ADD
dev: false
upload_fastq: false
metadata_types: []
output_dir: ''
ENA_configuration:
study_alias: RELECOV
design_description: Design Description
experiment_title: Project for ENA submission RELECOV
study_title: RELECOV Spanish Network for genomics surveillance
study_type: Whole Genome Sequencing
study_id: ERP137164
ena_broker_name: Instituto de Salud Carlos III
checklist: ERC000033
ena_fixed_fields:
broker_name: Instituto de Salud Carlos III
file_format: FASTQ
study_alias: RELECOV
study_title: RELECOV Spanish Network for genomics surveillance
study_abstract: RELECOV is a Spanish Network for genomics surveillance
insert_size: '0'
additional_formating:
sample_description:
- host_common_name
- anatomical_part
- collection_method
design_description:
- library_layout
- library_preparation_kit
- library_selection
- library_strategy
sequence_file_path_R1:
- sequence_file_path_R1
- sequence_file_R1
sequence_file_path_R2:
- sequence_file_path_R2
- sequence_file_R2
experiment_alias:
- isolate_sample_id
- sample_collection_date
run_alias:
- isolate_sample_id
- sample_collection_date
experiment_title:
- sequencing_instrument_model
- isolate_sample_id
file_name:
- sequence_file_R1
- sequence_file_R2
file_checksum:
- sequence_file_R1_md5
- sequence_file_R2_md5
upload_to_gisaid:
required_conf: ["args"]
args:
user: ''
password: ''
client_id: ''
token: ''
gisaid_json: ''
input_path: ''
output_dir: ''
frameshift: ''
proxy_config: ''
single: false
gzip: false
GISAID_configuration:
submitter: GISAID_ID
update_db:
required_conf: ["args", "platform-params", "iskylims_fixed_values", "relecov_sample_metadata"]
args:
user: ''
password: ''
json: ''
type: ''
platform: ''
server_url: ''
full_update: false
long_table: ''
platform-params:
iskylims:
server_url: http://relecov-iskylims.isciiides.es
api_url: /wetlab/api/
store_samples: create-sample
url_project_fields: projects-fields
url_sample_fields: sample-fields
param_sample_project: project
project_name: relecov
token: ''
relecov:
server_url: http://relecov-platform.isciiides.es
api_url: /api/
store_samples: createSampleData
bioinfodata: createBioinfoData
variantdata: createVariantData
check_sample: checkSampleExists
sftp_info: sftpInfo
token: ''
iskylims_fixed_values:
patient_core: ''
sample_project: Relecov
only_recorded: 'Yes'
sample_location: Not defined
relecov_sample_metadata:
- authors
- collecting_institution
- collecting_institution_code_1
- collecting_lab_sample_id
- ena_broker_name
- ena_sample_accession
- gisaid_accession_id
- gisaid_virus_name
- microbiology_lab_sample_id
- sequence_file_path_R1
- sequence_file_path_R2
- schema_name
- schema_version
- sequencing_date
- sequence_file_R1_md5
- sequence_file_R2_md5
- sequence_file_R1
- sequence_file_R2
- sequencing_sample_id
- submitting_institution
- submitting_lab_sample_id
full_update_steps: [
{ "id": "1", "type": "sample", "platform": "iskylims" },
{ "id": "2", "type": "sample", "platform": "relecov" },
{ "id": "3", "type": "bioinfodata", "platform": "relecov" },
{ "id": "4", "type": "variantdata", "platform": "relecov" }
]
read_bioinfo_metadata:
required_conf: ["args"]
args:
json_file: ''
input_folder: ''
output_dir: ''
software_name: ''
update: false
metadata_homogeneizer:
required_conf: ["args"]
args:
institution: ''
directory: ''
output_dir: ''
pipeline_manager:
required_conf: ["args", "analysis_group", "analysis_user", "organism_config"]
args:
input: ''
templates_root: ''
output_dir: ''
folder_names: []
analysis_group: RLV
analysis_user: icasas_C
organism_config:
Severe acute respiratory syndrome coronavirus 2 [LOINC:LA31065-8]:
pipeline_template: viralrecon
service_tag: SARSCOV2
group_by_fields:
- sequencing_instrument_platform
- enrichment_panel
- enrichment_panel_version
Respiratory syncytial virus [SNOMED:6415009]:
pipeline_template: IRMA
service_tag: GENOMERSV
group_by_fields:
- sequencing_instrument_platform
- enrichment_panel
- enrichment_panel_version
Influenza virus [SNOMED:725894000]:
pipeline_templates:
- IRMA
- taxprofiler
service_tag: GENOMEFLU
group_by_fields:
- sequencing_instrument_platform
build_schema:
required_conf: ["args"]
args:
input_file: ''
schema_base: ''
draft_version: ''
diff: false
version: ''
project: ''
non_interactive: false
output_dir: ''
logs_to_excel:
required_conf: ["args"]
args:
lab_code: ''
output_dir: ''
files: []
wrapper:
required_conf: ["args"]
args:
output_dir: ''
upload_results:
required_conf: ["args"]
args:
user: ''
password: ''
batch_id: ''
template_path: ''
project: Relecov
sftp_handle:
required_conf: ["sftp_connection", "platform_storage_folder", "analysis_results_folder", "metadata_processing"]
sftp_connection:
sftp_server: sftpgenvigies.isciii.es
sftp_port: '22'
platform_storage_folder: /tmp/relecov
analysis_results_folder: ANALYSIS_RESULTS
metadata_processing:
required_conf: ["header_flag", "excel_sheet", "sample_id_col"]
header_flag: CAMPO
excel_sheet: METADATA_LAB
alternative_sheet: 5.Viral Characterisation and Se
alternative_flag: CAMPO
sample_id_col: Sample ID given by originating laboratory
alternative_sample_id_col: Sample ID given by originating laboratory