Skip to content
Merged
Show file tree
Hide file tree
Changes from 17 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
8 changes: 8 additions & 0 deletions src/schema/meta/templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@ deriv:
segmentation: optional
scale: optional

surface_map:
$ref:
- meta.templates.deriv.surface
extensions:
- .func.gii
- .json

# Entities that apply to most atlas files
# Include thus:
#
Expand All @@ -164,3 +171,4 @@ atlas:
entities:
template: required
cohort: optional
atlas: optional
16 changes: 16 additions & 0 deletions src/schema/objects/extensions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,22 @@ fif:
display_name: Functional Imaging File Format
description: |
An MEG file format used by Neuromag, Elekta, and MEGIN.
funcgii:
value: .func.gii
display_name: GIFTI functional file
description: |
A GIFTI functional file.

Per the GIFTI standard: "[A] functional file contains one or more DataArrays
with Intent set to NIFTI_INTENT_NONE or one of the statistical intent values.
Each DataArray has DataType set to NIFTI_TYPE_FLOAT32.
Dimensionality is one with the first dimension set to the number of nodes."

In practice, this extension is used as a catch-all for scalar data sampled
to a surface, with the exceptions of labels (`.label.gii`) and
morphometry (`.shape.gii`).

This extension may only be used in derivative datasets.
jpg:
value: .jpg
display_name: Joint Photographic Experts Group Format
Expand Down
1 change: 1 addition & 0 deletions src/schema/objects/suffixes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,7 @@ meg:
description: |
Unprocessed MEG data stored in the native file format of the MEG instrument
with which the data was collected.

motion:
value: motion
display_name: Motion
Expand Down
1 change: 1 addition & 0 deletions src/schema/rules/checks/atlas.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
AtlasDescriptionRequired:
issue:
code: ATLAS_DESCRIPTION_REQUIRED
Expand Down
7 changes: 6 additions & 1 deletion src/schema/rules/checks/dataset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ SubjectFolders:
- path == '/dataset_description.json'
- dataset.dataset_description.DatasetType != "study"
checks:
- length(dataset.subjects.sub_dirs) > 0
- |
length(dataset.subjects.sub_dirs) > 0 ||
(
dataset.dataset_description.DatasetType == "derivative" &&
dataset.tree.directories.some((dir) => dir.name.startsWith("tpl-"))
Comment thread
bendhouseart marked this conversation as resolved.
Outdated
)
Comment thread
bendhouseart marked this conversation as resolved.
Outdated

NoSubjectFolders:
issue:
Expand Down
1 change: 1 addition & 0 deletions src/schema/rules/checks/eyetrack.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
EyetrackingStimulusPresentation:
issue:
code: INCOMPLETE_STIMULUS_PRESENTATION
Expand Down
1 change: 1 addition & 0 deletions src/schema/rules/files/deriv/atlas.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
atlas_description:
selectors:
- dataset.dataset_description.DatasetType == 'derivative'
Expand Down
18 changes: 17 additions & 1 deletion src/schema/rules/files/deriv/imaging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,25 @@ pet_pet_volumetric_atlas:
$ref: rules.files.deriv.imaging.pet_pet_volumetric
entities:
$ref:
- meta.templates.deriv.volumetric.entities
- meta.templates.atlas.base.entities
- rules.files.deriv.imaging.pet_pet_volumetric.entities

pet_pet_surface:
$ref:
- meta.templates.deriv.surface_map
- rules.files.raw.pet.pet
entities:
$ref:
- meta.templates.deriv.surface_map.entities
- rules.files.raw.pet.pet.entities

pet_pet_surface_atlas:
$ref: rules.files.deriv.imaging.pet_pet_surface
entities:
$ref:
- meta.templates.atlas.base.entities
- rules.files.deriv.imaging.pet_pet_surface.entities

# Masks
anat_mask:
$ref:
Expand Down
Loading