-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschema_input.json
31 lines (31 loc) · 1.18 KB
/
schema_input.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
{
"$schema": "https://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/phac-nml/fetchdatairidanext/main/assets/schema_input.json",
"title": "phac-nml/fetchdatairidanext pipeline - params.input schema",
"description": "Schema for the file provided with params.input",
"type": "array",
"items": {
"type": "object",
"properties": {
"sample": {
"type": "string",
"pattern": "^[A-Za-z0-9_.-]+$",
"meta": ["irida_id"],
"unique": true,
"errorMessage": "Sample name must be provided and cannot contain spaces"
},
"sample_name": {
"type": "string",
"meta": ["id"],
"errorMessage": "Optional. Used to override reads filename when used in tools like IRIDA-Next"
},
"insdc_accession": {
"type": "string",
"pattern": "^(SRR|ERR|DRR)\\S+$",
"meta": ["insdc_accession"],
"errorMessage": "Must provide a valid accession"
}
},
"required": ["sample", "insdc_accession"]
}
}