Skip to content

Commit

Permalink
Fix json schema versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nictru committed Oct 17, 2024
1 parent 16b0705 commit 5f4eae9
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 10 deletions.
19 changes: 14 additions & 5 deletions assets/schema_counts_design.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/nf-core/tfactivity/master/assets/schema_counts_design.json",
"title": "nf-core/tfactivity pipeline - params.counts_design schema",
"description": "Schema for the file provided with params.counts_design",
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"
]
},
"batch": {
"type": "string",
"pattern": "^\\S+$",
"errorMessage": "Batch identifier cannot contain spaces",
"meta": ["batch"]
"meta": [
"batch"
]
},
"counts_file": {
"type": "string",
Expand All @@ -33,6 +39,9 @@
"errorMessage": "Counts file must be a .csv or .txt file"
}
},
"required": ["sample", "condition"]
"required": [
"sample",
"condition"
]
}
}
22 changes: 17 additions & 5 deletions assets/schema_input_bam.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$schema": "https://json-schema.org/draft/2020-12/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_bam",
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"
]
},
"signal": {
"type": "string",
Expand All @@ -40,6 +46,12 @@
"errorMessage": "Control file must be provided and must be a .bam file"
}
},
"required": ["sample", "condition", "assay", "signal", "control"]
"required": [
"sample",
"condition",
"assay",
"signal",
"control"
]
}
}

0 comments on commit 5f4eae9

Please sign in to comment.