-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.config.json
126 lines (119 loc) · 4.4 KB
/
schema.config.json
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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions" : {
"simulation" : {
"type": "object",
"properties" : {
"schema_file_name" : {
"description" : "Location and name of the JSON schema file",
"type" : "string"
},
"total_steps" : {
"description" : "Length of simulation in days.",
"type" : "integer",
"minimum" : 0,
"exclusiveMinimum" : false,
"default" : "100"
},
"title" : {"type" : "string"},
"reports" : {
"description" : "Select from a list of available reports",
"type" : "object",
"properties" : {
"whd_daily" : {"type" : "boolean"}
},
"required" : [
"whd_daily"
]
},
"batch_mode" : {
"description" : "In batch mode: live plots are disabled; cin.ignore() skipped.",
"type" : "boolean"
},
"export" : {
"description" : "Trigger an export from b_sys at the end of the simulation.",
"type" : "boolean",
"default" : false
}
},
"required" : [
"schema_file_name",
"total_steps",
"title",
"batch_mode"
]
},
"within_host" : {
"type": "object",
"properties" : {
"init_file" : {
"type" : "object",
"properties" : {
"use_old_format" : {"type" : "boolean"},
"name_old_format" : {"type" : "string"},
"name" : {"type" : "string"},
"delimiter" : {
"description" : "not implemented, tab always",
"type" : "string"
},
"use_age_column" : {"type" : "boolean"},
"ra_rate" : {
"description" : "rate of RA type infection",
"type" : "number",
"default" : 0.0,
"minimum" : 0.0,
"maximum" : 0.8,
"exclusiveMinimum" : false,
"exclusiveMaximum" : false
}
},
"required" : ["name", "delimiter"]
}
},
"required" : [
"init_file"
]
},
"drug" : {
"type" : "object",
"properties" : {
"failure_if_clinical_on_day" : {
"description" : "Drug failure is recorded if the host is clinical on this number of days after drug given.",
"type" : "integer",
"default" : 28,
"minimum" : 1,
"exclusiveMinimum" : false
},
"drug_b_resistance" : {
"description" : "Drug B efficacy multiplier for RB",
"type" : "number",
"default" : 0.5,
"minimum" : 0.0,
"maximum" : 1.0,
"exclusiveMinimum" : false,
"exclusiveMaximum" : false
},
"drug_ab_resistance" : {
"description" : "Drug AB efficacy multiplier for RB",
"type" : "number",
"default" : 0.9,
"minimum" : 0.0,
"maximum" : 1.0,
"exclusiveMinimum" : false,
"exclusiveMaximum" : false
}
},
"required" : ["failure_if_clinical_on_day"]
}
},
"type" : "object",
"properties": {
"simulation" : {"$ref" : "#/definitions/simulation"},
"within_host" : {"$ref" : "#/definitions/within_host"},
"drug" : {"$ref" : "#/definitions/drug"}
},
"required" : [
"simulation",
"within_host",
"drug" ]
}