bids-specification
bids-specification copied to clipboard
Clarify data formats for imaging data (MRI, microscopy, ...), remove MRI-centric language from common principles
Dear developers,
I can't find an explicit format requirements for MRI.
All examples/templates implies Nifti format with one file (.nii). Will the Nifti 2 files (.hdr+.img) will also compatible with BIDS? Same question for DICOM images.
If BIDS restrict the file formats for MRI (similar to EEG restrictions), can these restrictions introduced into documentation?
P.S. Similar issue exists for PET, there is explicit mention of Nifti file, but without precision of one-file schema (.nii).
It's under Common Principles:
All imaging data MUST be stored using the NIfTI file format.
https://bids-specification.readthedocs.io/en/latest/common-principles.html#imaging-files
where exactly would you have expected this information to be instead?
Will the Nifti 2 files (.hdr+.img) will also compatible with BIDS
I don't think so
For DICOM I would redirect people towards this discussion / draft proposal
https://github.com/bids-standard/bids-specification/pull/1551
It's under Common Principles:
Indeed, didn't fought to look there. But it will be better to place it into MRI explicitly. Other modalities provide the format in which data is expected.
Also, it leads to contradiction (saw it just now):
All imaging data MUST be stored using the NIfTI file format. We RECOMMEND using compressed NIfTI files (.nii.gz), either version 1.0 or 2.0.
Microscopy raw data MUST be stored in one of the following formats: Portable Network Graphics (.png) Tag Image File Format (.tif) OME-TIFF (.ome.tif for standard TIFF files or .ome.btf for BigTIFF files) OME-ZARR/NGFF (.ome.zarr directories)
I guess MRI was written first, when imaging data meant MRI only.
I guess MRI was written first, when imaging data meant MRI only.
That is true. I think we should adjust this, thanks for bringing it up.
I agree that this section should better live under the datatype specific sections: namely MRI and PET (for now but with MRS soon).
I usually do not like duplication but in this case, I think most users will have the same expectation as @nbeliy on this one.
Plus we can macroify this if we want to avoid duplication.
@nbeliy do you feel like opening a PR for this one?
Will try, but will need an editor, I'm very dyslexic.
Just to be clear:
- I would remove image data format from Common principles (also check if there some other MRI specific stuff).
- I would add Data format section into MRI
- Add annex with data formats table for all defined modalities
Is it good for you?
Will try, but will need an editor, I'm very dyslexic.
No worries, codespell will do a first pass and we (maintainers) will help you along.
Just to be clear:
1. I would remove image data format from Common principles (also check if there some other MRI specific stuff).
yes
2. I would add Data format section into MRI
Given that Nifti are used for PET as well it will have to be added in the PET page too.
3. Add annex with data formats table for all defined modalities
I would say: let's start simple and keep that for another PR. Though I think some kind of summary table would indeed be welcome especially given the growing list of datatypes BIDS support.
Most likely this kind of table could actually be generated using the BIDS schema and some python code to create the table automatically. But as I said: let's keep that for another PR.
Started the PR (#1720)