[13a70a]: / assets / schema_preprocessing.json

Download this file

73 lines (72 with data), 2.2 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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://example.com/schemas/schema_preprocessing.json",
"title": "nf-core/differentialabundance pipeline - params.data_preprocessing schema",
"description": "Schema for the file provided with params.data_preprocessing",
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"meta": ["id"]
},
"protocol": {
"type": "string",
"enum": ["ibis"],
"meta": ["protocol"]
},
"background_type": {
"type": "string",
"enum": ["aliens", "shade", "shuffle"],
"meta": ["background_type"]
},
"variable": {
"type": "string",
"meta": ["variable"]
},
"target": {
"type": "string",
"meta": ["target"]
},
"background": {
"type": "string",
"meta": ["background"],
"default": ""
},
"shade_args": {
"type": "string",
"meta": ["shade_args"],
"default": ""
}
},
"required": ["id", "protocol"],
"allOf": [
{
"if": {
"properties": { "protocol": { "const": "ibis" } }
},
"then": {
"required": ["background_type", "variable", "target"]
}
},
{
"if": {
"properties": { "background_type": { "const": "aliens" } }
},
"then": {
"required": ["background"]
}
},
{
"if": {
"properties": { "background_type": { "const": "shade" } }
},
"then": {
"required": ["shade_args"]
}
}
],
"additionalProperties": false
}
}