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

[FIX] IntendedFor in (i)EEG is dataset relative #1093

Merged
merged 3 commits into from
May 2, 2022
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
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ and a guide for using macros can be found at
-->
{{ MACROS___make_metadata_table(
{
"IntendedFor": (
"IntendedFor__ds_relative": (
"OPTIONAL",
"This identifies the MRI or CT scan associated with the electrodes, "
"landmarks, and fiducials.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,14 +487,14 @@ and a guide for using macros can be found at
-->
{{ MACROS___make_metadata_table(
{
"IntendedFor": (
"IntendedFor__ds_relative": (
"OPTIONAL",
"If only a surface reconstruction is available, this should point to "
"the surface reconstruction file. "
"Note that this file should have the same coordinate system "
"specified in `iEEGCoordinateSystem`. "
"For example, **T1**: `'sub-<label>/ses-<label>/anat/"
"sub-01_T1w.nii.gz'` "
"For example, **T1**: `'/sub-<label>/ses-<label>/anat/"
"sub-01_T1w.nii.gz'`"
"**Surface**: `'/derivatives/surfaces/sub-<label>/ses-<label>/anat/"
"sub-01_hemi-R_desc-T1w_pial.surf.gii'` "
"**Operative photo**: `'/sub-<label>/ses-<label>/ieeg/"
Expand Down
21 changes: 19 additions & 2 deletions src/schema/objects/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,13 @@ ArterialSpinLabelingType:
AssociatedEmptyRoom:
name: AssociatedEmptyRoom
description: |
Relative path in BIDS directory structure to empty-room file associated with
A path pointing to an empty-room file associated with
the subject's MEG recording.
The path is relative to the BIDS dataset root.
The path needs to use forward slashes instead of backward slashes
(for example,
"sub-emptyroom/ses-/meg/sub-emptyroom_ses-_task-noise_run-_meg.ds").
"sub-emptyroom/ses-rest/meg/sub-emptyroom_ses-rest_task-noise_run-01_meg.ds").
Supplying a list of several paths to empty-room files is possible.
anyOf:
- type: array
items:
Expand Down Expand Up @@ -1298,6 +1300,21 @@ IntendedFor:
items:
type: string
format: participant_relative
IntendedFor__ds_relative:
name: IntendedFor
description: |
The paths to files for which the associated file is intended to be used.
Contains one or more filenames with paths relative to the dataset
root.
Paths need to use forward slashes instead of backward slashes,
regardless of operating system.
anyOf:
- type: string
format: dataset_relative
- type: array
items:
type: string
format: dataset_relative
InversionTime:
name: InversionTime
description: |
Expand Down