|
7 | 7 | "items": { |
8 | 8 | "type": "object", |
9 | 9 | "properties": { |
10 | | - "sampleID": { |
| 10 | + "sample": { |
11 | 11 | "type": "string", |
12 | 12 | "pattern": "^[a-zA-Z][a-zA-Z0-9_]+$", |
13 | 13 | "errorMessage": "Unique sample ID must be provided: Must start with a letter, and can only contain letters, numbers or underscores; Regex: '^[a-zA-Z][a-zA-Z0-9_]+$'", |
14 | 14 | "meta": ["sample"] |
15 | 15 | }, |
16 | | - "forwardReads": { |
17 | | - "type": "string", |
18 | | - "format": "file-path", |
19 | | - "exists": true, |
20 | | - "pattern": "^([\\S\\s]*\\/)?[^\\s\\/]+\\.f(ast)?q\\.gz$", |
21 | | - "errorMessage": "FastQ file for reads 1 must be provided, cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'" |
22 | | - }, |
23 | | - "reverseReads": { |
24 | | - "type": "string", |
25 | | - "format": "file-path", |
26 | | - "exists": true, |
27 | | - "pattern": "^([\\S\\s]*\\/)?[^\\s\\/]+\\.f(ast)?q\\.gz$", |
28 | | - "errorMessage": "FastQ file for reads 2 cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'" |
29 | | - }, |
30 | | - "sample": { |
31 | | - "type": "string", |
32 | | - "pattern": "^[a-zA-Z][a-zA-Z0-9_]+$", |
33 | | - "errorMessage": "Unique sample ID must be provided: Must start with a letter, and can only contain letters, numbers or underscores; Regex: '^[a-zA-Z][a-zA-Z0-9_]+$'" |
34 | | - }, |
35 | 16 | "fastq_1": { |
36 | 17 | "type": "string", |
37 | 18 | "format": "file-path", |
|
65 | 46 | "meta": ["quant_reading"] |
66 | 47 | } |
67 | 48 | }, |
68 | | - "oneOf": [ |
69 | | - { |
70 | | - "required": ["sampleID", "forwardReads"], |
71 | | - "not": { |
72 | | - "anyOf": [ |
73 | | - { |
74 | | - "required": ["sample"] |
75 | | - }, |
76 | | - { |
77 | | - "required": ["fastq_1"] |
78 | | - }, |
79 | | - { |
80 | | - "required": ["fastq_2"] |
81 | | - } |
82 | | - ] |
83 | | - }, |
84 | | - "errorMessage": "When using legacy format (sampleID/forwardReads), do not use standardized fields (sample/fastq_1/fastq_2)" |
85 | | - }, |
86 | | - { |
87 | | - "required": ["sample", "fastq_1"], |
88 | | - "not": { |
89 | | - "anyOf": [ |
90 | | - { |
91 | | - "required": ["sampleID"] |
92 | | - }, |
93 | | - { |
94 | | - "required": ["forwardReads"] |
95 | | - }, |
96 | | - { |
97 | | - "required": ["reverseReads"] |
98 | | - } |
99 | | - ] |
100 | | - }, |
101 | | - "errorMessage": "When using standardized format (sample/fastq_1), do not use legacy fields (sampleID/forwardReads/reverseReads)" |
102 | | - } |
103 | | - ] |
| 49 | + "required": ["sample", "fastq_1"] |
104 | 50 | }, |
105 | | - "allOf": [ |
106 | | - { |
107 | | - "uniqueEntries": ["sample"] |
108 | | - }, |
109 | | - { |
110 | | - "uniqueEntries": ["sampleID"] |
111 | | - } |
112 | | - ] |
| 51 | + "uniqueEntries": ["sample"] |
113 | 52 | } |
0 commit comments