-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmetadata_redo.avdl
409 lines (313 loc) · 11.8 KB
/
metadata_redo.avdl
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
@namespace("org.ga4gh.models")
/**
This protocol defines metadata used in the other GA4GH protocols.
[EAGLE: Needs a fuller description of the document in the header. What are the "other protocols"? Metadata for what?]
*/
protocol Metadata {
import idl "common.avdl";
/**
Observations are single measurements, which can be described through their type, value and unit,
as well as an associated dateTime value. This could be numerical values with a unit, or
observations defined through ontologies.
*/
record Observation {
string type;
/**
[EAGLE: Observation.type - suggest union { OntologyTerm.id, string } to encourage Ontology terms, e.g. EFO_0004324, body height
add an example of a measurement, e.g. body height, body weight, smoking behaviour.]
*/
string value;
/**
The unit of the observation; e.g. for numeric values.
*/
union { null, string } unit = null;
/**
Date the observation was made/assigned (e.g. date of diagnosis, observation of phenotype...).
Suitable e.g. for health related purposes, epidemiology, experimental setups (time series) ...
Format: ISO 8601, YYYY-MM-DDTHH:MM:SS (e.g. 2015-02-10T00:03:42Z)
*/
union { null, timestamp-millis } dateTimeObserved = null;
/**
Age at time of the observation (e.g. diagnosis, observation of phenotype...).
This is highly relevant in the human context and usually the primary available time related
parameter available.
TODO: Unit? Years would be natural in human context.
*/
union { null, timestamp-millis } ageObserved = null;
}
/**
A geolocation object, formatted as GeoJSON.
This simplified implementation supports the basic geometries
of which "Point" and "Polygon" should represent the most likely
use cases here (e.g. for description of a sample's provenience).
See also http://geojson.org/geojson-spec.html.
*/
record GeoLoc {
string type;
array<float> coordinates = [];
}
/**
An individual (or subject) typically corresponds to an individual
human or other organism.
*/
record Individual {
/**
The individual UUID. This is globally unique.
The recommendation is to use an anonymous UUID type with extremely low collision probability.
The typical implementation would be UUIDv4.
This has to be provided by the implementation.
*/
string id;
/**
The IDs of the different "ga4gh.Group"s this individual belongs to.
Implementation dependent there may be the preference to keep the ids of "ga4gh.Individual",
"ga4gh.Sample" and so on inside the "ga4gh.Group" objects.
*/
array<string> memberOf = [];
/**
The IDs of "upstream" records of which this ga4ghObject is derived from. Examples for an annotated
record of type "experiment" would be e.g. UUIDs of the individual and sample type records it was
based on. Probably does not apply the "Individual" record type (use "memberOf" instead for families
etc.).
Together with creation time stamps, this can also be part of a versioning concept where records of
the same type point towards their history.
TODO: Alternatively use a "sameAs" attribute for records describing the same object w/ edits.
*/
array<string> derivedFrom = [];
/**
The IDs of "downstream" objects of which derive from this ga4ghObject. Examples for an annotated
object of type "individual" would be e.g. UUIDs of "sample" and "experiment" type objects.
*/
array<string> parentOf = [];
/**
The name of the individual.
This is for information purposes only and not expected to be used for identification purposes
or to be exposed at all across repositories. Also, no format is imposed though the recommendation
would be natural English language based - FirstName (middle components)? LastName.
*/
union { null, string } name = null;
/**
For information purposes only. An optional, free text description of the individual.
*/
union { null, string } description = null;
/**
The time at which this individual's record was created.
Format: ISO 8601, YYYY-MM-DDTHH:MM:SS.SSS (e.g. 2015-02-10T00:03:42.123Z)
*/
union { null, timestamp-millis } recordCreated = null;
/**
The time at which this individual's record was last updated.
Format: ISO 8601, YYYY-MM-DDTHH:MM:SS.SSS (e.g. 2015-02-10T00:03:42.123Z)
*/
union { null, timestamp-millis } recordUpdated = null;
/**
The species of this individual. Using
[NCBI taxonomy](http://www.ncbi.nlm.nih.gov/taxonomy) is recommended.
For a representation of an NCBI Taxon ID as an OntologyTerm, see
[NCBITaxon Ontology](http://www.obofoundry.org/wiki/index.php/NCBITaxon:Main_Page).
For example, 'Homo sapiens' has the ID 9606. The NCBITaxon ontology ID for this is
NCBITaxon:9606, which has the URI http://purl.obolibrary.org/obo/NCBITaxon_9606
*/
union { null, OntologyTerm } species = null;
/**
The genetic sex of this individual.
*/
+ union { null, OntologyTerm } sex = null;
/**
The developmental stage of this individual. Using Uberon is recommended.
*/
union { null, OntologyTerm } developmentalStage = null;
/**
The date of birth of this individual as ISO 8601, YYYY-MM-DD format (e.g. 2008-08-18).
The date may be fuzzed for privacy reasons.
*/
union { null, date } dateOfBirth = null;
/**
Diseases with which the individual has been diagnosed.
TODO: Usage disorders or diseases ...
*/
array<OntologyTerm> disorders = [];
/**
Phenotypes for this individual.
*/
array<OntologyTerm> phenotypes = [];
/**
Observation/measurements for this individual.
*/
array<Observation> observations = [];
/**
Procedures for this individual.
Examples could be cell line treatments (e.g. drug exposure with time series information), or
medical procedures performed on an individual.
TODO: Explore ontologies for this.
*/
array<OntologyTerm> procedures = [];
/**
The strain of this individual, for non-humans.
*/
union { null, OntologyTerm } strain = null;
/**
A map of additional individual information.
*/
map<array<string>> info = {};
[EAGLE: suggestion of further fields for this record: ethnicity, date of death, address?]
[EAGLE: Possibly abstract to a “Characteristics” type, similar to ‘Observation’? That would make the model more flexible and encourage the use of ontology terms, e.g. EFO for sex.]
[EAGLE: Data in this section (name and data of birth) require considerations with regards to the confidentiality and integrity of ePHI (electronic Personal Health Information) in transit. Overlap with the security working group here.]
}
/**
A biological sample used in an experiment. (e.g. whole blood from
an affected individual)
Only attributes occurring first at this object level are annotated (with the exception of the
required ones).
*/
record Sample {
string id;
array<string> derivedFrom = [];
array<string> parentOf = [];
array<string> memberOf = [];
/**
Public identifiers for this sample. These could be database specific ids (think GEO "GSM12345")
or stable links.
*/
array<string> accessions = [];
union { null, string } name = null;
union { null, string } description = null;
union { null, timestamp-millis } recordCreated = null;
union { null, timestamp-millis } recordUpdated = null;
/**
The time at which this sample was taken.
Format: ISO 8601, YYYY-MM-DDTHH:MM:SS (e.g. 2015-02-10T00:03:42Z)
*/
union { null, timestamp-millis } samplingDateTime = null;
/**
The age of the individual (not of the sample) at time of sample collection.
This field may be approximate.
TODO: Unit? Years would be natural in human context.
*/
union { null, long } ageAtSampling = null;
/**
The cell type of this sample.
Using the [Cell Ontology](http://cellontology.org/) (CL) is recommended. See
*/
union { null, OntologyTerm } cellType = null;
/**
The cell line of this sample.
Using the [Cell Line Ontology](https://code.google.com/p/clo-ontology/) is a possibility.
TODO: discuss further. Other possibilities: Cellosaurus (nextprot), BRENDA/BTO, EFO (EBI)
*/
union { null, OntologyTerm } cellLine = null;
union { null, GeoLoc } geoloc = null;
/**
A descriptor of the sample type. (e.g. `frozen tissue`)
*/
union { null, string } sampleType = null;
/**
The anatomical part of the individual from which this sample derives.
Using [Uberon](http://uberon.org) is recommended.
*/
union { null, OntologyTerm } organismPart = null;
array<Observation> observations = [];
map<array<string>> info = {};
}
/**
An experimental preparation of a `Sample`.
TODO: Either we make this "sequencingExperiment", or we exclude technology specific attribute names.
There are many attributes which are specific to the current way to do genome analysis (e.g.
"platformUnit").
*/
record Experiment {
string id;
union { null, string } name = null;
union { null, string } description = null;
union { null, timestamp-millis } recordCreated = null;
union { null, timestamp-millis } recordUpdated = null;
/**
The time at which this experiment was performed.
Format: ISO 8601, YYYY-MM-DDTHH:MM:SS (e.g. 2015-02-10T00:03:42Z)
*/
union { null, timestamp-millis } runDate = null;
/**
The molecule examined in this experiment. (e.g. genomic DNA, total RNA)
*/
union { null, string } molecule = null;
/**
The experiment technique or strategy applied to the sample.
(e.g. whole genome sequencing, RNA-seq, RIP-seq)
*/
union { null, string } strategy = null;
/**
The method used to enrich the target. (e.g. immunoprecipitation, size
fractionation, RNase digestion)
*/
union { null, string } selection = null;
/**
The name of the library used as part of this experiment.
*/
union { null, string } library = null;
/** The configuration of sequenced reads. (e.g. Single or Paired) */
union { null, string } libraryLayout = null;
/**
The instrument model used as part of this experiment. This maps to sequencing technology in BAM.
*/
union { null, string } instrumentModel;
/**
The data file generated by the instrument.
TODO: This isn't actually a file is it? Should this be `instrumentData` instead?
*/
union { null, string } instrumentDataFile = null;
/**
The analysis center used as part of this experiment.
TODO: Again, specific for sequencing. Should be technology agnostic (who knows?).
*/
union { null, string } analysisCenter;
/**
The platform unit used as part of this experiment. This is a flowcell-barcode
or slide unique identifier.
TODO: Too specific?
*/
union { null, string } platformUnit = null;
array<Observation> observations = [];
map<array<string>> info = {};
}
/**
Represents a group of individuals. (e.g. a trio or a cohort).
*/
record IndividualGroup {
string id;
union { null, string } name = null;
union { null, string } description = null;
union { null, timestamp-millis } recordCreated = null;
union { null, timestamp-millis } recordUpdated = null;
/**
The type of individual group.
TODO: Rethink this; could be a simple label static vs. dynamic; but then one may have to provide
an attribute containing the parameters (e.g. a query).
*/
union { null, string } type = null;
array<string> derivedFrom = [];
map<array<string>> info = {};
}
/**
An analysis contains an interpretation of one or several experiments.
(e.g. SNVs, copy number variations, methylation status) together with
information about the methodology used.
*/
record Analysis {
string id;
union { null, string } name = null;
union { null, string } description = null;
union { null, timestamp-millis } recordCreated = null;
union { null, timestamp-millis } recordUpdated = null;
union { null, string } type = null;
/**
The software run to generate this analysis.
*/
array<string> software = null;
/**
A map of interpreted analysis data.
TODO: This is probably not the right format; has to be discussed.
*/
map<array<string>> results = {};
map<array<string>> info = {};
}
}