Skip to content

Commit

Permalink
Start drafting atlas schema files.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Mar 21, 2024
1 parent 9baaeec commit 62a0208
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/schema/rules/directories.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ raw:
- sourcedata
- stimuli
- subject
- atlas
atlas:
name: atlas
level: optional
opaque: false
code:
name: code
level: optional
Expand Down Expand Up @@ -110,3 +115,12 @@ derivative:
value: datatype
level: optional
opaque: false

atlas:
root:
subdirs:
- atlas
atlas:
entity: atlas
level: optional
opaque: false
1 change: 1 addition & 0 deletions src/schema/rules/entities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# This file simply defines the order in which entities should appear within filenames.
# Entity definitions appear in the `objects/entities.yaml` file.
- subject
- atlas
- session
- sample
- task
Expand Down
16 changes: 16 additions & 0 deletions src/schema/rules/files/atlas/atlas.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
atlas:
suffixes:
- dseg
- probseg
- mask
extensions:
- .nii.gz
- .nii
- .json
entities:
atlas: required
space: optional
resolution: optional
density: optional
description: optional
16 changes: 16 additions & 0 deletions src/schema/rules/files/raw/atlas.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
atlas:
suffixes:
- dseg
- probseg
- mask
extensions:
- .nii.gz
- .nii
- .json
entities:
atlas: required
space: optional
resolution: optional
density: optional
description: optional
2 changes: 2 additions & 0 deletions src/schema/rules/modalities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ motion:
nirs:
datatypes:
- nirs
atlas:
datatypes: none

0 comments on commit 62a0208

Please sign in to comment.