-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathschema_input.json
More file actions
41 lines (41 loc) · 1.68 KB
/
Copy pathschema_input.json
File metadata and controls
41 lines (41 loc) · 1.68 KB
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/sanger-tol/blobtoolkit/main/assets/schema_input.json",
"title": "sanger-tol/blobtoolkit pipeline - params.input schema",
"description": "Schema for the file provided with params.input",
"type": "array",
"items": {
"type": "object",
"properties": {
"sample": {
"type": "string",
"description": "Sample identifier",
"pattern": "^\\S+$",
"errorMessage": "Sample name must be provided, be unique, and cannot contain spaces",
"meta": ["id"]
},
"datatype": {
"type": "string",
"pattern": "^\\S+$",
"enum": ["hic", "illumina", "ont", "pacbio", "pacbio_clr"],
"errorMessage": "Data type must be one of: 'hic' or 'illumina' or 'ont' or 'pacbio'",
"meta": ["datatype"]
},
"datafile": {
"type": "string",
"format": "file-path",
"exists": true,
"pattern": "^\\S+\\.(bam|cram|fa|fa.gz|fasta|fasta.gz|fq|fq.gz|fastq|fastq.gz)$",
"errorMessage": "Data file for reads cannot contain spaces and must be BAM/CRAM/FASTQ/FASTA"
},
"library_layout": {
"type": "string",
"pattern": "^(SINGLE|PAIRED)$",
"errorMessage": "The only valid layouts are SINGLE and PAIRED",
"meta": ["layout"]
}
},
"required": ["datafile", "datatype", "sample"]
},
"uniqueEntries": ["sample"]
}