XNAT vs Gyrus DICOMs
Imaging data may be pulled from XNAT, WPIC-XXX@cortex (mounted gyrus /disk/mace2/scan_data), or flywheel.
The imaging data is identical but the dicoms are not.
XNAT puts it's own information in the header and that changes all the dicom offsets. But the tags and values are all the same. So dicom_info in matlab, pydicom in python, dcmdumps, and AFNI's dicom_hdr all will report the same values.
gyrus=2020.10.10-09.41.12/11688_20201010/T1_MPRAGE_Sag_Res1mm_256x256.10/MR.1.3.12.2.1107.5.2.43.167092.2020101010005271808660254 xnat=xnat/11688_20201010/10/DICOM/1.3.12.2.1107.5.2.43.167092.30000020100814342951600000022-10-1-5c9s0t.dcm vimdiff <(dicom_hdr $gyrus) <(dicom_hdr $xnat)
The imaging data is also identical.
dcm2niix -o . -f gyruns /Volumes/Hera/Raw/MRprojects/SlipsPilot/2020.10.10-09.41.12/11688_20201010/T1_MPRAGE_Sag_Res1mm_256x256.10/ dcm2niix -o . -f xnat xnat/11688_20201010/10/DICOM/ 3dBrickStat -slow '3dcalc(-a gyruns.nii -b xnat.nii -expr abs(a-b) )' # 0 -- all voxels have same value diff gyruns.json xnat.json # No difference
0
More interesting to note: the dicoms file names from mace2/scandate are not necessarily sorted by acquisition number (0020,0013 = REL Instance Number). I had to be careful when picking the dicom to compare. the first by timestamp (gyrus) and first by number (xnat) are not the same.
find /Volumes/Hera/Raw/MRprojects/SlipsPilot/2020.10.10-09.41.12/11688_20201010/T1_MPRAGE_Sag_Res1mm_256x256.10/ -iname "MR*" | head -n7 | xargs dicom_hinfo -tag 0020,0013 | sed 's:/.*T1:...:'
| …MPRAGESagRes1mm256x256.10/MR.1.3.12.2.1107.5.2.43.167092.2020101010005270908960240 | 12 |
| …MPRAGESagRes1mm256x256.10/MR.1.3.12.2.1107.5.2.43.167092.2020101010005271137860242 | 17 |
| …MPRAGESagRes1mm256x256.10/MR.1.3.12.2.1107.5.2.43.167092.2020101010005271193360244 | 13 |
| …MPRAGESagRes1mm256x256.10/MR.1.3.12.2.1107.5.2.43.167092.2020101010005271282860246 | 18 |
| …MPRAGESagRes1mm256x256.10/MR.1.3.12.2.1107.5.2.43.167092.2020101010005271377760248 | 14 |
| …MPRAGESagRes1mm256x256.10/MR.1.3.12.2.1107.5.2.43.167092.2020101010005271746260250 | 3 |
| …MPRAGESagRes1mm256x256.10/MR.1.3.12.2.1107.5.2.43.167092.2020101010005271808660254 | 1 |
find xnat/11688_20201010/10/DICOM/ -iname "*dcm" | sort -V | head -n7 | xargs dicom_hinfo -tag 0020,0013 | sed 's:/.*DICOM:...:'
| xnat…/1.3.12.2.1107.5.2.43.167092.30000020100814342951600000022-10-1-5c9s0t.dcm | 1 |
| xnat…/1.3.12.2.1107.5.2.43.167092.30000020100814342951600000022-10-2-rsozxs.dcm | 2 |
| xnat…/1.3.12.2.1107.5.2.43.167092.30000020100814342951600000022-10-3-1c8sl1y.dcm | 3 |
| xnat…/1.3.12.2.1107.5.2.43.167092.30000020100814342951600000022-10-4-1fcn27e.dcm | 4 |
| xnat…/1.3.12.2.1107.5.2.43.167092.30000020100814342951600000022-10-5-hugd59.dcm | 5 |
| xnat…/1.3.12.2.1107.5.2.43.167092.30000020100814342951600000022-10-6-1psfhlt.dcm | 6 |
| xnat…/1.3.12.2.1107.5.2.43.167092.30000020100814342951600000022-10-7-1xukwcs.dcm | 7 |
