≡ ⎆
MRRC Wiki
Trace: • XNAT vs Gyrus DICOMs

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.202010101000527090896024012
…MPRAGESagRes1mm256x256.10/MR.1.3.12.2.1107.5.2.43.167092.202010101000527113786024217
…MPRAGESagRes1mm256x256.10/MR.1.3.12.2.1107.5.2.43.167092.202010101000527119336024413
…MPRAGESagRes1mm256x256.10/MR.1.3.12.2.1107.5.2.43.167092.202010101000527128286024618
…MPRAGESagRes1mm256x256.10/MR.1.3.12.2.1107.5.2.43.167092.202010101000527137776024814
…MPRAGESagRes1mm256x256.10/MR.1.3.12.2.1107.5.2.43.167092.20201010100052717462602503
…MPRAGESagRes1mm256x256.10/MR.1.3.12.2.1107.5.2.43.167092.20201010100052718086602541
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.dcm3
xnat…/1.3.12.2.1107.5.2.43.167092.30000020100814342951600000022-10-4-1fcn27e.dcm4
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.dcm6
xnat…/1.3.12.2.1107.5.2.43.167092.30000020100814342951600000022-10-7-1xukwcs.dcm7
Previous Next

MRRC Wiki

Table of Contents

  • Onboarding
  • Scanners
    • 3T Prisma 1
    • 3T Prisma 2
    • 3T Prisma 3
    • 7T plus (BST3)
    • 7T Terra.X
  • MRRC MR Data
    • Quality Assurance
    • ReproIn naming convention
    • XNAT
    • Flywheel
    • Filesystem
  • Supporting Hardware
    • Experimental Task PCs
    • Eye Tracking
      • SR Research EyeLink 1000 Plus
      • Avotec Arrington Eye Tracker
  • MR Physics Reports
  • Imaging Notes
    • XNAT vs Gyrus DICOMs
    • Resampling vs Registration
    • MR Task Notes
      • Psychtoolbox
  • NPAC
    • NPAC Support and Services
  • sitemap