-
Notifications
You must be signed in to change notification settings - Fork 111
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
Error on physio data in anat sub-directory #2164
Comments
Looks like this is an issue in both the node and deno versions of the validator. The node version validates filenames using the regex in the The deno version validates file names using the schema in the bids-specification itself. I'm still working on a PR for the specification to fix this. |
It looks like bids-standard/bids-specification#513 explicitly permitted it for I guess I would say you could use |
Thank you very much @rwblair and @effigies for fixing our issues so quickly! I tested the latest version with file names |
We tried uploading our dataset to OpenNeuro, but were faced with two validation errors. I realized I had used the legacy validator before, and OpenNeuro uses the new deno based validator. I could resolve one issue, but not this one:
We do not get this one with the legacy validator version 1.15. Is this naming scheme, that was newly supported by the patches above, not yet covered in the deno based validator? |
While conducting our multi-modal MRI study, also a physiological baseline (cardiac and respiratory) was acquired parallel to the anatomical measurements. According to the BIDS specifications on physiological recordings (https://bids-specification.readthedocs.io/en/latest/modality-specific-files/physiological-recordings.html), the physio data files (.tsv.gz and .json) may be stored in the subject's anatomical recordings sub-directory. We have T1w and PDw anatomical recordings and corresponding physio data only for the T1w recording. The subject directories currently look as follows:
The specification's naming convention for physio data within modality sub-directories is:
Therefore, in the example above, the part
<matches>
is sub-01,[_recording-<label>]
is empty (we only have one physio recording), and the modality suffix is_physio
. Hence, we havesub-01_physio.tsv.gz
as the filename. Now, we are facing two problems.I had a look at the source code
bids-validator/bids_validator/rules/file_level_rules.json
. For EEG,*_physio.tsv.gz
seems to be covered:However, there is no such block for "anat_nonparametric" (where we have T1w and PDw suffixes) in this rules file. Is this the issue for why the bids-validator complains? I'm happy to provide a PR, if this is the correct place to fix it.
The text was updated successfully, but these errors were encountered: