gbook / nidb

NeuroInformatics Database
GNU General Public License v3.0
26 stars 8 forks source link

Mismatched file names between json and .nii.gz #122

Closed andersonwinkler closed 1 year ago

andersonwinkler commented 1 year ago

The new functionality that saves the ,json alongside the .nii.gz even when not exporting BIDS is great!

However, the file names aren't matched. This is the output from "ls *", showing the contents of the various series:

10:
dicom_high_res_dti_20090314085520_10.bval.gz  dicom_high_res_dti_20090314085520_10.json.gz
dicom_high_res_dti_20090314085520_10.bvec.gz  S4450HEQ_1_10_00001.nii.gz

15:
dicom_field_mapping_20090314085520_15_e1.json.gz  S4450HEQ_1_15_00001.nii.gz
dicom_field_mapping_20090314085520_15_e2.json.gz  S4450HEQ_1_15_00002.nii.gz

16:
dicom_field_mapping_20090314085520_16_e2_ph.json.gz  S4450HEQ_1_16_00001.nii.gz

17:
dicom_ep2d_bold_20090314085520_17.json.gz  S4450HEQ_1_17_00001.nii.gz

18:
dicom_ep2d_bold_MoCo_20090314085520_18.json.gz  S4450HEQ_1_18_00001.nii.gz

2:
dicom_MPRAGE_T1_AX_0.8_mm_TI-766_20090314085520_2.json.gz  S4450HEQ_1_2_00001.nii.gz

3:
dicom_MPRAGE_T1_AX_0.8_mm_TI-773_20090314085520_3.json.gz  S4450HEQ_1_3_00001.nii.gz

4:
dicom_MPRAGE_T1_AX_0.8_mm_TI-780_20090314085520_4.json.gz  S4450HEQ_1_4_00001.nii.gz

5:
dicom_MPRAGE_T1_AX_0.8_mm_TI-787_20090314085520_5.json.gz  S4450HEQ_1_5_00001.nii.gz

6:
dicom_MPRAGE_T1_AX_0.8_mm_TI-794_20090314085520_6.json.gz  S4450HEQ_1_6_00001.nii.gz

7:
dicom_MPRAGE_T1_AX_0.8_mm_TI-801_20090314085520_7.json.gz  S4450HEQ_1_7_00001.nii.gz

8:
dicom_MPRAGE_T1_AX_0.8_mm_TI-808_20090314085520_8.json.gz  S4450HEQ_1_8_00001.nii.gz

9:
dicom_FLAIR_3D_OPTIMIZED_20090314085520_9.json.gz  S4450HEQ_1_9_00001.nii.gz

When there are just 2 files (the .json and the .nii.gz) it's easy to fix, but sometimes there are more files so trying to amend becomes complicated...

Thanks!

Anderson