forked from ga4gh/ga4gh-schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmetadata.avdl
355 lines (286 loc) · 9.96 KB
/
metadata.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
@namespace("org.ga4gh.models")
/**
This protocol defines metadata used in the other GA4GH protocols.
*/
protocol Metadata {
import idl "common.avdl";
import idl "ontologies.avdl";
/**
An individual (or subject) typically corresponds to an individual
human or other organism.
*/
record Individual {
/** The individual UUID. This is globally unique. */
string id;
/** The IDs of the individual groups this individual belongs to. */
array<string> groupIds = [];
/** The name of the individual. */
union { null, string } name = null;
/** A description of the individual. */
union { null, string } description = null;
/**
The time at which this record was created.
Format: ISO 8601, YYYY-MM-DDTHH:MM:SS.SSS (e.g. 2015-02-10T00:03:42.123Z)
TODO: The format definition is temporary and will be updated to
the upcoming AVRO time format (timestamp-millis) when this is supported.
*/
string recordCreateTime;
/**
The time at which this record was last updated.
Format: ISO 8601, YYYY-MM-DDTHH:MM:SS.SSS (e.g. 2015-02-10T00:03:42.123Z)
*/
string recordUpdateTime;
/**
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. Use `null` when unknown. */
union { null, OntologyTerm } sex = null;
/**
The developmental stage of this individual. Using Uberon is recommended.
TODO: Add link to uberon
*/
union { null, OntologyTerm } developmentalStage = null;
/**
The date of birth of this individual. Usually would be coded to the day;
however, finer (e.g. animal model system) or more approximate (e.g. year
for clinical applications) granularity is possible.
Format: ISO 8601, YYYY-MM-DD (e.g. 1967-02-13)
*/
union { null, string } dateOfBirth = null;
/**
Diseases with which the individual has been diagnosed.
TODO: Is this the right representation?
*/
array<OntologyTerm> diseases = [];
/**
Phenotypes for this individual.
TODO: Is this the right representation?
*/
array<OntologyTerm> phenotypes = [];
/**
Disease area specific classification (e.g. classification of cancer samples
such as Dukes)
*/
union { null, string } stagingSystem = null;
/** A description of the clinical treatment used for this individual. */
union { null, string } clinicalTreatment = null;
/** The strain of this individual, for non-humans. */
union { null, string } strain = null;
/**
A map of additional individual information.
*/
map<array<string>> info = {};
}
/**
A biological sample used in an experiment. (e.g. whole blood from
an affected individual)
*/
record Sample {
/** The sample UUID. This is globally unique. */
string id;
/** The ID of the individual this sample belongs to. */
union { null, string } individualId = null;
/** Public identifiers for this sample. */
array<string> accessions = [];
/** The name of the sample. */
union { null, string } name = null;
/** A description of the sample. */
union { null, string } description = null;
/**
The time at which this record was created.
Format: ISO 8601, YYYY-MM-DDTHH:MM:SS.SSS (e.g. 2015-02-10T00:03:42.123Z)
*/
string recordCreateTime;
/**
The time at which this record was last updated.
Format: ISO 8601, YYYY-MM-DDTHH:MM:SS.SSS (e.g. 2015-02-10T00:03:42.123Z)
*/
string recordUpdateTime;
/**
The time at which this sample was taken from the individual.
Granularity here is variabel (e.g. only date would be common for
biopsies, minutes for in vitro time series).
Format: ISO 8601, YYYY-MM-DDTHH:MM:SS (e.g. 2015-02-10T00:03:42)
*/
union { null, string } samplingDate = null;
/**
The age of the individual (not of the sample) at time of sample collection.
This field may be approximate.
TODO: Fixed 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;
/**
Geographic coordinates from which the individual was obtained.
TODO: Figure out the right type for this field.
*/
union { null, string } geocode = null;
/** A descriptor of the sample type. (e.g. `frozen`) */
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;
/**
A map of additional sample information.
*/
map<array<string>> info = {};
}
/**
An experimental preparation of a `Sample`.
*/
record Experiment {
/** The experiment UUID. This is globally unique. */
string id;
/** The name of the experiment. */
union { null, string } name = null;
/** A description of the experiment. */
union { null, string } description = null;
/**
The time at which this record was created.
Format: ISO 8601, YYYY-MM-DDTHH:MM:SS.SSS (e.g. 2015-02-10T00:03:42.123Z)
*/
string recordCreateTime;
/**
The time at which this record was last updated.
Format: ISO 8601, YYYY-MM-DDTHH:MM:SS.SSS (e.g. 2015-02-10T00:03:42.123Z)
*/
string recordUpdateTime;
/**
The time at which this experiment was performed.
Granularity here is variabel (e.g. date only).
Format: ISO 8601, YYYY-MM-DDTHH:MM:SS (e.g. 2015-02-10T00:03:42)
*/
union { null, string } runTime = null;
/**
The molecule examined in this experiment. (e.g. genomics 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, MNase 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 sequencing center used as part of this experiment. */
union { null, string } sequencingCenter;
/**
The platform unit used as part of this experiment. This is a flowcell-barcode
or slide unique identifier.
*/
union { null, string } platformUnit = null;
/**
A map of additional experiment information.
*/
map<array<string>> info = {};
}
/**
Represents a group of contextually related data objects of (e.g. all Individuals, Samples,
Experiments associated with a particular feature; or e.g. a trio in genetic diagnostics.).
This concept may be expanded in the future (ontology for describing the type of dataset ...).
TODO: Determination of scope, structure, specific attributes, e.g. limiting to single
record type - see http://purl.obolibrary.org/obo/IAO_0000100 - and providing alternative mechanism
for heterogeneous data with external contextualization, e.g. all records of different
types associated with a clinical study.
*/
record Dataset {
/** The dataset UUID. This is globally unique. */
string id;
/** A description of the dataset. */
union { null, string } description = null;
}
/**
Represents a group of individuals. (e.g. a trio)
*/
record IndividualGroup {
/** The individual group UUID. This is globally unique. */
string id;
/** The name of the individual group. */
union { null, string } name = null;
/** A description of the individual group. */
union { null, string } description = null;
/**
The time at which this record was created.
Format: ISO 8601, YYYY-MM-DDTHH:MM:SS.SSS (e.g. 2015-02-10T00:03:42.123Z)
*/
string recordCreateTime;
/**
The time at which this record was last updated.
Format: ISO 8601, YYYY-MM-DDTHH:MM:SS.SSS (e.g. 2015-02-10T00:03:42.123Z)
*/
string recordUpdateTime;
/** The type of individual group. */
union { null, string } type = null;
/**
A map of additional individual group information.
*/
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 {
/** The analysis UUID. This is globally unique. */
string id;
/** The name of the analysis. */
union { null, string } name = null;
/** A description of the analysis. */
union { null, string } description = null;
/**
The time at which this record was created.
Format: ISO 8601, YYYY-MM-DDTHH:MM:SS.SSS (e.g. 2015-02-10T00:03:42.123Z)
*/
union { null, string } recordCreateTime = null;
/**
The time at which this record was last updated.
Format: ISO 8601, YYYY-MM-DDTHH:MM:SS.SSS (e.g. 2015-02-10T00:03:42.123Z)
*/
string recordUpdateTime;
/** The type of analysis. */
union { null, string } type = null;
/** The software run to generate this analysis. */
array<string> software = [];
/**
A map of additional analysis information.
*/
map<array<string>> info = {};
}
}