AdvancedAnalysisFileParser 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. AdvancedAnalysisFileParser/AdvancedAnalysisConstants.py +9 -0
  2. AdvancedAnalysisFileParser/AdvancedAnalysisParser.py +129 -0
  3. AdvancedAnalysisFileParser/Models/ConditionOperator.py +9 -0
  4. AdvancedAnalysisFileParser/Models/FieldCondition.py +29 -0
  5. AdvancedAnalysisFileParser/Models/FieldWarningConfig.py +4 -0
  6. AdvancedAnalysisFileParser/Models/JsonDict.py +2 -0
  7. AdvancedAnalysisFileParser/Models/SectionConfig.py +8 -0
  8. AdvancedAnalysisFileParser/Models/__init__.py +13 -0
  9. AdvancedAnalysisFileParser/Parsers/AdvancedAnalysisFileParserFactory.py +36 -0
  10. AdvancedAnalysisFileParser/Parsers/DragenTruSightOncology500TSVParser.py +102 -0
  11. AdvancedAnalysisFileParser/Parsers/IAdvancedAnalysisFileParser.py +86 -0
  12. AdvancedAnalysisFileParser/Parsers/JsonSectionParser.py +39 -0
  13. AdvancedAnalysisFileParser/Parsers/OneLineTsvParser.py +26 -0
  14. AdvancedAnalysisFileParser/Parsers/__init__.py +7 -0
  15. AdvancedAnalysisFileParser/README.md +570 -0
  16. AdvancedAnalysisFileParser/Test/TruSightOncology500.CombinedVariantOutput.tsv +1586 -0
  17. AdvancedAnalysisFileParser/Test/dragen424.targeted.json +202 -0
  18. AdvancedAnalysisFileParser/Test/dummy_gba_affected_nonrecomb_acn2.targeted.json +21 -0
  19. AdvancedAnalysisFileParser/Test/dummy_gba_carrier_one_recomb_only.targeted.json +14 -0
  20. AdvancedAnalysisFileParser/Test/dummy_gba_phase_unknown_one_recomb_plus_variant.targeted.json +21 -0
  21. AdvancedAnalysisFileParser/Test/dummy_warnset_1.targeted.json +132 -0
  22. AdvancedAnalysisFileParser/Test/dummy_warnset_2.targeted.json +145 -0
  23. AdvancedAnalysisFileParser/Test/dummy_warnset_3.targeted.json +146 -0
  24. AdvancedAnalysisFileParser/Test/gba.tsv +2 -0
  25. AdvancedAnalysisFileParser/Test/gba_carrier_1.json +96 -0
  26. AdvancedAnalysisFileParser/Test/gba_carrier_2.json +101 -0
  27. AdvancedAnalysisFileParser/Test/gba_multiple_phase_unknown_1.json +101 -0
  28. AdvancedAnalysisFileParser/Test/gba_multiple_phase_unknown_2.json +105 -0
  29. AdvancedAnalysisFileParser/Test/gba_positive_1.json +96 -0
  30. AdvancedAnalysisFileParser/Test/gba_positive_2.json +101 -0
  31. AdvancedAnalysisFileParser/Test/hba_carrier_1.json +96 -0
  32. AdvancedAnalysisFileParser/Test/hba_carrier_2.json +96 -0
  33. AdvancedAnalysisFileParser/Test/hba_carrier_3.json +96 -0
  34. AdvancedAnalysisFileParser/Test/hba_carrier_4.json +96 -0
  35. AdvancedAnalysisFileParser/Test/hba_hemoglobin_h_disease.json +96 -0
  36. AdvancedAnalysisFileParser/Test/hba_silent_carrier.json +96 -0
  37. AdvancedAnalysisFileParser/Test/smn.tsv +2 -0
  38. AdvancedAnalysisFileParser/Test/smn_carrier.json +96 -0
  39. AdvancedAnalysisFileParser/Test/smn_positive.json +96 -0
  40. AdvancedAnalysisFileParser/Test/smn_silent_carrier_risk.json +101 -0
  41. AdvancedAnalysisFileParser/Test_AdvancedAnalysisParser.py +342 -0
  42. AdvancedAnalysisFileParser/Warnings/CarrierPositiveWarning.py +18 -0
  43. AdvancedAnalysisFileParser/Warnings/ConditionWarning.py +20 -0
  44. AdvancedAnalysisFileParser/Warnings/GbaWarning.py +50 -0
  45. AdvancedAnalysisFileParser/Warnings/GenotypeWarning.py +22 -0
  46. AdvancedAnalysisFileParser/Warnings/IWarning.py +7 -0
  47. AdvancedAnalysisFileParser/Warnings/SmnWarning.py +29 -0
  48. AdvancedAnalysisFileParser/Warnings/WarningFactory.py +31 -0
  49. AdvancedAnalysisFileParser/Warnings/__init__.py +7 -0
  50. AdvancedAnalysisFileParser/__init__.py +18 -0
  51. AdvancedAnalysisFileParser/advConfig.json +96 -0
  52. AdvancedAnalysisFileParser/dragen_500_tsv_config.json +53 -0
  53. AdvancedAnalysisFileParser/gba_tsv_config.json +23 -0
  54. AdvancedAnalysisFileParser/run_test_parser.py +29 -0
  55. AdvancedAnalysisFileParser/smn_tsv_config.json +23 -0
  56. advancedanalysisfileparser-0.1.0.dist-info/METADATA +152 -0
  57. advancedanalysisfileparser-0.1.0.dist-info/RECORD +60 -0
  58. advancedanalysisfileparser-0.1.0.dist-info/WHEEL +5 -0
  59. advancedanalysisfileparser-0.1.0.dist-info/licenses/LICENSE +9 -0
  60. advancedanalysisfileparser-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,570 @@
1
+ 
2
+ # Advanced Analysis Parser
3
+
4
+ A Python package to parse Illumina-DRAGEN "special caller" outputs (TSV/JSON) into a unified JSON format, with automatic warnings based on user-defined or default conditions. Supports oncology, GBA, SMN, HBA, and more.
5
+
6
+ ---
7
+
8
+ ## Features
9
+
10
+ - Unified JSON output for multiple DRAGEN caller types (TSV/JSON)
11
+ - Automatic warnings for each file type, based on config or defaults
12
+ - Pluggable parser architecture for new file types
13
+ - CLI and Python API usage
14
+ - Example configs and test data included
15
+
16
+ ---
17
+
18
+ ## Installation
19
+
20
+ Install from PyPI (recommended):
21
+
22
+ ```bash
23
+ pip install AdvancedAnalysisFileParser
24
+ ```
25
+
26
+ Or from source:
27
+
28
+ ```bash
29
+ git clone https://github.com/geneyx/geneyx.analysis.api.git
30
+ cd geneyx.analysis.api/scripts/AdvancedAnalysisFileParser
31
+ pip install -e .
32
+ ```
33
+
34
+ ---
35
+
36
+ ## Quickstart
37
+
38
+ ### Python API Usage
39
+
40
+ ```python
41
+ from AdvancedAnalysisFileParser.AdvancedAnalysisParser import AdvancedAnalysisParser
42
+
43
+ request = {
44
+ "input_dir": "./Test",
45
+ "output_dir": "./Test",
46
+ "output_json": "adv_output.json",
47
+ # Optionally, you can specify input_files or map_files for custom configs
48
+ }
49
+ parser = AdvancedAnalysisParser(request)
50
+ parser.run() # writes output to adv_output.json
51
+
52
+ # Or get result as dict:
53
+ result = parser.run(return_dict=True)
54
+ print(result)
55
+ ```
56
+
57
+ ### Command-Line Usage
58
+
59
+ Create a config file (e.g. `config.json`):
60
+
61
+ ```json
62
+ {
63
+ "input_dir": "./Test",
64
+ "output_dir": "./Test",
65
+ "output_json": "adv_output.json"
66
+ }
67
+ ```
68
+
69
+ Then run:
70
+
71
+ ```bash
72
+ python -m AdvancedAnalysisFileParser.AdvancedAnalysisParser -c config.json
73
+ ```
74
+
75
+ ---
76
+
77
+ ## Configuration
78
+
79
+ The parser uses config files (JSON) to define how to parse and warn for each file type. Default configs are provided for:
80
+
81
+ - GBA: `gba_tsv_config.json`
82
+ - SMN: `smn_tsv_config.json`
83
+ - Oncology: `dragen_500_tsv_config.json`
84
+ - JSON: `advConfig.json`
85
+
86
+ You can override or extend these by providing your own config in the `map_files` key of the request.
87
+
88
+ ### Example request/config structure
89
+
90
+ | Key | Type | Description |
91
+ | ------------- | ------ | --------------------------------------------------------------------- |
92
+ | `output_json` | string | Filename for the generated JSON (default: `adv_analysis_output.json`) |
93
+ | `input_dir` | string | Directory containing all input files |
94
+ | `input_files` | list | (Optional) List of files to parse |
95
+ | `map_files` | object | (Optional) Mapping of filenames → caller definitions |
96
+
97
+ ---
98
+
99
+ ## Warnings
100
+
101
+ Warnings are generated automatically for each caller/file type, based on the config. Each config defines conditions for warnings (see `*_config.json` files for examples). You can customize these for your use case.
102
+
103
+ ---
104
+
105
+ ## Testing
106
+
107
+ Run the test suite to validate all parsing and warning logic:
108
+
109
+ ```bash
110
+ pytest AdvancedAnalysisFileParser/Test_AdvancedAnalysisParser.py
111
+ ```
112
+
113
+ Or run the test script:
114
+
115
+ ```bash
116
+ python AdvancedAnalysisFileParser/run_test_parser.py
117
+ ```
118
+
119
+ ---
120
+
121
+ ## Example Data
122
+
123
+ See the `Test/` folder for example input files (TSV/JSON) and expected outputs.
124
+
125
+ ---
126
+
127
+ ## License
128
+
129
+ MIT
130
+
131
+ # Build your JSON request (see next section for details)
132
+ request: JsonDict = {
133
+ "output_json": "out.json",
134
+ "input_dir": "path/to/input",
135
+ "map_files": {
136
+ "MyCallerOutput.tsv": {
137
+ "MY_CALLER": {
138
+ "caller_name": "My Caller",
139
+ "fields": { ... },
140
+ }
141
+ }
142
+ }
143
+ }
144
+
145
+ parser = AdvancedAnalysisParser(request)
146
+ result = parser.run(return_dict=True)
147
+ print(result)
148
+ ```
149
+
150
+ ### Command-Line Usage
151
+
152
+ 1. Create a config file, e.g. `config.json` (see below).
153
+ 2. Run:
154
+
155
+ ```bash
156
+ python -m AdvancedAnalysisFileParser.AdvancedAnalysisParser --input-dir <input_dir> --output-dir <output_dir> --input-files <file1> <file2> --output-json <output_json>
157
+ ```
158
+
159
+ Or with a config file:
160
+
161
+ ```bash
162
+ python -m AdvancedAnalysisFileParser.AdvancedAnalysisParser -c config.json
163
+ ```
164
+
165
+ You can override config values with CLI arguments for flexible context modification.
166
+
167
+ This will write the unified JSON to `output_json` under `output_dir`.
168
+
169
+ ---
170
+
171
+ ## Configuration JSON
172
+
173
+ Top‐level JSON must include:
174
+
175
+ | Key | Type | Description |
176
+ | ------------- | ------ | --------------------------------------------------------------------- |
177
+ | `output_json` | string | Filename for the generated JSON (default: `adv_analysis_output.json`) |
178
+ | `input_dir` | string | Directory containing all input files |
179
+ | `map_files` | object | Mapping of filenames → caller definitions |
180
+
181
+ ### `map_files` Structure
182
+
183
+ ```jsonc
184
+ "map_files": {
185
+ "<filename.tsv|.json>": {
186
+ "<CALLER_KEY>": {
187
+ "caller_name": "<Human-readable name>",
188
+
189
+ // Option A: per-field warnings
190
+ "fields": {
191
+ "<FieldName>": {
192
+ "Warning": {
193
+ "type": "condition",
194
+ "conditions": [
195
+ {
196
+ "operator": "GT",
197
+ "value": 10,
198
+ "message": "Value > 10"
199
+ }
200
+ ]
201
+ }
202
+ }
203
+ }
204
+
205
+ // Option B: whole-caller warning (no "fields" key)
206
+ "Warning": {
207
+ "type": "condition",
208
+ "conditions": [ ... ]
209
+ }
210
+ },
211
+ /* repeat for other callers in the same file */
212
+ }
213
+ }
214
+ ```
215
+
216
+ #### TSV Caller Example (MSI/TMB/GIS)
217
+
218
+ ```json
219
+ {
220
+ "TruSightOncology500\\sample__CombinedVariantOutput.tsv": {
221
+ "MSI": {
222
+ "caller_name": "Percent Unstable MSI Sites",
223
+ "fields": {
224
+ "Usable MSI Sites": {
225
+ "Warning": {
226
+ "type": "condition",
227
+ "conditions": [
228
+ { "operator": "GT", "value": 10, "message": "MSI>10 detected" }
229
+ ]
230
+ }
231
+ }
232
+ }
233
+ },
234
+ "TMB": {
235
+ "caller_name": "Total TMB",
236
+ "fields": {
237
+ "Total TMB": {
238
+ "Warning": {
239
+ "type": "condition",
240
+ "conditions": [
241
+ { "operator": "GT", "value": 10, "message": "TMB>10 detected" }
242
+ ]
243
+ }
244
+ }
245
+ }
246
+ },
247
+ "GIS": {
248
+ "caller_name": "Genomic Instability Score",
249
+ "fields": {
250
+ "Genomic Instability Score": {
251
+ "Warning": {
252
+ "type": "condition",
253
+ "conditions": [
254
+ { "operator": "GT", "value": 42, "message": "GIS>42 detected" }
255
+ ]
256
+ }
257
+ }
258
+ }
259
+ }
260
+ }
261
+ }
262
+ ```
263
+
264
+ #### Boolean-Flag Caller Example (GBA/SMN)
265
+
266
+ ```json
267
+ {
268
+ "SRR1289…gba.tsv": {
269
+ "GBA": {
270
+ "caller_name": "GBA Special Caller",
271
+ "Warning": {
272
+ "type": "condition",
273
+ "disease_name": "Gaucher disease",
274
+ "conditions": [
275
+ {
276
+ "field": "is_carrier",
277
+ "operator": "EQ",
278
+ "value": true,
279
+ "message": "Based on the GBA Caller, this sample is positive for Gaucher disease"
280
+ },
281
+ {
282
+ "field": "is_biallelic",
283
+ "operator": "EQ",
284
+ "value": true,
285
+ "message": "Based on the GBA Caller, this sample is positive for Gaucher disease"
286
+ }
287
+ ]
288
+ }
289
+ }
290
+ }
291
+ }
292
+ ```
293
+
294
+ #### Genotype-Mapping Example (HBA)
295
+
296
+ ```json
297
+ {
298
+ "…targeted.json": {
299
+ "hba": {
300
+ "caller_name": "HBA Special Caller",
301
+ "Warning": {
302
+ "type": "genotype",
303
+ "phenotypeGenotypeMapping": {
304
+ "silent carrier": [
305
+ "-a3.7/aa", "-a4.2/aa"
306
+ ],
307
+ "carrier": [
308
+ "--/aaa3.7", "--/aaa4.2"
309
+ ],
310
+ "positive for hemoglobin H disease": [
311
+ "--/-a3.7","--/-a4.2"
312
+ ]
313
+ }
314
+ }
315
+ }
316
+ }
317
+ }
318
+ ```
319
+
320
+ ---
321
+
322
+ ## Warning Types
323
+
324
+ ### `condition`
325
+
326
+ * Evaluates one or more **FieldCondition** entries
327
+ * Each condition must specify:
328
+
329
+ * `field` (optional for per-field; required for whole-caller)
330
+ * `operator`: one of `EQ`, `NE`, `GT`, `LT`, etc.
331
+ * `EQ`: Equals (`a == b`)
332
+ * `NE`: Not Equals (`a != b`)
333
+ * `GT`: Greater then (`a > b`)
334
+ * `LT`: Less then (`a < b`)
335
+ * `GE`: Greater then or equal (`a >= b`)
336
+ * `LE`: Less then or equal (`a <= b`)
337
+ * `CONTAINS`: Equals (`b in a`)
338
+ * `value`: comparison target
339
+ * `message`: text to emit if triggered
340
+
341
+ ### `genotype`
342
+
343
+ * Maps raw genotypes → phenotype labels
344
+ * First matching genotype string in `phenotypeGenotypeMapping` is used
345
+
346
+ ---
347
+
348
+ ## Running Tests
349
+
350
+ We use `pytest` and parametrize via in-memory JSON contexts.
351
+
352
+
353
+ Sample snippet from `tests/test_parser.py`:
354
+
355
+ ```python
356
+ import pytest
357
+ from AdvancedAnalysisFileParser import JsonDict, AdvancedAnalysisParser
358
+
359
+ TEST_CONTEXTS = [ { "request": { … }, "expected": { … } } ]
360
+
361
+ @pytest.mark.parametrize("context", TEST_CONTEXTS)
362
+ def test_parser_in_memory(context: JsonDict):
363
+ parser = AdvancedAnalysisParser(context["request"])
364
+ result = parser.run(return_dict=True)
365
+ assert result["MSI"]["warning"] == "MSI>10 detected"
366
+ # … more assertions …
367
+ ```
368
+
369
+ ---
370
+
371
+ ## AdvancedAnalysisFile Properties
372
+
373
+ | JSON Name | Type | Required? |
374
+ |-----------|------------------------------------|-----------|
375
+ | LPA | AdvancedAnalysis<LpaData> | No |
376
+ | SMN1 | AdvancedAnalysis<Smn1Data> | No |
377
+ | SMN | AdvancedAnalysis<SmnData> | No |
378
+ | HBA | AdvancedAnalysis<HbaData> | No |
379
+ | RH | AdvancedAnalysis<RhData> | No |
380
+ | CYP2D6 | AdvancedAnalysis<Cyp2bData> | No |
381
+ | CYP2B6 | AdvancedAnalysis<Cyp2bData> | No |
382
+ | CYP21A2 | AdvancedAnalysis<Cyp21a2Data> | No |
383
+ | GBA | AdvancedAnalysis<GbaData> | No |
384
+ | TMB | AdvancedAnalysis<TmbData> | No |
385
+ | GIS | AdvancedAnalysis<GisData> | No |
386
+ | MSI | AdvancedAnalysis<MsiData> | No |
387
+ | HRD | AdvancedAnalysis<HrdData> | No |
388
+
389
+ ---
390
+
391
+ ## Common Wrapper
392
+
393
+ ### AdvancedAnalysis<T>
394
+
395
+ | JSON Name | Type | Required? |
396
+ |-----------|----------|-----------|
397
+ | data | T | No |
398
+ | Warning | string | No |
399
+
400
+ ---
401
+
402
+ ## Data Models
403
+
404
+ ### LpaData
405
+
406
+ | JSON Name | Type | Required? |
407
+ |-----------------------------|--------------------|-----------|
408
+ | kiv2CopyNumber | double | Yes |
409
+ | refMarkerAlleleCopyNumber | double? | No |
410
+ | altMarkerAlleleCopyNumber | double? | No |
411
+ | type | LpaType | Yes |
412
+ | variants | List<Variant> | Yes |
413
+
414
+ ---
415
+
416
+ ### Smn1Data
417
+
418
+ | JSON Name | Type | Required? |
419
+ |----------------------|---------|-----------|
420
+ | #Sample | string | Yes |
421
+ | isSMA | bool | Yes |
422
+ | isCarrier | bool | Yes |
423
+ | SMN1_CN | double | No |
424
+ | SMN2_CN | double | No |
425
+ | SMN2delta7-8_CN | int | Yes |
426
+ | Total_CN_raw | double | Yes |
427
+ | Full_length_CN_raw | double | Yes |
428
+ | SMN1_CN_raw | string | Yes |
429
+
430
+ ---
431
+
432
+ ### SmnData
433
+
434
+ | JSON Name | Type | Required? |
435
+ |----------------------|-----------------|-----------|
436
+ | smn1CopyNumber | double? | Yes |
437
+ | smn2CopyNumber | double? | Yes |
438
+ | smn2Delta78CopyNumber| int | Yes |
439
+ | totalCopyNumber | double | Yes |
440
+ | fullLengthCopyNumber | double | No |
441
+ | variants | List<Variant> | Yes |
442
+
443
+ ---
444
+
445
+ ### HbaData
446
+
447
+ | JSON Name | Type | Required? |
448
+ |-------------------|-------------------|-----------|
449
+ | genotype | string | Yes |
450
+ | genotypeFilter | GenotypeFilter | Yes |
451
+ | genotypeQual | double | Yes |
452
+ | minPValue | double | Yes |
453
+ | variants | List<Variant> | Yes |
454
+
455
+ ---
456
+
457
+ ### RhData
458
+
459
+ | JSON Name | Type | Required? |
460
+ |------------------|-----------------|-----------|
461
+ | totalCopyNumber | int | Yes |
462
+ | rhdCopyNumber | int | Yes |
463
+ | rhceCopyNumber | int | Yes |
464
+ | variants | List<Variant> | Yes |
465
+
466
+ ---
467
+
468
+ ### Cyp2bData
469
+
470
+ | JSON Name | Type | Required? |
471
+ |-------------------------|------------------|-----------|
472
+ | genotype | string | Yes |
473
+ | genotypeFilter | GenotypeFilter | Yes |
474
+ | pharmcatDescription | string | No |
475
+ | pharmcatMetabolismStatus| string | No |
476
+
477
+ ---
478
+
479
+ ### Cyp21a2Data
480
+
481
+ | JSON Name | Type | Required? |
482
+ |--------------------------|-----------------|-----------|
483
+ | totalCopyNumber | int | Yes |
484
+ | deletionBreakpointInGene | bool? | No |
485
+ | recombinantHaplotypes | List<string> | No |
486
+ | variants | List<Variant> | Yes |
487
+
488
+ ---
489
+
490
+ ### GbaData
491
+
492
+ | JSON Name | Type | Required? |
493
+ |--------------------------------|---------|-----------|
494
+ | #Sample | string | Yes |
495
+ | is_biallelic | bool | Yes |
496
+ | is_carrier | bool | Yes |
497
+ | total_CN | int | Yes |
498
+ | deletion_breakpoint_in_GBA_gene| string | No |
499
+ | recombinant_variants | string | No |
500
+ | other_variants | string | No |
501
+
502
+ ---
503
+
504
+ ### TmbData
505
+
506
+ | JSON Name | Type | Required? |
507
+ |-------------|--------|-----------|
508
+ | Total TMB | double | Yes |
509
+
510
+ ---
511
+
512
+ ### GisData
513
+
514
+ | JSON Name | Type | Required? |
515
+ |--------------------------|---------|-----------|
516
+ | Genomic Instability Score| int | No |
517
+ | Tumor Fraction | double | No |
518
+ | Ploidy | double | No |
519
+
520
+ ---
521
+
522
+ ### MsiData
523
+
524
+ | JSON Name | Type | Required? |
525
+ |----------------------------|---------|-----------|
526
+ | Percent Unstable MSI Sites | double | Yes |
527
+
528
+ ---
529
+
530
+ ### HrdData
531
+
532
+ | JSON Name | Type | Required? |
533
+ |-------------|--------|-----------|
534
+ | HRD Score | int | Yes |
535
+
536
+ ---
537
+
538
+ ### Variant
539
+
540
+ | JSON Name | Type | Required? |
541
+ |----------------------|---------|-----------|
542
+ | hgvs | string | No |
543
+ | qual | double | No |
544
+ | altCopyNumber | int | No |
545
+ | altCopyNumberQuality | double | No |
546
+
547
+ ---
548
+
549
+ ## Contributing
550
+
551
+ 1. Fork
552
+ 2. Create feature branch
553
+ 3. Submit PR
554
+
555
+ Please follow existing style and add tests for new parser logic.
556
+ Bar Cohen
557
+
558
+ ### **Additional Help & Support**:
559
+ For any troubleshooting or questions, feel free to contact [support@geneyx.com](mailto:support@geneyx.com).
560
+
561
+ ## License
562
+
563
+ Copyright (c) 2025 GeneyX Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
564
+
565
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
566
+
567
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
568
+ ```
569
+
570
+