ignore irrelevant modalities when initializing layout #2386
Labels
BIDS
effort: low
Estimated low effort task
error reporting
impact: high
Estimated high impact task
optimization
UX
Milestone
In theory, BIDS datasets should be completely valid, in practice, sometimes not all files are valid in a dataset yet.
If a lab is working on converting their project to a BIDS valid dataset that contains many modalities, they may focus on getting
anat
,func
, andfmap
to get things right, but may not have finished:dwi
perf
meg
eeg
ieeg
beh
Currently, one can skip validation (even if you do not, a multitude of irrelevant errors are ignored)
fmriprep/fmriprep/utils/bids.py
Lines 77 to 124 in a42d929
but if one has malformed json files, the pybids indexer will still fail on potentially irrelevant (to fmriprep) files.
So my proposed solution is to ignore all the directories above when creating the bids layout so they will not be indexed (e.g.,
re.compile("sub-.*/beh")
):fmriprep/fmriprep/config.py
Lines 448 to 455 in 4bb8a61
This may also have the added benefit of making indexing faster on larger datasets with many modalities.
The text was updated successfully, but these errors were encountered: