Skip to content

Commit

Permalink
[automated] Fix code linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nf-core-bot committed Oct 17, 2024
1 parent b292215 commit c89d797
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 53 deletions.
17 changes: 4 additions & 13 deletions assets/schema_counts_design.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,19 @@
"type": "string",
"pattern": "^[a-zA-Z][a-zA-Z0-9]*(?:[-_][a-zA-Z0-9]+)*$",
"errorMessage": "Sample name must be provided, has to start with a letter, and cannot contain spaces",
"meta": [
"id"
]
"meta": ["id"]
},
"condition": {
"type": "string",
"pattern": "^[a-zA-Z][a-zA-Z0-9]*(?:[-_][a-zA-Z0-9]+)*$",
"errorMessage": "Condition name must be provided, has to start with a letter, and cannot contain spaces",
"meta": [
"condition"
]
"meta": ["condition"]
},
"batch": {
"type": ["string", "integer"],
"pattern": "^[a-zA-Z0-9]*(?:[-_][a-zA-Z0-9]+)*$",
"errorMessage": "Batch identifier cannot contain spaces",
"meta": [
"batch"
]
"meta": ["batch"]
},
"counts_file": {
"type": "string",
Expand All @@ -39,9 +33,6 @@
"errorMessage": "Counts file must be a .csv or .txt file"
}
},
"required": [
"sample",
"condition"
]
"required": ["sample", "condition"]
}
}
31 changes: 7 additions & 24 deletions assets/schema_input.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,19 @@
"type": "string",
"pattern": "^[a-zA-Z][a-zA-Z0-9]*(?:[-_][a-zA-Z0-9]+)*$",
"errorMessage": "Sample name must be provided, has to start with a letter, and cannot contain spaces",
"meta": [
"id"
]
"meta": ["id"]
},
"condition": {
"type": "string",
"pattern": "^[a-zA-Z][a-zA-Z0-9]*(?:[-_][a-zA-Z0-9]+)*$",
"errorMessage": "Condition name must be provided, has to start with a letter, and cannot contain spaces",
"meta": [
"condition"
]
"meta": ["condition"]
},
"assay": {
"type": "string",
"pattern": "^[a-zA-Z][a-zA-Z0-9]*(?:[-_][a-zA-Z0-9]+)*$",
"errorMessage": "Assay name must be provided, has to start with a letter, and cannot contain spaces",
"meta": [
"assay"
]
"meta": ["assay"]
},
"peak_file": {
"type": "string",
Expand All @@ -42,33 +36,22 @@
"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"]
}
}
20 changes: 4 additions & 16 deletions assets/schema_input_bam.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,19 @@
"type": "string",
"pattern": "^[a-zA-Z][a-zA-Z0-9]*(?:[-_][a-zA-Z0-9]+)*$",
"errorMessage": "Sample name must be provided, has to start with a letter, and cannot contain spaces",
"meta": [
"id"
]
"meta": ["id"]
},
"condition": {
"type": "string",
"pattern": "^[a-zA-Z][a-zA-Z0-9]*(?:[-_][a-zA-Z0-9]+)*$",
"errorMessage": "Condition name must be provided, has to start with a letter, and cannot contain spaces",
"meta": [
"condition"
]
"meta": ["condition"]
},
"assay": {
"type": "string",
"pattern": "^[a-zA-Z][a-zA-Z0-9]*(?:[-_][a-zA-Z0-9]+)*$",
"errorMessage": "Assay name must be provided, has to start with a letter, and cannot contain spaces",
"meta": [
"assay"
]
"meta": ["assay"]
},
"signal": {
"type": "string",
Expand All @@ -46,12 +40,6 @@
"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 c89d797

Please sign in to comment.