Skip to content

Commit

Permalink
add exists:true to the sechma to check the file path
Browse files Browse the repository at this point in the history
  • Loading branch information
LilyAnderssonLee committed Oct 18, 2024
1 parent f3ef6aa commit 5e90741
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions assets/schema_database.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
},
"db_path": {
"type": "string",
"exists": true,
"format": "file-path",
"errorMessage": "db_path should be either a file path or a directory."
}
Expand Down
3 changes: 3 additions & 0 deletions assets/schema_input.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,21 @@
},
"fastq_1": {
"type": "string",
"exists": true,
"format": "file-path",
"pattern": "^\\S+\\.f(ast)?q\\.gz$",
"errorMessage": "Gzipped FastQ file for reads 1 must be provided, cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'"
},
"fastq_2": {
"type": "string",
"exists": true,
"format": "file-path",
"pattern": "^\\S+\\.f(ast)?q\\.gz$",
"errorMessage": "Gzipped FastQ file for reads 2 cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'. If not applicable, leave it empty."
},
"fasta": {
"type": "string",
"exists": true,
"format": "file-path",
"pattern": "^\\S+\\.(fasta|fas|fna|fa)\\.gz?$",
"errorMessage": "Gzipped FastA file must be provided, cannot contain spaces and must have extension '.fa.gz', 'fna.gz', 'fas.gz', or '.fasta.gz'. If not applicable, leave it empty."
Expand Down

0 comments on commit 5e90741

Please sign in to comment.