|
a |
|
b/assets/schema_preprocessing.json |
|
|
1 |
{ |
|
|
2 |
"$schema": "https://json-schema.org/draft/2020-12/schema", |
|
|
3 |
"$id": "https://example.com/schemas/schema_preprocessing.json", |
|
|
4 |
"title": "nf-core/differentialabundance pipeline - params.data_preprocessing schema", |
|
|
5 |
"description": "Schema for the file provided with params.data_preprocessing", |
|
|
6 |
"type": "array", |
|
|
7 |
"items": { |
|
|
8 |
"type": "object", |
|
|
9 |
"properties": { |
|
|
10 |
"id": { |
|
|
11 |
"type": "string", |
|
|
12 |
"meta": ["id"] |
|
|
13 |
}, |
|
|
14 |
"protocol": { |
|
|
15 |
"type": "string", |
|
|
16 |
"enum": ["ibis"], |
|
|
17 |
"meta": ["protocol"] |
|
|
18 |
}, |
|
|
19 |
"background_type": { |
|
|
20 |
"type": "string", |
|
|
21 |
"enum": ["aliens", "shade", "shuffle"], |
|
|
22 |
"meta": ["background_type"] |
|
|
23 |
}, |
|
|
24 |
"variable": { |
|
|
25 |
"type": "string", |
|
|
26 |
"meta": ["variable"] |
|
|
27 |
}, |
|
|
28 |
"target": { |
|
|
29 |
"type": "string", |
|
|
30 |
"meta": ["target"] |
|
|
31 |
}, |
|
|
32 |
"background": { |
|
|
33 |
"type": "string", |
|
|
34 |
"meta": ["background"], |
|
|
35 |
"default": "" |
|
|
36 |
}, |
|
|
37 |
"shade_args": { |
|
|
38 |
"type": "string", |
|
|
39 |
"meta": ["shade_args"], |
|
|
40 |
"default": "" |
|
|
41 |
} |
|
|
42 |
}, |
|
|
43 |
"required": ["id", "protocol"], |
|
|
44 |
"allOf": [ |
|
|
45 |
{ |
|
|
46 |
"if": { |
|
|
47 |
"properties": { "protocol": { "const": "ibis" } } |
|
|
48 |
}, |
|
|
49 |
"then": { |
|
|
50 |
"required": ["background_type", "variable", "target"] |
|
|
51 |
} |
|
|
52 |
}, |
|
|
53 |
{ |
|
|
54 |
"if": { |
|
|
55 |
"properties": { "background_type": { "const": "aliens" } } |
|
|
56 |
}, |
|
|
57 |
"then": { |
|
|
58 |
"required": ["background"] |
|
|
59 |
} |
|
|
60 |
}, |
|
|
61 |
{ |
|
|
62 |
"if": { |
|
|
63 |
"properties": { "background_type": { "const": "shade" } } |
|
|
64 |
}, |
|
|
65 |
"then": { |
|
|
66 |
"required": ["shade_args"] |
|
|
67 |
} |
|
|
68 |
} |
|
|
69 |
], |
|
|
70 |
"additionalProperties": false |
|
|
71 |
} |
|
|
72 |
} |