feat: Add input schema

This commit is contained in:
Thomas A. Christensen II 2023-10-18 21:45:52 -05:00
parent 93bd5cedec
commit c55a854345
Signed by: millironx
GPG key ID: 09335146883990B9
2 changed files with 24 additions and 2 deletions

23
assets/schema_input.json Normal file
View file

@ -0,0 +1,23 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/nf-core/taxprofiler/master/assets/schema_input.json",
"title": "haplotyper battle royale 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 name must be provided and cannot contain spaces"
},
"fastq_1": {
"type": "string",
"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'"
}
},
"required": ["sample", "fastq_1"]
}
}

View file

@ -25,8 +25,7 @@
"reference": {
"type": "string",
"fa_icon": "fas fa-dna",
"description": "NCBI accession number of the reference genome to align reads against",
"pattern": "^[:upper:]{2}_[:digit:]{6}\\.[:digit:]+$"
"description": "NCBI accession number of the reference genome to align reads against"
},
"outdir": {
"type": "string",