Hi,
I am trying to convert epi NIFTI files to BRIK format, but am having problems. When I do 3dinfo on the NIFTI files, it says that they are in orig space. When I use 3dcopy to convert to BRIK (3dcopy inset prefix) the output is in tlrc space. When I try to use 3drefit to change the view back to orig, the image moves dramatically and no longer aligns with my anatomical. Is there a reason why afni may want to convert NIFTI files to tlrc space? Or why they would move drastically in space when I try to change the view back to orig?
This is creating fatal errors when I try to run afni_proc, so I would be grateful for any help!
If this helps, here is the output of 3dinfo for the NIFTI file and for the 3dcopied file in orig space (the one that is grossly misaligned)
[gowinjl@biowulf 3537997]$ 3dinfo nv_3537997_20141103_resting_state.nii
++ 3dinfo: AFNI version=AFNI_17.2.10 (Aug 30 2017) [64-bit]
Dataset File: nv_3537997_20141103_resting_state.nii
Identifier Code: XYZ_Kjr2NHWk-5QN8JmicU5DOw Creation Date: Fri Nov 21 09:39:47 2014
Template Space: ORIG
Dataset Type: Echo Planar (-epan)
Byte Order: LSB_FIRST {assumed} [this CPU native = LSB_FIRST]
Storage Mode: NIFTI
Storage Space: 88,473,600 (88 million [mega]) bytes
Geometry String: “MATRIX(3.75,0,0,-123.5351,0,-3.75,0,113.4413,0,0,3.8,-62.14165):64,64,36”
Data Axes Tilt: Plumb
Data Axes Orientation:
first (x) = Right-to-Left
second (y) = Posterior-to-Anterior
third (z) = Inferior-to-Superior [-orient RPI]
R-to-L extent: -121.574 [R] -to- 114.676 [L] -step- 3.750 mm [ 64 voxels]
A-to-P extent: -122.188 [A] -to- 114.062 [P] -step- 3.750 mm [ 64 voxels]
I-to-S extent: 42.776 [S] -to- 175.776 [S] -step- 3.800 mm [ 36 voxels]
Number of time steps = 300 Time step = 2.00000s Origin = 0.00000s
– At sub-brick #0 ‘#0’ datum type is short: 0 to 1852
– At sub-brick #1 ‘#1’ datum type is short: 0 to 1841
– At sub-brick #2 ‘#2’ datum type is short: 0 to 1842
That looks like 2 different transformations, depending on
how obliquity affects it. Certainly the qform_code is
different from the sform_code, which is uncommon.
Would you also show the actual transformation matrices?
Could that command have caused the problem with the file?
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.