Debian Codegraph @

pbcommand/schemas/pbreport.avsc

raw
1 {
2 "namespace": "com.pacbio.common.models.reports",
3 "type": "record",
4 "name": "Report",
5 "doc": "PacBio Report data model. Except where specified all `id` values must be of the form [A-z][0-9]_ (e.g., `mapping_stats`)",
6 "fields": [
7 {
8 "name": "id",
9 "type": "string",
10 "doc": "Pbreports style id, must only have [A-z][0-9]_"
11 },
12 {
13 "name": "version",
14 "type": "string",
15 "doc": "Version of the Report Schema Spec"
16 },
17 {
18 "name": "uuid",
19 "type": "string",
20 "doc": "Report UUID"
21 },
22 {
23 "name": "title",
24 "type": ["string", "null"],
25 "default": null,
26 "doc": "Report Display name"
27 },
28 {
29 "name": "attributes",
30 "type": {
31 "type": "array",
32 "items": {
33 "type": "record",
34 "name": "ReportAttribute",
35 "fields": [
36 {
37 "doc": "Report Attribute id",
38 "name": "id",
39 "type": "string"
40 },
41 {
42 "doc": "Report Attribute display name",
43 "name": "name",
44 "type": "string"
45 },
46 {
47 "doc": "Report Attribute value",
48 "name": "value",
49 "type": [
50 "string",
51 "int",
52 "float"
53 ]
54 }
55 ]
56 }
57 }
58 },
59 {
60 "name": "plotGroups",
61 "type": {
62 "type": "array",
63 "items": {
64 "type": "record",
65 "name": "PlotGroup",
66 "fields": [
67 {
68 "doc": "Plot group Id",
69 "name": "id",
70 "type": "string"
71 },
72 {
73 "doc": "The display name of plot group",
74 "name": "title",
75 "type": "string"
76 },
77 {
78 "name": "legend",
79 "type": [
80 "string",
81 "null"
82 ],
83 "doc": "Not clear what the usecase is of this"
84 },
85 {
86 "doc": "Thumbnail image path for the entire PlotGroup",
87 "name": "thumbnail",
88 "type": [
89 "string",
90 "null"
91 ]
92 },
93 {
94 "doc": "List of Plots",
95 "name": "plots",
96 "type": {
97 "type": "array",
98 "items": {
99 "doc": "PacBio Report Plot",
100 "type": "record",
101 "name": "ReportPlot",
102 "fields": [
103 {
104 "name": "id",
105 "type": "string",
106 "doc": "Plot Id"
107 },
108 {
109 "name": "image",
110 "type": "string",
111 "doc": "Png Path to Image (must be relative to the path of report.json file)"
112 },
113 {
114 "name": "title",
115 "type": ["string", "null"],
116 "doc": "Display Name of Plot"
117 },
118 {
119 "name": "caption",
120 "doc": "Caption of the Plot",
121 "type": [
122 "string",
123 "null"
124 ]
125 },
126 {
127 "name": "thumbnail",
128 "doc": "Relative path to thumbnail of the Plot (must be relative to the path of report.json file)",
129 "type": [
130 "string",
131 "null"
132 ]
133 },
134 {
135 "name": "plotType",
136 "doc": "Specifies plot type, either `image` or `plotly`",
137 "type": ["string", "null"],
138 "default": "image"
139 },
140 {
141 "name": "plotlyVersion",
142 "doc": "Version of plotly.js used, if type=plotly",
143 "type": ["string", "null"]
144 }
145 ]
146 }
147 }
148 }
149 ]
150 }
151 }
152 },
153 {
154 "name": "tables",
155 "type": {
156 "type": "array",
157 "items": {
158 "type": "record",
159 "name": "ReportTable",
160 "fields": [
161 {
162 "doc": "Report Table Id",
163 "name": "id",
164 "type": "string"
165 },
166 {
167 "name": "title",
168 "type": "string",
169 "doc": "Display name of the Table"
170 },
171 {
172 "name": "columns",
173 "doc": "List of Columns",
174 "type": {
175 "type": "array",
176 "items": {
177 "type": "record",
178 "name": "ReportTableColumn",
179 "fields": [
180 {
181 "doc": "Unique id of column (must be report id format style)",
182 "name": "id",
183 "type": "string"
184 },
185 {
186 "doc": "Display name of Column",
187 "name": "header",
188 "type": "string"
189 },
190 {
191 "name": "value",
192 "_comment": "This is a quite unclear interface",
193 "doc": "Column values. Attention to mixed-types attempting to represent 'NA'",
194 "type": {
195 "type": "array",
196 "items": [
197 "int",
198 "float",
199 "string",
200 "null"
201 ]
202 }
203 }
204 ]
205 }
206 }
207 }
208 ]
209 }
210 }
211 }
212 ]
213 }