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
59 lines (59 loc) · 2.54 KB
/
schema_input.json
File metadata and controls
59 lines (59 loc) · 2.54 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"$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`"
},
"gff": {
"type": "string",
"format": "file-path",
"exists": true,
"pattern": "^\\S+\\.(gff|gff3)(\\.gz)?$",
"errorMessage": "Input file for feature annotations has incorrect file format. File must end in `.gff`, `.gff.gz` or `.gff3`, or `.gff3.gz`"
},
"gff_type": {
"type": "string",
"enum": ["NCBI_prok", "prodigal", "NCBI_euk", "JGI"],
"errorMessage": "GFF type must be one of: NCBI_prok, prodigal, NCBI_euk, or JGI",
"meta": ["gff_type"]
}
},
"required": ["sample", "fasta"],
"dependentRequired": {
"protein": ["gbk"],
"gbk": ["protein"],
"gff": ["protein"]
}
},
"uniqueItems": true
}