Hello everyone!
I’m novice in MR spectroscopy processing and I would really appreciate some help.
OS: Ubuntu WSL 20. 04. 4
spec2nii: version 0.6.10
I exported a 3D whole brain MRSI acquisition from Philips 7700 3T. I got four files:
test_raw_act.SDAT
test_raw_act.SPAR
test_raw_ref.SDAT
test_raw_ref.SPAR
I successfully converted the ‘act’ files to nifti.
But ‘ref’ files conversion give me an error. Here is the command:
spec2nii philips test_raw_ref.SDAT test_raw_ref.SPAR
And I got this error:
Traceback (last call last):
File “/home/santiago/anaconda3/bin/spec2nii”, line 8, in .
sys.exit(main())
File “/home/santiago/anaconda3/lib/python3.7/site-packages/spec2nii/spec2nii.py”, line 666, in main
spec2nii(*args)
File “/home/santiago/anaconda3/lib/python3.7/site-packages/spec2nii/spec2nii.py”, line 283, in init
args.func(args)
File “/home/santiago/anaconda3/lib/python3.7/site-packages/spec2nii/spec2nii.py”, line 565, in philips
args.special)
File “/home/santiago/anaconda3/lib/python3.7/site-packages/spec2nii/Philips/philips.py”, line 39, in read_sdat_spar_pair
spar_params[‘rows’])
File “/home/santiago/anaconda3/lib/python3.7/site-packages/spec2nii/Philips/philips.py”, line 135, in read_sdat
raw_data = np.reshape(raw_data, (rows, samples)).T.squeeze()
File “<array_function internals>”, line 6, in reshape
File “/home/santiago/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py”, line 298, in reshape
return _wrapfunc(a, ‘reshape’, newshape, order=order)
File “/home/santiago/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py”, line 57, in _wrapfunc
return bound(*args, **kwds)
ValueError: cannot resize array of size 1113088 to shape (1440,1024)
Any help is appreciated.
Link to files: test_MRSI - Google Drive