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] Add "chunk" entity to MRI datatype #1586

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/schema/objects/entities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@ chunk:
name: chunk
display_name: Chunk
description: |
The `chunk-<index>` key/value pair is used to distinguish between different regions,
2D images or 3D volumes files,
of the same physical sample with different fields of view acquired in the same imaging experiment.
The `chunk-<index>` key/value pair is used to distinguish between images of
the same physical sample with different fields of view acquired in the same
imaging experiment.
This entity applies to collections of 2D images, 3D volumes or 4D volume series
(for example, diffusion weighted images), and may be used to indicate different
anatomical structures or regions of the same structure.
type: string
format: index
density:
Expand Down
2 changes: 2 additions & 0 deletions src/schema/objects/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,8 @@ ChunkTransformationMatrix:
scaling along the second and third axis respectively).
Note that non-spatial dimensions like time and channel are not included in the
transformation matrix.
In case of MRI data, the ChunkTransformationMatrix corresponds to the NIFTI [qform matrix]
(https://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/qsform.html)
effigies marked this conversation as resolved.
Show resolved Hide resolved
anyOf:
- type: array
minItems: 3
Expand Down
8 changes: 8 additions & 0 deletions src/schema/rules/files/raw/anat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ nonparametric:
reconstruction: optional
run: optional
part: optional
chunk: optional

parametric:
suffixes:
Expand Down Expand Up @@ -61,6 +62,7 @@ parametric:
ceagent: optional
reconstruction: optional
run: optional
chunk: optional

defacemask:
suffixes:
Expand All @@ -80,6 +82,7 @@ defacemask:
reconstruction: optional
run: optional
modality: optional
chunk: optional

multiecho:
suffixes:
Expand Down Expand Up @@ -122,6 +125,7 @@ multiflip:
echo: optional
flip: required
part: optional
chunk: optional

multiinversion:
suffixes:
Expand All @@ -142,6 +146,7 @@ multiinversion:
run: optional
inversion: required
part: optional
chunk: optional

mp2rage:
suffixes:
Expand All @@ -164,6 +169,7 @@ mp2rage:
flip: optional
inversion: required
part: optional
chunk: optional

vfamt:
suffixes:
Expand All @@ -187,6 +193,7 @@ vfamt:
flip: required
mtransfer: required
part: optional
chunk: optional

mtr:
suffixes:
Expand All @@ -207,3 +214,4 @@ mtr:
run: optional
mtransfer: required
part: optional
chunk: optional
2 changes: 2 additions & 0 deletions src/schema/rules/files/raw/dwi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dwi:
direction: optional
run: optional
part: optional
chunk: optional

sbref:
suffixes:
Expand All @@ -36,3 +37,4 @@ sbref:
direction: optional
run: optional
part: optional
chunk: optional
2 changes: 2 additions & 0 deletions src/schema/rules/files/raw/func.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func:
run: optional
echo: optional
part: optional
chunk: optional

phase:
suffixes:
Expand All @@ -41,3 +42,4 @@ phase:
direction: optional
run: optional
echo: optional
chunk: optional