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

_mod entity: should it be kept, dissolved, transformed, or embraced? #70

Open
yarikoptic opened this issue Apr 13, 2024 · 1 comment
Open
Labels
consistency Aspect requiring special treatment/logic outside of generic common principles entities Changes to entities.

Comments

@yarikoptic
Copy link
Contributor

_mod was introduced and is used primarily to disambiguate different _defacemasks. So, to a degree, it encapsulates the semantic that some, but not all, _suffixes correspond to MRI modalities (really) as a summarized in a comment to #58.

It is only present only when there is a _defacemask and only for anat/, while in effect most of the time corresponding to those suffixes "implicitly" where suffix does correspond to "contrast" (not modality really).

Samples from openneuro
$> for ds in ds*; do f=$(find $ds -iname *_mod-* | head -n 1); [ -z "$f" ] && continue; echo "$f"; done    
ds000113/sub-01/ses-forrestgump/anat/sub-01_ses-forrestgump_acq-mag_mod-veno_defacemask.nii.gz
ds000224/sub-MSC01/ses-struct01/anat/sub-MSC01_ses-struct01_run-01_mod-T1w_defacemask.nii.gz
ds000233/sub-rid000001/anat/sub-rid000001_mod-T1w_defacemask.nii.gz
ds001297/sub-01/anat/sub-01_acq-filt_mod-T1w_defacemask.nii.gz
ds002718/sub-002/anat/sub-002_mod-T1w_defacemask.nii.gz
ds003645/sub-002/anat/sub-002_mod-T1w_defacemask.nii.gz
ds004192/sub-01/ses-localizer1/anat/sub-01_ses-localizer1_acq-prescannormalized_rec-pydeface_mod-T1w_defacemask.nii.gz
ds004712/sub-03286/ses-NOT1ACH001/anat/sub-03286_ses-NOT1ACH001_mod-T1w_defacemask.nii.gz

Also there is

where the point of having _mod is coming up. And as we are planing to proceed with

if we get an entity _mod which actually corresponds to modality (mri, eeg, ...) not just mere contrast, it somewhat makes it then explicit and consistent to then "embrace" that entity and use it consistently to disambiguate all files, not just _defacemasks.

Note: if to be kept just for the sake of disambiguation of some _suffix2 (e.g. _defacemask) among different _suffixes (e.g. _T1w and _T2w) as it is now, yet another use is _events.tsv files which came up in the context of

@yarikoptic yarikoptic added entities Changes to entities. consistency Aspect requiring special treatment/logic outside of generic common principles labels Apr 13, 2024
yarikoptic added a commit to yarikoptic/bids-specification that referenced this issue Apr 13, 2024
… (used in other modalities)

Relates to a discussion of _mod destiny in

bids-standard/bids-2-devel#70
@Remi-Gau
Copy link

Remi-Gau commented Apr 15, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consistency Aspect requiring special treatment/logic outside of generic common principles entities Changes to entities.
Projects
Status: No status
Development

No branches or pull requests

2 participants