Hi, hope you are doing well! I am trying to use qunex import_dicom to convert from Philips PAR/REC files to nii but have not been successful. The files get copied from /sessions/inbox/MR but are not converted (please see command and error below). In the QuNex documentation on onboarding dicom data I see that PAR/REC files are supported, is this fully implemented in QuNex 0.90.6, and if so is there an option that I need to include for it to work? Thank you for the help.
(/opt/env/qunex) [QuNex sessions]$ qunex import_dicom --sessionsfolder=/u/project/cbearden/data/Enigma/Utrecht/qunex_studyfolder/sessions --gzip=yes --check=any
/u/local/Modules/4.7.0/gcc-4.8.5/init/bash: line 37: /usr/bin/tclsh: No such file or directory
........................ Running QuNex v0.90.6 ........................
--- Full QuNex call for command: import_dicom
gmri import_dicom --sessionsfolder="/u/project/cbearden/data/Enigma/Utrecht/qunex_studyfolder/sessions" --gzip="yes" --check="any"
---------------------------------------------------------
# Generated by QuNex 0.90.6 on 2022-03-24_10.48.1648144129.794416 /u/project/cbearden/data/Enigma/Utrecht/qunex_studyfolder/processing/logs/comlogs/tmp_import_dicom_2022-03-24_10.48.1648144129.794416.log
# /u/project/cbearden/data/Enigma/Utrecht/qunex_studyfolder/processing/logs/comlogs/tmp_import_dicom_2022-03-24_10.48.1648144129.794416.log
started running import_dicom at 2022-03-24 10:48:49, track progress in /u/project/cbearden/data/Enigma/Utrecht/qunex_studyfolder/processing/logs/comlogs/tmp_import_dicom_2022-03-24_10.48.1648144129.794416.log
# Generated by QuNex 0.90.6 on 2022-03-24_10.48.1648144129.794416
#
Started running import_dicom at 2022-03-24 10:48:49
call: gmri import_dicom gzip="yes" sessionsfolder="/u/project/cbearden/data/Enigma/Utrecht/qunex_studyfolder/sessions" check="any"
-----------------------------------------
Running import_dicom
====================
---> Checking for packets in /u/project/cbearden/data/Enigma/Utrecht/qunex_studyfolder/sessions/inbox/MR
... using regular expression '(?P<packet_name>.*?)(?:\.zip$|\.tar$|\.tgz$|\.tar\..*$|$)'
... extracting subject id using regular expression '(?P<subject_id>.*)'
---> Found the following packets to process:
subject: xjv1060213 ... xjv1060213 <= xjv1060213 <- xjv1060213
---> Starting to process 1 packets ...
---=== PROCESSING xjv1060213 ===---
... copying xjv1060213 dicom files
Running sort_dicom
=================
---> Processing 14 files from /u/project/cbearden/data/Enigma/Utrecht/qunex_studyfolder/sessions/xjv1060213/inbox
ERROR
Traceback (most recent call last):
File "/opt/qunex/python/qx_utilities/general/core.py", line 526, in runWithLog
result = function(**args)
File "/opt/qunex/python/qx_utilities/general/dicom.py", line 2535, in import_dicom
sort_dicom(folder=sfolder)
File "/opt/qunex/python/qx_utilities/general/dicom.py", line 1532, in sort_dicom
info = readPARInfo(dcm)
File "/opt/qunex/python/qx_utilities/general/dicom.py", line 130, in readPARInfo
info['TR'] = float(info['Repetition time [msec]'])
KeyError: 'Repetition time [msec]'
-----------------------------------------
Finished at 2022-03-24 10:48:53
I get the same error when trying sort_dicom for the single session