Description
Describe your problem in detail.
Note that this issue may apply to more datatype in BIDS but I have not checked it systematically.
As far I can tell it is not mentioned in the specification that files cannot differ just by their extension.
For example, modifying the micr_SEM bids example to have 2 times the same data that differ only by extension:
/home/remi/github/bids/examples/micr_SEM
├── dataset_description.json
├── participants.json
├── participants.tsv
├── README
├── samples.json
├── samples.tsv
└── sub-01
├── ses-01
│ └── micr
│ ├── sub-01_ses-01_sample-A_photo.jpg < -- data: file 1
│ ├── sub-01_ses-01_sample-A_photo.json
│ ├── sub-01_ses-01_sample-A_photo.tif < -- data: file 2
│ ├── sub-01_ses-01_sample-A_SEM.json
│ └── sub-01_ses-01_sample-A_SEM.png
├── ses-02
├── sub-01_sessions.json
└── sub-01_sessions.tsv
From my current reading of the spec, this could be valid.
And also the bids validator does not complain about this: except from sayaing that not all subject have the same number of files.
I have mostly checked with picture files *_photo.*
(eeg, meg, micr) but it also seems to be the case for eeg files:
bids/examples/eeg_ds000117/sub-01/eeg
├── sub-01_coordsystem.json
├── sub-01_electrodes.tsv
├── sub-01_task-facerecognition_run-1_eeg.eeg <--- duplicate data file with different extension
├── sub-01_task-facerecognition_run-1_eeg.fdt
├── sub-01_task-facerecognition_run-1_eeg.set
├── sub-01_task-facerecognition_run-1_events.tsv
...
Am I missing something but maybe this type of potential data duplication should be disallowed?
Describe what you expected.
I would expect an error like for example in the case of .nii
and .nii.gz
where the validator throws this error:
[ERR] NIfTI file exist with both '.nii' and '.nii.gz' extensions. (code: 74 - DUPLICATE_NIFTI_FILES)
./sub-Sub103/perf/sub-Sub103_asl.nii
./sub-Sub103/perf/sub-Sub103_asl.nii.gz
BIDS specification section
No response