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] Allow .bval and .bvec files for pepolar fmaps #1754

Merged
merged 17 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from 10 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 @@ -1254,6 +1254,7 @@ EPI scans with different phase encoding directions to estimate the distortion
map corresponding to the nonuniformities of the *B<sub>0</sub>* field.
These `*_epi.nii[.gz]` - or `*_m0scan.nii[.gz]` for arterial spin labeling perfusion data - files can be 3D or 4D --
in the latter case, all timepoints share the same scanning parameters.
Some 4D scans intended for correcting DWIs may have accompanying `*_epi.bval` and `*_epi.bvec` files.
Examples of software tools using these kinds of images are FSL TOPUP and
AFNI `3dqwarp`.

Expand Down
6 changes: 3 additions & 3 deletions src/schema/rules/checks/dwi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ DWIVolumeCount:
associated '.bvec' and '.bval' files.
level: error
selectors:
- suffix == "dwi"
- intersects([suffix], ["dwi", "epi"])
- '"bval" in associations'
- '"bvec" in associations'
- type(nifti_header) != "null"
Expand All @@ -25,7 +25,7 @@ DWIBvalRows:
'.bval' files should contain exactly one row of values.
level: error
selectors:
- suffix == "dwi"
- intersects([suffix], ["dwi", "epi"])
- '"bval" in associations'
checks:
- associations.bval.n_rows == 1
Expand All @@ -38,7 +38,7 @@ DWIBvecRows:
'.bvec' files should contain exactly three rows of values.
level: error
selectors:
- suffix == "dwi"
- intersects([suffix], ["dwi", "epi"])
- '"bvec" in associations'
checks:
- associations.bvec.n_rows == 3
Expand Down
7 changes: 7 additions & 0 deletions src/schema/rules/files/deriv/preprocessed_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ fmap_pepolar_common:
space: optional
description: optional

fmap_pepolar_m0scan:
$ref: rules.files.raw.fmap.pepolar_m0scan
effigies marked this conversation as resolved.
Show resolved Hide resolved
entities:
$ref: rules.files.raw.fmap.pepolar.entities
space: optional
description: optional

fmap_TB1DAM_common:
$ref: rules.files.raw.fmap.TB1DAM
entities:
Expand Down
20 changes: 20 additions & 0 deletions src/schema/rules/files/raw/fmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,26 @@ fieldmaps:
pepolar:
suffixes:
- epi
extensions:
- .nii.gz
- .nii
- .json
- .bval
- .bvec
datatypes:
- fmap
entities:
subject: required
session: optional
acquisition: optional
ceagent: optional
direction: required
run: optional
part: optional
chunk: optional

pepolar_m0scan:
suffixes:
- m0scan
extensions:
- .nii.gz
Expand Down