-
Notifications
You must be signed in to change notification settings - Fork 3
/
upload-metadata.schema.json
84 lines (84 loc) · 2.84 KB
/
upload-metadata.schema.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
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "http://qbic.life/v1/upload-metadata.schema.json",
"title": "Upload metadata for data registration at QBiC",
"description": "A full description of mandatory and optional metadata properties that need to/can be included for data registration via QBiC dropboxes.",
"type": "object",
"definitions": {
"qc": {
"type": "object",
"properties": {
"qcml_id": {
"type": "string",
"description": "A qcml id following the qzml specification",
"pattern": "^QC:[0-9]{7}$"
},
"name": {
"type": "string",
"description": "Name of the quality control",
"examples": ["read count", "target region read depth", "Q20 read percentage"]
},
"value": {
"type": "string",
"description": "The actual qc value"
}
}
},
"sample": {
"type": "object",
"properties": {
"genome": {
"type": "string",
"examples": ["GRCh37"]
},
"id_genetics": {
"type": "string",
"description": "A sample URI provided by the human genetics department",
"examples": ["GS000000_01"]
},
"id_qbic": {
"type": "string",
"pattern": "Q\\w{4}\\d{3}[A-X][A-X0-9]",
"description": "QBIC sample code of the analysed biological specimen",
"examples": ["QTEST001AE"]
},
"processing_system": {
"type": "string",
"examples": ["SureSelectXT Human All Exon v5"]
},
"qc": {
"type": "array",
"items": {
"allOf": [
{
"$ref": "#/definitions/qc"
}
]
}
},
"tumor": {
"type": "string",
"enum": ["yes", "no"]
}
}
}
},
"properties": {
"files": {
"type": "array",
"items": { "type": "string" },
"minItems": 1
},
"type": {
"type": "string",
"enum": ["dna_seq", "rna_seq", "dna_seq_somatic"]
},
"sample1": { "$ref": "#/definitions/sample" },
"sample2": { "$ref": "#/definitions/sample" }
},
"required": [
"files",
"type",
"sample1"
]
}