Skip to content

Commit 2fbb8fa

Browse files
committed
update schema_input
1 parent cb9f74f commit 2fbb8fa

File tree

1 file changed

+34
-124
lines changed

1 file changed

+34
-124
lines changed

Diff for: assets/schema_input.json

+34-124
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,8 @@
2323
"errorMessage": "Sex cannot contain spaces",
2424
"meta": ["sex"],
2525
"default": "NA",
26-
"anyOf": [
27-
{
28-
"type": "string",
29-
"pattern": "^\\S+$"
30-
},
31-
{
32-
"type": "string",
33-
"maxLength": 0
34-
}
35-
]
26+
"type": "string",
27+
"pattern": "^\\S+$"
3628
},
3729
"status": {
3830
"type": "integer",
@@ -48,183 +40,101 @@
4840
"meta": ["lane"]
4941
},
5042
"fastq_1": {
51-
"errorMessage": "Gzipped FastQ file for reads 1 cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'",
52-
"anyOf": [
53-
{
54-
"type": "string",
55-
"pattern": "^\\S+\\.f(ast)?q\\.gz$"
56-
},
57-
{
58-
"type": "string",
59-
"maxLength": 0
60-
}
61-
],
43+
"errorMessage": "FastQ file for reads 1 cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'",
44+
"type": "string",
45+
"pattern": "^\\S+\\.f(ast)?q\\.gz$",
6246
"format": "file-path",
6347
"exists": true
6448
},
6549
"fastq_2": {
66-
"errorMessage": "Gzipped FastQ file for reads 2 cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'",
67-
"anyOf": [
68-
{
69-
"type": "string",
70-
"pattern": "^\\S+\\.f(ast)?q\\.gz$"
71-
},
72-
{
73-
"type": "string",
74-
"maxLength": 0
75-
}
76-
],
50+
"errorMessage": "FastQ file for reads 2 cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'",
51+
"type": "string",
52+
"pattern": "^\\S+\\.f(ast)?q\\.gz$",
7753
"format": "file-path",
7854
"exists": true
7955
},
8056
"spring_1": {
8157
"errorMessage": "Gzipped and spring-compressed FastQ file for reads 1 cannot contain spaces and must have extension '.fq.gz.spring' or '.fastq.gz.spring'",
82-
"anyOf": [
83-
{
84-
"type": "string",
85-
"pattern": "^\\S+\\.f(ast)?q\\.gz.spring$"
86-
},
87-
{
88-
"type": "string",
89-
"maxLength": 0
90-
}
91-
],
58+
"type": "string",
59+
"pattern": "^\\S+\\.f(ast)?q\\.gz.spring$",
9260
"format": "file-path",
9361
"exists": true
9462
},
9563
"spring_2": {
9664
"errorMessage": "Gzipped and spring-compressed FastQ file for reads 2 cannot contain spaces and must have extension '.fq.gz.spring' or '.fastq.gz.spring'",
97-
"anyOf": [
98-
{
99-
"type": "string",
100-
"pattern": "^\\S+\\.f(ast)?q\\.gz.spring$"
101-
},
102-
{
103-
"type": "string",
104-
"maxLength": 0
105-
}
106-
],
65+
"type": "string",
66+
"pattern": "^\\S+\\.f(ast)?q\\.gz.spring$",
10767
"format": "file-path",
10868
"exists": true
10969
},
11070
"table": {
11171
"errorMessage": "Recalibration table cannot contain spaces and must have extension '.table'",
112-
"anyOf": [
113-
{
114-
"type": "string",
115-
"pattern": "^\\S+\\.table$"
116-
},
117-
{
118-
"type": "string",
119-
"maxLength": 0
120-
}
121-
],
72+
"type": "string",
73+
"pattern": "^\\S+\\.table$",
12274
"format": "file-path",
12375
"exists": true
12476
},
12577
"cram": {
12678
"errorMessage": "CRAM file cannot contain spaces and must have extension '.cram'",
127-
"anyOf": [
128-
{
129-
"type": "string",
130-
"pattern": "^\\S+\\.cram$"
131-
},
132-
{
133-
"type": "string",
134-
"maxLength": 0
135-
}
136-
],
79+
"type": "string",
80+
"pattern": "^\\S+\\.cram$",
13781
"format": "file-path",
13882
"exists": true
13983
},
14084
"crai": {
14185
"errorMessage": "CRAM index file cannot contain spaces and must have extension '.crai'",
142-
"anyOf": [
143-
{
144-
"type": "string",
145-
"pattern": "^\\S+\\.crai$"
146-
},
147-
{
148-
"type": "string",
149-
"maxLength": 0
150-
}
151-
],
86+
"type": "string",
87+
"pattern": "^\\S+\\.crai$",
15288
"format": "file-path",
15389
"exists": true
15490
},
15591
"bam": {
15692
"errorMessage": "BAM file cannot contain spaces and must have extension '.bam'",
157-
"anyOf": [
158-
{
159-
"type": "string",
160-
"pattern": "^\\S+\\.bam$"
161-
},
162-
{
163-
"type": "string",
164-
"maxLength": 0
165-
}
166-
],
93+
"type": "string",
94+
"pattern": "^\\S+\\.bam$",
16795
"format": "file-path",
16896
"exists": true
16997
},
17098
"bai": {
17199
"errorMessage": "BAM index file cannot contain spaces and must have extension '.bai'",
172-
"anyOf": [
173-
{
174-
"type": "string",
175-
"pattern": "^\\S+\\.bai$"
176-
},
177-
{
178-
"type": "string",
179-
"maxLength": 0
180-
}
181-
],
100+
"type": "string",
101+
"pattern": "^\\S+\\.bai$",
182102
"format": "file-path",
183103
"exists": true
184104
},
185105
"vcf": {
186106
"errorMessage": "VCF file for reads 1 cannot contain spaces and must have extension '.vcf' or '.vcf.gz'",
187-
"anyOf": [
188-
{
189-
"type": "string",
190-
"pattern": "^\\S+\\.vcf(\\.gz)?$"
191-
},
192-
{
193-
"type": "string",
194-
"maxLength": 0
195-
}
196-
],
107+
"type": "string",
108+
"pattern": "^\\S+\\.vcf(\\.gz)?$",
197109
"format": "file-path",
198110
"exists": true
199111
},
200112
"variantcaller": {
201113
"type": "string"
202114
}
203115
},
204-
"required": ["patient", "sample"],
205-
"uniqueEntries": ["patient", "sample"],
206116
"anyOf": [
207117
{
208118
"dependentRequired": {
209-
"fastq_2": ["fastq_1"],
210-
"spring_2": ["spring_1"],
211-
"lane": ["bam"]
119+
"lane": ["fastq_1"]
212120
}
213121
},
214122
{
215123
"dependentRequired": {
216-
"fastq_2": ["fastq_1"],
217-
"spring_2": ["spring_1"],
218-
"lane": ["fastq_1"]
124+
"lane": ["spring_1"]
219125
}
220126
},
221127
{
222128
"dependentRequired": {
223-
"fastq_2": ["fastq_1"],
224-
"spring_2": ["spring_1"],
225-
"lane": ["spring_1"]
129+
"lane": ["bam"]
226130
}
227131
}
228-
]
132+
],
133+
"dependentRequired": {
134+
"fastq_2": ["fastq_1"],
135+
"spring_2": ["spring_1"]
136+
},
137+
"required": ["patient", "sample"],
138+
"uniqueEntries": ["lane", "patient", "sample"]
229139
}
230140
}

0 commit comments

Comments
 (0)