Skip to content

Commit

Permalink
Fix problematic json schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
nictru committed Oct 16, 2024
1 parent 0feeb25 commit 10d9516
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 17 deletions.
35 changes: 26 additions & 9 deletions assets/schema_input.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$schema": "https://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/nf-core/tfactivity/master/assets/schema_input.json",
"title": "nf-core/tfactivity pipeline - params.input schema",
"description": "Schema for the file provided with params.input",
Expand All @@ -11,19 +11,25 @@
"type": "string",
"pattern": "^\\S+$",
"errorMessage": "Sample name must be provided and cannot contain spaces",
"meta": ["id"]
"meta": [
"id"
]
},
"condition": {
"type": "string",
"pattern": "^\\S+$",
"errorMessage": "Condition name must be provided and cannot contain spaces",
"meta": ["condition"]
"meta": [
"condition"
]
},
"assay": {
"type": "string",
"pattern": "^\\S+$",
"errorMessage": "Assay name must be provided and cannot contain spaces",
"meta": ["assay"]
"meta": [
"assay"
]
},
"peak_file": {
"type": "string",
Expand All @@ -36,22 +42,33 @@
"type": "boolean",
"default": true,
"errorMessage": "footprinting must be a boolean value",
"meta": ["footprinting"]
"meta": [
"footprinting"
]
},
"include_original": {
"type": "boolean",
"default": true,
"errorMessage": "include_original must be a boolean value",
"meta": ["include_original"]
"meta": [
"include_original"
]
},
"max_peak_gap": {
"type": "integer",
"default": 500,
"minimum": 0,
"errorMessage": "max_peak_gap must be a positive integer",
"meta": ["max_peak_gap"]
"meta": [
"max_peak_gap"
]
}
},
"required": ["sample", "condition", "assay", "peak_file"]
"required": [
"sample",
"condition",
"assay",
"peak_file"
]
}
}
}
18 changes: 14 additions & 4 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$schema": "https://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/nf-core/tfactivity/master/nextflow_schema.json",
"title": "nf-core/tfactivity pipeline parameters",
"description": "TBD",
Expand All @@ -10,7 +10,10 @@
"type": "object",
"fa_icon": "fas fa-terminal",
"description": "Define where the pipeline should find input data and save output data.",
"required": ["input", "outdir"],
"required": [
"input",
"outdir"
],
"properties": {
"input": {
"type": "string",
Expand Down Expand Up @@ -378,7 +381,14 @@
"description": "Method used to save pipeline results to output directory.",
"help_text": "The Nextflow `publishDir` option specifies which intermediate files should be saved to the output directory. This option tells the pipeline what method should be used to move these files. See [Nextflow docs](https://www.nextflow.io/docs/latest/process.html#publishdir) for details.",
"fa_icon": "fas fa-copy",
"enum": ["symlink", "rellink", "link", "copy", "copyNoFollow", "move"],
"enum": [
"symlink",
"rellink",
"link",
"copy",
"copyNoFollow",
"move"
],
"hidden": true
},
"email_on_fail": {
Expand Down Expand Up @@ -468,4 +478,4 @@
"$ref": "#/$defs/generic_options"
}
]
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 10d9516

Please sign in to comment.