Skip to content

Commit

Permalink
Remove misleading error messages and allow more string types in run c…
Browse files Browse the repository at this point in the history
…olumn
  • Loading branch information
jfy133 committed Oct 21, 2024
1 parent 275579e commit 5f2461b
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions assets/schema_input.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,42 +10,36 @@
"sample": {
"type": "string",
"pattern": "^\\S+$",
"errorMessage": "Sample name must be provided and cannot contain spaces",
"meta": ["id"]
},
"run": {
"type": "string",
"type": ["string", "integer"],
"pattern": "^\\S+$",
"meta": ["run"],
"unique": ["sample"],
"errorMessage": "Column 'run' contains an empty field. Either remove column 'run' or fill each field with a value."
"unique": ["sample"]
},
"group": {
"type": ["string", "integer"],
"pattern": "^\\S+$",
"meta": ["group"],
"errorMessage": "Column 'group' contains an empty field. Either remove column 'group' or fill each field with a value."
"meta": ["group"]
},
"short_reads_1": {
"type": "string",
"format": "file-path",
"exists": true,
"pattern": "^\\S+\\.f(ast)?q\\.gz$",
"errorMessage": "FastQ file for reads 1 must be provided, cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'"
"pattern": "^\\S+\\.f(ast)?q\\.gz$"
},
"short_reads_2": {
"type": "string",
"format": "file-path",
"exists": true,
"pattern": "^\\S+\\.f(ast)?q\\.gz$",
"errorMessage": "FastQ file for reads 2 cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'"
"pattern": "^\\S+\\.f(ast)?q\\.gz$"
},
"long_reads": {
"type": "string",
"format": "file-path",
"exists": true,
"pattern": "^\\S+\\.f(ast)?q\\.gz$",
"errorMessage": "FastQ file for long reads cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'"
"pattern": "^\\S+\\.f(ast)?q\\.gz$"
}
},
"required": ["sample", "group", "short_reads_1"]
Expand Down

0 comments on commit 5f2461b

Please sign in to comment.