Skip to content

Commit

Permalink
schema: Update metaschema, fix errors caught by metaschema
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Nov 5, 2024
1 parent 226f134 commit ac745e6
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 20 deletions.
12 changes: 12 additions & 0 deletions src/metaschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,18 @@
"required": ["core", "tables"],
"additionalProperties": false
},
"atlas": {
"type": "object",
"patternProperties": {
"^[a-z_]+$": {
"type": "object",
"patternProperties": {
"^[a-zA-Z0-9_]+$": { "$ref": "#/definitions/suffixRule" }
}
}
},
"additionalProperties": false
},
"deriv": {
"type": "object",
"patternProperties": {
Expand Down
20 changes: 10 additions & 10 deletions src/schema/rules/files/atlas/derivatives.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ anat_parametric_discrete_segmentation:
cohort: optional
space: optional
atlas: optional
segmentation: option
segmentation: optional
scale: optional
resolution: optional
density: optional
Expand All @@ -112,7 +112,7 @@ anat_nonparametric_discrete_segmentation:
cohort: optional
space: optional
atlas: optional
segmentation: option
segmentation: optional
scale: optional
resolution: optional
density: optional
Expand All @@ -132,7 +132,7 @@ func_discrete_segmentation:
cohort: optional
space: optional
atlas: optional
segmentation: option
segmentation: optional
scale: optional
resolution: optional
density: optional
Expand All @@ -147,7 +147,7 @@ dwi_discrete_segmentation:
cohort: optional
space: optional
atlas: optional
segmentation: option
segmentation: optional
scale: optional
resolution: optional
density: optional
Expand All @@ -162,7 +162,7 @@ anat_parametric_probabilistic_segmentation:
cohort: optional
space: optional
atlas: optional
segmentation: option
segmentation: optional
scale: optional
resolution: optional
density: optional
Expand All @@ -178,7 +178,7 @@ anat_nonparametric_probabilistic_segmentation:
cohort: optional
space: optional
atlas: optional
segmentation: option
segmentation: optional
scale: optional
resolution: optional
density: optional
Expand All @@ -194,7 +194,7 @@ func_probabilistic_segmentation:
cohort: optional
space: optional
atlas: optional
segmentation: option
segmentation: optional
scale: optional
resolution: optional
density: optional
Expand All @@ -210,7 +210,7 @@ dwi_probabilistic_segmentation:
cohort: optional
space: optional
atlas: optional
segmentation: option
segmentation: optional
scale: optional
resolution: optional
density: optional
Expand All @@ -232,7 +232,7 @@ anat_parametic_discrete_surface:
cohort: optional
space: optional
atlas: optional
segmentation: option
segmentation: optional
scale: optional
resolution: optional
density: optional
Expand All @@ -253,7 +253,7 @@ anat_nonparametic_discrete_surface:
cohort: optional
space: optional
atlas: optional
segmentation: option
segmentation: optional
scale: optional
resolution: optional
density: optional
Expand Down
20 changes: 10 additions & 10 deletions src/schema/rules/files/deriv/imaging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ anat_parametric_discrete_segmentation:
cohort: optional
space: optional
atlas: optional
segmentation: option
segmentation: optional
scale: optional
resolution: optional
density: optional
Expand All @@ -121,7 +121,7 @@ anat_nonparametric_discrete_segmentation:
cohort: optional
space: optional
atlas: optional
segmentation: option
segmentation: optional
scale: optional
resolution: optional
density: optional
Expand All @@ -141,7 +141,7 @@ func_discrete_segmentation:
cohort: optional
space: optional
atlas: optional
segmentation: option
segmentation: optional
scale: optional
resolution: optional
density: optional
Expand All @@ -156,7 +156,7 @@ dwi_discrete_segmentation:
cohort: optional
space: optional
atlas: optional
segmentation: option
segmentation: optional
scale: optional
resolution: optional
density: optional
Expand All @@ -171,7 +171,7 @@ anat_parametric_probabilistic_segmentation:
cohort: optional
space: optional
atlas: optional
segmentation: option
segmentation: optional
scale: optional
resolution: optional
density: optional
Expand All @@ -187,7 +187,7 @@ anat_nonparametric_probabilistic_segmentation:
cohort: optional
space: optional
atlas: optional
segmentation: option
segmentation: optional
scale: optional
resolution: optional
density: optional
Expand All @@ -203,7 +203,7 @@ func_probabilistic_segmentation:
cohort: optional
space: optional
atlas: optional
segmentation: option
segmentation: optional
scale: optional
resolution: optional
density: optional
Expand All @@ -219,7 +219,7 @@ dwi_probabilistic_segmentation:
cohort: optional
space: optional
atlas: optional
segmentation: option
segmentation: optional
scale: optional
resolution: optional
density: optional
Expand All @@ -241,7 +241,7 @@ anat_parametic_discrete_surface:
cohort: optional
space: optional
atlas: optional
segmentation: option
segmentation: optional
scale: optional
resolution: optional
density: optional
Expand All @@ -262,7 +262,7 @@ anat_nonparametic_discrete_surface:
cohort: optional
space: optional
atlas: optional
segmentation: option
segmentation: optional
scale: optional
resolution: optional
density: optional
Expand Down

0 comments on commit ac745e6

Please sign in to comment.