Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Introduce the atlas entity for derivatives data #997

Merged
merged 6 commits into from
Feb 19, 2022
Merged
20 changes: 14 additions & 6 deletions src/05-derivatives/03-imaging.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ structure may be concatenated in a single file.
Segmentations may be defined in a volume (labeled voxels), a surface (labeled
vertices) or a combined volume/surface space.

If the segmentation can be derived from different atlases,
the [`atlas` entity](../99-appendices/09-entities.md#atlas) MAY be used to
distinguish the different segmentations.
If so, the `Atlas` metadata SHOULD also be defined.

The following section describes discrete and probabilistic segmentations of
volumes, followed by discrete segmentations of surface/combined spaces.
Probabilistic segmentations of surfaces are currently [unspecified][].
Expand All @@ -211,7 +216,7 @@ The following metadata fields apply to all segmentation files:
{{ MACROS___make_metadata_table(
{
"Manual": "OPTIONAL",
"Atlas": "OPTIONAL",
"Atlas": "REQUIRED if `atlas` is present",
"Resolution": "REQUIRED if `res` is present",
"Density": "REQUIRED if `den` is present",
}
Expand All @@ -230,7 +235,7 @@ Template:
<pipeline_name>/
sub-<label>/
anat|func|dwi/
<source_entities>[_space-<space>][_res-<label>][_den-<label>]_dseg.nii.gz
<source_entities>[_space-<space>][_atlas-<label>][_res-<label>][_den-<label>]_dseg.nii.gz
```

Example:
Expand All @@ -254,15 +259,18 @@ In this case, the mask suffix MUST be used,
the [`label` entity](../99-appendices/09-entities.md#label)) SHOULD be used
to specify the masked structure
(see [Common image-derived labels](#common-image-derived-labels)),
and the `Atlas` metadata SHOULD be defined.
the [`atlas` entity](../99-appendices/09-entities.md#atlas) and the
`Atlas` metadata SHOULD be defined.

For example:

{{ MACROS___make_filetree_example(
{
"pipeline": {
"sub-001": {
"anat": {
"sub-001_space-orig_label-GM_mask.nii.gz": "",
"sub-001_space-orig_atlas-Desikan_label-GM_mask.nii.gz": "",
"sub-001_space-orig_atlas-Desikan_label-GM_mask.json": "",
},
},
}
Expand All @@ -284,7 +292,7 @@ Template:
<pipeline_name>/
sub-<label>/
func|anat|dwi/
<source_entities>[_space-<space>][_res-<label>][_den-<label>][_label-<label>]_probseg.nii.gz
<source_entities>[_space-<space>][_atlas-<label>][_res-<label>][_den-<label>][_label-<label>]_probseg.nii.gz
```

Example:
Expand Down Expand Up @@ -350,7 +358,7 @@ Template:
<pipeline_name>/
sub-<label>/
anat/
<source_entities>[_hemi-{L|R}][_space-<space>][_res-<label>][_den-<label>]_dseg.{label.gii|dlabel.nii}
<source_entities>[_hemi-{L|R}][_space-<space>][_atlas-<label>][_res-<label>][_den-<label>]_dseg.{label.gii|dlabel.nii}
```

The [`hemi-<label>`](../99-appendices/09-entities.md#hemi) entity is REQUIRED for GIFTI files storing information about
Expand Down
10 changes: 10 additions & 0 deletions src/schema/objects/entities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ acquisition:
remains at the discretion of the researcher.
type: string
format: label
atlas:
name: Atlas
entity: atlas
description: |
The `atlas-<label>` key/value pair corresponds to a custom label the user
MAY use to distinguish a different atlas used for similar type of data.

This entity is only applicable to derivative data.
type: string
format: label
ceagent:
name: Contrast Enhancing Agent
entity: ce
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 @@ -24,6 +24,7 @@
- split
- recording
- chunk
- atlas
- resolution
- density
- label
Expand Down