|
23 | 23 | "errorMessage": "Sex cannot contain spaces",
|
24 | 24 | "meta": ["sex"],
|
25 | 25 | "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+$" |
36 | 28 | },
|
37 | 29 | "status": {
|
38 | 30 | "type": "integer",
|
|
48 | 40 | "meta": ["lane"]
|
49 | 41 | },
|
50 | 42 | "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$", |
62 | 46 | "format": "file-path",
|
63 | 47 | "exists": true
|
64 | 48 | },
|
65 | 49 | "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$", |
77 | 53 | "format": "file-path",
|
78 | 54 | "exists": true
|
79 | 55 | },
|
80 | 56 | "spring_1": {
|
81 | 57 | "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$", |
92 | 60 | "format": "file-path",
|
93 | 61 | "exists": true
|
94 | 62 | },
|
95 | 63 | "spring_2": {
|
96 | 64 | "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$", |
107 | 67 | "format": "file-path",
|
108 | 68 | "exists": true
|
109 | 69 | },
|
110 | 70 | "table": {
|
111 | 71 | "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$", |
122 | 74 | "format": "file-path",
|
123 | 75 | "exists": true
|
124 | 76 | },
|
125 | 77 | "cram": {
|
126 | 78 | "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$", |
137 | 81 | "format": "file-path",
|
138 | 82 | "exists": true
|
139 | 83 | },
|
140 | 84 | "crai": {
|
141 | 85 | "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$", |
152 | 88 | "format": "file-path",
|
153 | 89 | "exists": true
|
154 | 90 | },
|
155 | 91 | "bam": {
|
156 | 92 | "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$", |
167 | 95 | "format": "file-path",
|
168 | 96 | "exists": true
|
169 | 97 | },
|
170 | 98 | "bai": {
|
171 | 99 | "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$", |
182 | 102 | "format": "file-path",
|
183 | 103 | "exists": true
|
184 | 104 | },
|
185 | 105 | "vcf": {
|
186 | 106 | "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)?$", |
197 | 109 | "format": "file-path",
|
198 | 110 | "exists": true
|
199 | 111 | },
|
200 | 112 | "variantcaller": {
|
201 | 113 | "type": "string"
|
202 | 114 | }
|
203 | 115 | },
|
204 |
| - "required": ["patient", "sample"], |
205 |
| - "uniqueEntries": ["patient", "sample"], |
206 | 116 | "anyOf": [
|
207 | 117 | {
|
208 | 118 | "dependentRequired": {
|
209 |
| - "fastq_2": ["fastq_1"], |
210 |
| - "spring_2": ["spring_1"], |
211 |
| - "lane": ["bam"] |
| 119 | + "lane": ["fastq_1"] |
212 | 120 | }
|
213 | 121 | },
|
214 | 122 | {
|
215 | 123 | "dependentRequired": {
|
216 |
| - "fastq_2": ["fastq_1"], |
217 |
| - "spring_2": ["spring_1"], |
218 |
| - "lane": ["fastq_1"] |
| 124 | + "lane": ["spring_1"] |
219 | 125 | }
|
220 | 126 | },
|
221 | 127 | {
|
222 | 128 | "dependentRequired": {
|
223 |
| - "fastq_2": ["fastq_1"], |
224 |
| - "spring_2": ["spring_1"], |
225 |
| - "lane": ["spring_1"] |
| 129 | + "lane": ["bam"] |
226 | 130 | }
|
227 | 131 | }
|
228 |
| - ] |
| 132 | + ], |
| 133 | + "dependentRequired": { |
| 134 | + "fastq_2": ["fastq_1"], |
| 135 | + "spring_2": ["spring_1"] |
| 136 | + }, |
| 137 | + "required": ["patient", "sample"], |
| 138 | + "uniqueEntries": ["lane", "patient", "sample"] |
229 | 139 | }
|
230 | 140 | }
|
0 commit comments