Skip to content

Commit 0db3b72

Browse files
Update schema to accept tar file or directory
1 parent ae2d549 commit 0db3b72

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

assets/schema_input.json

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,31 @@
1717
"type": "string",
1818
"format": "file-path",
1919
"exists": true,
20-
"pattern": "^\\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'"
20+
"pattern": "\\.f(ast)?q\\.gz$",
21+
"errorMessage": "FastQ files for read 1 must be provided and must have extension '.fq.gz' or '.fastq.gz'"
2222
},
2323
"fastq_2": {
2424
"type": "string",
2525
"format": "file-path",
2626
"exists": true,
27-
"pattern": "^\\S+\\.f(ast)?q\\.gz$",
28-
"errorMessage": "FastQ file for reads 2 cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'"
27+
"pattern": "\\.f(ast)?q\\.gz$",
28+
"errorMessage": "FastQ files for read 2 are optional and must have extension '.fq.gz' or '.fastq.gz' if provided"
2929
},
3030
"rundir": {
31-
"type": "string",
32-
"format": "path",
33-
"exists": true,
34-
"errorMessage": "Run directory must be a path",
31+
"oneOf": [
32+
{
33+
"type": "string",
34+
"format": "file-path",
35+
"exists": true,
36+
"pattern": "\\.tar\\.gz$"
37+
},
38+
{
39+
"type": "string",
40+
"format": "directory-path",
41+
"exists": true
42+
}
43+
],
44+
"errorMessage": "Run directory must be a path or tar directory",
3545
"meta": ["rundir"]
3646
},
3747
"tags": {

0 commit comments

Comments
 (0)