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] Remove task entity from DWI and PERF time series file templates #1703

Merged
merged 2 commits into from
Feb 13, 2024
Merged
Changes from all 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
33 changes: 22 additions & 11 deletions src/schema/rules/files/raw/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,25 @@ timeseries:
run: optional
recording: optional

timeseries__mri_no_task:
suffixes:
- physio
- stim
extensions:
- .tsv.gz
- .json
datatypes:
- dwi
- perf
entities:
subject: required
session: optional
acquisition: optional
run: optional
reconstruction: optional
direction: optional
recording: optional

# Specializations
# In these rules, we use $ref to retrieve most of an object, and then override

Expand Down Expand Up @@ -72,23 +91,15 @@ events__pet:
reconstruction: optional
run: optional

timeseries__mri:
$ref: rules.files.raw.task.timeseries
datatypes:
- dwi
- perf
entities:
$ref: rules.files.raw.task.timeseries.entities
reconstruction: optional
direction: optional

timeseries__func:
$ref: rules.files.raw.task.timeseries
datatypes:
- func
entities:
$ref: rules.files.raw.task.timeseries__mri.entities
$ref: rules.files.raw.task.timeseries.entities
ceagent: optional
reconstruction: optional
direction: optional

timeseries__meg:
$ref: rules.files.raw.task.timeseries
Expand Down