| 1 |
{ |
| 2 |
"namespace": "com.pacbio.common.models.reports", |
| 3 |
"type": "record", |
| 4 |
"name": "ReportSpec", |
| 5 |
"doc": "Specification and view rules for a single PacBio report.", |
| 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 corresponding to this spec" |
| 16 |
}, |
| 17 |
{ |
| 18 |
"name": "title", |
| 19 |
"type": "string", |
| 20 |
"doc": "Report display name" |
| 21 |
}, |
| 22 |
{ |
| 23 |
"name": "description", |
| 24 |
"type": ["string", "null"], |
| 25 |
"default": null, |
| 26 |
"doc": "Plain-English description of this report, suitable for documentation" |
| 27 |
}, |
| 28 |
{ |
| 29 |
"name": "isHidden", |
| 30 |
"type": ["boolean", "null"], |
| 31 |
"default": null, |
| 32 |
"doc": "Flag to hide the entire report" |
| 33 |
}, |
| 34 |
{ |
| 35 |
"name": "attributes", |
| 36 |
"type": { |
| 37 |
"type": "array", |
| 38 |
"items": { |
| 39 |
"type": "record", |
| 40 |
"name": "AttributeSpec", |
| 41 |
"fields": [ |
| 42 |
{ |
| 43 |
"name": "id", |
| 44 |
"doc": "Report attribute ID", |
| 45 |
"type": "string" |
| 46 |
}, |
| 47 |
{ |
| 48 |
"name": "name", |
| 49 |
"type": "string", |
| 50 |
"doc": "Report attribute display name" |
| 51 |
}, |
| 52 |
{ |
| 53 |
"name": "description", |
| 54 |
"type": ["string", "null"], |
| 55 |
"default": null, |
| 56 |
"doc": "Plain-English description of the attribute's meaning" |
| 57 |
}, |
| 58 |
{ |
| 59 |
"name": "type", |
| 60 |
"type": "string", |
| 61 |
"doc": "Expected type of the attribute value" |
| 62 |
}, |
| 63 |
{ |
| 64 |
"name": "format", |
| 65 |
"type": ["string", "null"], |
| 66 |
"default": null, |
| 67 |
"doc": "Format string to apply to the value in UI" |
| 68 |
}, |
| 69 |
{ |
| 70 |
"name": "isHidden", |
| 71 |
"type": ["boolean", "null"], |
| 72 |
"default": null, |
| 73 |
"doc": "Flag to hide this attribute" |
| 74 |
}, |
| 75 |
{ |
| 76 |
"name": "scale", |
| 77 |
"type": ["int", "float", "null"], |
| 78 |
"default": null, |
| 79 |
"doc": "Scale factor to be multiplied times numerical values" |
| 80 |
} |
| 81 |
] |
| 82 |
} |
| 83 |
} |
| 84 |
}, |
| 85 |
{ |
| 86 |
"name": "tables", |
| 87 |
"type": { |
| 88 |
"type": "array", |
| 89 |
"items": { |
| 90 |
"type": "record", |
| 91 |
"name": "TableSpec", |
| 92 |
"fields": [ |
| 93 |
{ |
| 94 |
"doc": "Report table Id", |
| 95 |
"name": "id", |
| 96 |
"type": "string" |
| 97 |
}, |
| 98 |
{ |
| 99 |
"name": "title", |
| 100 |
"type": "string", |
| 101 |
"doc": "Display name of the Table" |
| 102 |
}, |
| 103 |
{ |
| 104 |
"name": "description", |
| 105 |
"type": ["string", "null"], |
| 106 |
"default": null, |
| 107 |
"doc": "Plain-English description of the table" |
| 108 |
}, |
| 109 |
{ |
| 110 |
"name": "isHidden", |
| 111 |
"type": ["boolean", "null"], |
| 112 |
"default": null, |
| 113 |
"doc": "Flag to hide this table" |
| 114 |
}, |
| 115 |
{ |
| 116 |
"name": "columns", |
| 117 |
"doc": "List of Columns", |
| 118 |
"type": { |
| 119 |
"type": "array", |
| 120 |
"items": { |
| 121 |
"type": "record", |
| 122 |
"name": "TableColumnSpec", |
| 123 |
"fields": [ |
| 124 |
{ |
| 125 |
"doc": "Unique id of column (must be report id format style)", |
| 126 |
"name": "id", |
| 127 |
"type": "string" |
| 128 |
}, |
| 129 |
{ |
| 130 |
"name": "header", |
| 131 |
"type": "string", |
| 132 |
"doc": "Display name of Column" |
| 133 |
}, |
| 134 |
{ |
| 135 |
"name": "description", |
| 136 |
"type": ["string", "null"], |
| 137 |
"default": null, |
| 138 |
"doc": "Plain-English description of column" |
| 139 |
}, |
| 140 |
{ |
| 141 |
"name": "type", |
| 142 |
"type": "string", |
| 143 |
"doc": "Expected type of column values" |
| 144 |
}, |
| 145 |
{ |
| 146 |
"name": "format", |
| 147 |
"type": ["string", "null"], |
| 148 |
"default": null, |
| 149 |
"doc": "Format string to apply to values in the UI" |
| 150 |
}, |
| 151 |
{ |
| 152 |
"name": "isHidden", |
| 153 |
"type": ["boolean", "null"], |
| 154 |
"default": null, |
| 155 |
"doc": "Flag to hide this column" |
| 156 |
}, |
| 157 |
{ |
| 158 |
"name": "scale", |
| 159 |
"type": ["int", "float", "null"], |
| 160 |
"default": null, |
| 161 |
"doc": "Scale factor to be multiplied times numerical values" |
| 162 |
} |
| 163 |
] |
| 164 |
} |
| 165 |
} |
| 166 |
} |
| 167 |
] |
| 168 |
} |
| 169 |
} |
| 170 |
}, |
| 171 |
{ |
| 172 |
"name": "plotGroups", |
| 173 |
"type": { |
| 174 |
"type": "array", |
| 175 |
"items": { |
| 176 |
"type": "record", |
| 177 |
"name": "PlotGroupSpec", |
| 178 |
"fields": [ |
| 179 |
{ |
| 180 |
"name": "id", |
| 181 |
"type": "string", |
| 182 |
"doc": "Plot group ID" |
| 183 |
}, |
| 184 |
{ |
| 185 |
"name": "title", |
| 186 |
"type": "string", |
| 187 |
"doc": "Plot group title" |
| 188 |
}, |
| 189 |
{ |
| 190 |
"name": "legend", |
| 191 |
"type": ["string", "null"], |
| 192 |
"doc": "Not clear what the use case of this is", |
| 193 |
"default": null |
| 194 |
}, |
| 195 |
{ |
| 196 |
"name": "description", |
| 197 |
"type": ["string", "null"], |
| 198 |
"default": null, |
| 199 |
"doc": "Plain-English description" |
| 200 |
}, |
| 201 |
{ |
| 202 |
"doc": "List of Plots", |
| 203 |
"name": "plots", |
| 204 |
"type": { |
| 205 |
"type": "array", |
| 206 |
"items": { |
| 207 |
"doc": "PacBio Report Plot", |
| 208 |
"type": "record", |
| 209 |
"name": "PlotSpec", |
| 210 |
"fields": [ |
| 211 |
{ |
| 212 |
"name": "id", |
| 213 |
"type": "string", |
| 214 |
"doc": "Plot Id" |
| 215 |
}, |
| 216 |
{ |
| 217 |
"name": "title", |
| 218 |
"type": ["string", "null"], |
| 219 |
"doc": "Display Name of Plot" |
| 220 |
}, |
| 221 |
{ |
| 222 |
"name": "caption", |
| 223 |
"doc": "Caption of the Plot", |
| 224 |
"type": ["string", "null"], |
| 225 |
"default": null |
| 226 |
}, |
| 227 |
{ |
| 228 |
"name": "description", |
| 229 |
"type": ["string", "null"], |
| 230 |
"doc": "Plain-English description", |
| 231 |
"default": null |
| 232 |
}, |
| 233 |
{ |
| 234 |
"name": "xlabel", |
| 235 |
"type": ["string", "null"], |
| 236 |
"default": null, |
| 237 |
"doc": "X-axis label (optional)" |
| 238 |
}, |
| 239 |
{ |
| 240 |
"name": "ylabel", |
| 241 |
"type": ["string", "null"], |
| 242 |
"default": null, |
| 243 |
"doc": "Y-axis label (optional)" |
| 244 |
}, |
| 245 |
{ |
| 246 |
"name": "isHidden", |
| 247 |
"type": ["boolean", "null"], |
| 248 |
"default": null, |
| 249 |
"doc": "Flag to hide this plot" |
| 250 |
} |
| 251 |
] |
| 252 |
} |
| 253 |
} |
| 254 |
} |
| 255 |
] |
| 256 |
} |
| 257 |
} |
| 258 |
} |
| 259 |
] |
| 260 |
} |