Skip to content

Commit

Permalink
[ENH] add hemi entity to schema (#917)
Browse files Browse the repository at this point in the history
* add hemi entity to schema

* lint yml

* Update src/schema/objects/entities.yaml

Co-authored-by: Chris Markiewicz <effigies@gmail.com>

* add link to hemi in appendix

* fix entity order in example derivatives iEEG

* fix hemi entity name and link to appendix

Co-authored-by: Chris Markiewicz <effigies@gmail.com>
  • Loading branch information
Remi-Gau and effigies authored Nov 9, 2021
1 parent dc4af11 commit 18e2057
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ General fields:
"For example, **T1**: `'sub-<label>/ses-<label>/anat/"
"sub-01_T1w.nii.gz'` "
"**Surface**: `'/derivatives/surfaces/sub-<label>/ses-<label>/anat/"
"sub-01_desc-T1w_hemi-R_pial.surf.gii'` "
"sub-01_hemi-R_desc-T1w_pial.surf.gii'` "
"**Operative photo**: `'/sub-<label>/ses-<label>/ieeg/"
"sub-0001_ses-01_acq-photo1_photo.jpg'` "
"**Talairach**: `'/derivatives/surfaces/sub-Talairach/ses-01/anat/"
Expand Down
2 changes: 1 addition & 1 deletion src/05-derivatives/03-imaging.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ Template:
<source_entities>[_hemi-{L|R}][_space-<space>][_res-<label>][_den-<label>]_dseg.{label.gii|dlabel.nii}
```

The `hemi` tag is REQUIRED for GIFTI files storing information about
The [`hemi-<label>`](../99-appendices/09-entities.md#hemi) entity is REQUIRED for GIFTI files storing information about
a structure that is restricted to a hemibrain.
For example:

Expand Down
16 changes: 14 additions & 2 deletions src/schema/objects/entities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,18 @@ flip:
value which needs to be stored in the field `FlipAngle` of the separate JSON file.
type: string
format: index
hemisphere:
name: Hemisphere
entity: hemi
description: |
The `hemi-<label>` entity indicates which hemibrain is described by the file.
Allowed label values for this entity are `L` and `R`, for the left and right
hemibrains, respectively.
type: string
format: label
enum:
- "L"
- "R"
inversion:
name: Inversion Time
entity: inv
Expand Down Expand Up @@ -135,8 +147,8 @@ mtransfer:
respectively.
type: string
enum:
- 'on'
- 'off'
- "on"
- "off"
part:
name: Part
entity: part
Expand Down
1 change: 1 addition & 0 deletions src/schema/rules/entities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- part
- recording
- processing
- hemisphere
- space
- split
- resolution
Expand Down

0 comments on commit 18e2057

Please sign in to comment.