forked from nf-core/funcscan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema_input.json
More file actions
45 lines (45 loc) · 1.89 KB
/
schema_input.json
File metadata and controls
45 lines (45 loc) · 1.89 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
42
43
44
45
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/nf-core/funcscan/master/assets/schema_input.json",
"title": "nf-core/funcscan pipeline - params.input schema",
"description": "Schema for the file provided with params.input",
"type": "array",
"items": {
"type": "object",
"properties": {
"sample": {
"type": "string",
"pattern": "^\\S+$",
"errorMessage": "Sample ID must be provided, must be an integer or string and cannot contain spaces",
"meta": ["id"]
},
"fasta": {
"type": "string",
"format": "file-path",
"exists": true,
"pattern": "^\\S+\\.(fasta|fas|fna|fa)(\\.gz)?$",
"errorMessage": "Fasta file for reads must be provided, cannot contain spaces and must have extension `.fa`, `.fa.gz`, `.fna`, `.fna.gz`, `.fasta`, or `.fasta.gz`"
},
"protein": {
"type": "string",
"format": "file-path",
"exists": true,
"pattern": "^\\S+\\.(faa|fasta)(\\.gz)?$",
"errorMessage": "Input file for peptide annotations has incorrect file format. File must end in `.fasta`, `.fasta.gz`, `.faa`, or `.faa.gz`"
},
"gbk": {
"type": "string",
"format": "file-path",
"exists": true,
"pattern": "^\\S+\\.(gbk|gbff)(\\.gz)?$",
"errorMessage": "Input file for feature annotations has incorrect file format. File must end in `.gbk`, `.gbk.gz` or `.gbff`, or `.gbff.gz`"
}
},
"required": ["sample", "fasta"],
"dependentRequired": {
"protein": ["gbk"],
"gbk": ["protein"]
}
},
"uniqueItems": true
}