Dear Qunex experts, I am getting the same error in hcp_pre_freesurfer pipeline. Both phase and magnitude fieldmaps are present: /unprocessed/FieldMap/1002_FieldMap_Magnitude.nii.gz/unprocessed/FieldMap/1002_FieldMap_Phase.nii.gz and the fieldmaps have fm(1) specified in the batch file (attached). However, I am getting the following error:
Logs:
# Generated by QuNex 0.93.6 on 2022-08-22_20.06.41.541732
#
=================================================================
gmri hcp_pre_freesurfer \
--sessionsfolder="/storage/brno2/home/pe_so/qunex/ocd/sessions" \
--sessions="/storage/brno2/home/pe_so/qunex/ocd/processing/batch.txt" \
--overwrite="no" \
--logfolder="/storage/brno2/home/pe_so/qunex/ocd/processing/logs" \
--sessionids="" \
=================================================================
Starting multiprocessing sessions in /storage/brno2/home/pe_so/qunex/ocd/processing/batch.txt with a pool of 1 concurrent processes
---- Running local
Starting processing of sessions 1002 at Monday, 22. August 2022 20:06:41
------------------------------------------------------------
Session id: 1002
[started on Monday, 22. August 2022 20:06:41]
Running HCP PreFreeSurfer Pipeline [HCPStyleData] ...
---> T1w image file present.
---> T2w image file present.
ERROR: Unknown error occured:
...................................
Traceback (most recent call last):
File "/opt/qunex/python/qx_utilities/hcp/process_hcp.py", line 735, in hcp_pre_freesurfer
fmmag = hcp['fieldmap'][int(fmnum)]['magnitude']
KeyError: 1
...................................
HCP PreFS completed on Monday, 22. August 2022 20:06:41
All of this is created in the import_dicom => create_session_info => setup_hcp pipeline. Did you maybe do any edits to input parameters, files or output folders after you ran this or in the middle of running it?
Can you also paste the mapping file here, just so we have all the information, thanks!
So, the problem is that /unprocessed/FieldMap/1002_FieldMap_Magnitude.nii.gz should be stored in /unprocessed/FieldMap1/1002_FieldMap_Magnitude.nii.gz. Let us know if the 1 will be again missing from the FieldMap folder and we will investigate what is going on. We ran some tests but were unable to reproduce the described issue.