Skip to content

Commit

Permalink
Merge pull request #1074 from effigies/name-tables
Browse files Browse the repository at this point in the history
SCHEMA: Convert datatype lists to objects
  • Loading branch information
effigies authored Apr 14, 2022
2 parents a022462 + 24c0aa4 commit 5fcde7b
Show file tree
Hide file tree
Showing 12 changed files with 120 additions and 109 deletions.
36 changes: 18 additions & 18 deletions src/schema/rules/datatypes/anat.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# Nonparametric
- suffixes:
nonparametric:
suffixes:
- T1w
- T2w
- PDw
Expand Down Expand Up @@ -28,8 +28,8 @@
reconstruction: optional
part: optional

# Parametric
- suffixes:
parametric:
suffixes:
- T1map
- T2map
- T2starmap
Expand Down Expand Up @@ -61,8 +61,8 @@
ceagent: optional
reconstruction: optional

# Defacemask
- suffixes:
defacemask:
suffixes:
- defacemask
extensions:
- .nii.gz
Expand All @@ -79,8 +79,8 @@
reconstruction: optional
modality: optional

# Multi-echo
- suffixes:
multiecho:
suffixes:
- MESE
- MEGRE
extensions:
Expand All @@ -99,8 +99,8 @@
echo: required
part: optional

# Multi-flip
- suffixes:
multiflip:
suffixes:
- VFA
extensions:
- .nii.gz
Expand All @@ -119,8 +119,8 @@
flip: required
part: optional

# Multi-inv
- suffixes:
multiinversion:
suffixes:
- IRT1
extensions:
- .nii.gz
Expand All @@ -138,8 +138,8 @@
inversion: required
part: optional

# MP2RAGE
- suffixes:
mp2rage:
suffixes:
- MP2RAGE
extensions:
- .nii.gz
Expand All @@ -159,8 +159,8 @@
inversion: required
part: optional

# VFA+MT
- suffixes:
vfamt:
suffixes:
- MPM
- MTS
extensions:
Expand All @@ -181,8 +181,8 @@
mtransfer: required
part: optional

# MTR
- suffixes:
mtr:
suffixes:
- MTR
extensions:
- .nii.gz
Expand Down
7 changes: 4 additions & 3 deletions src/schema/rules/datatypes/beh.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# Continuous data
- suffixes:
timeseries:
suffixes:
- stim
- physio
extensions:
Expand All @@ -17,7 +17,8 @@
recording: optional

# Non-continuous data
- suffixes:
noncontinuous:
suffixes:
- events
- beh
extensions:
Expand Down
12 changes: 6 additions & 6 deletions src/schema/rules/datatypes/dwi.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# DWI
- suffixes:
dwi:
suffixes:
- dwi
extensions:
- .nii.gz
Expand All @@ -18,8 +18,8 @@
run: optional
part: optional

# Single-band reference images
- suffixes:
sbref:
suffixes:
- sbref
extensions:
- .nii.gz
Expand All @@ -35,8 +35,8 @@
run: optional
part: optional

# Timeseries
- suffixes:
timeseries:
suffixes:
- physio
- stim
extensions:
Expand Down
22 changes: 14 additions & 8 deletions src/schema/rules/datatypes/eeg.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
- suffixes:
eeg:
suffixes:
- eeg
extensions:
- .json
Expand All @@ -19,7 +20,8 @@
acquisition: optional
run: optional

- suffixes:
channels:
suffixes:
- channels
extensions:
- .json
Expand All @@ -33,7 +35,8 @@
acquisition: optional
run: optional

- suffixes:
coordsystem:
suffixes:
- coordsystem
extensions:
- .json
Expand All @@ -45,7 +48,8 @@
acquisition: optional
space: optional

- suffixes:
electrodes:
suffixes:
- electrodes
extensions:
- .json
Expand All @@ -58,7 +62,8 @@
acquisition: optional
space: optional

- suffixes:
events:
suffixes:
- events
extensions:
- .json
Expand All @@ -72,7 +77,8 @@
acquisition: optional
run: optional

- suffixes:
photo:
suffixes:
- photo
extensions:
- .jpg
Expand All @@ -83,8 +89,8 @@
session: optional
acquisition: optional

# Timeseries
- suffixes:
timeseries:
suffixes:
- physio
- stim
extensions:
Expand Down
28 changes: 14 additions & 14 deletions src/schema/rules/datatypes/fmap.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# Fieldmaps
- suffixes:
fieldmaps:
suffixes:
- phasediff
- phase1
- phase2
Expand All @@ -20,8 +20,8 @@
acquisition: optional
run: optional

# PEPolar
- suffixes:
pepolar:
suffixes:
- epi
- m0scan
extensions:
Expand All @@ -38,8 +38,8 @@
direction: required
run: optional

# TB1DAM
- suffixes:
TB1DAM:
suffixes:
- TB1DAM
extensions:
- .nii.gz
Expand All @@ -58,8 +58,8 @@
inversion: optional
part: optional

# TB1EPI
- suffixes:
TB1EPI:
suffixes:
- TB1EPI
extensions:
- .nii.gz
Expand All @@ -79,8 +79,8 @@
inversion: optional
part: optional

# RFFieldMaps
- suffixes:
RFFieldMaps:
suffixes:
- TB1AFI
- TB1TFL
- TB1RFM
Expand All @@ -103,8 +103,8 @@
inversion: optional
part: optional

# TB1SRGE
- suffixes:
TB1SRGE:
suffixes:
- TB1SRGE
extensions:
- .nii.gz
Expand All @@ -124,8 +124,8 @@
inversion: required
part: optional

# Parametric
- suffixes:
parametric:
suffixes:
- TB1map
- RB1map
extensions:
Expand Down
16 changes: 8 additions & 8 deletions src/schema/rules/datatypes/func.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# Func
- suffixes:
func:
suffixes:
- bold
- cbv
- sbref
Expand All @@ -22,8 +22,8 @@
echo: optional
part: optional

# Phase (deprecated)
- suffixes:
phase:
suffixes:
- phase # deprecated
extensions:
- .nii.gz
Expand All @@ -42,8 +42,8 @@
run: optional
echo: optional

# Events
- suffixes:
events:
suffixes:
- events
extensions:
- .tsv
Expand All @@ -60,8 +60,8 @@
direction: optional
run: optional

# Timeseries
- suffixes:
timeseries:
suffixes:
- physio
- stim
extensions:
Expand Down
Loading

0 comments on commit 5fcde7b

Please sign in to comment.