Hi @vanandrew -- following up from nipreps/fmriprep#3645.
I tested MEDIC/warpkit through the fMRIPrep integration branch on OpenNeuro ds006072, version 1.0.8, subject sub-P1R. The run starts MEDIC workflows, but fails during phase unwrapping with an IndexError.
I checked the simple BIDS pairing/shape possibility first. For sub-P1R, all 19 multi-echo BOLD run groups have matching part-mag and part-phase files, matching echo sets 1-5, and matching 4D shapes within each run. REST runs are (110, 110, 72, 516) and TASK runs are (110, 110, 72, 225) for both mag and phase.
The first failing node in my log was:
sub-P1R_ses-3_task-BOLDTASK1_dir-PA_run-1
Unless I'm missing something, I think relevant error stack is:
File ".../warpkit/unwrap.py", line 283, in unwrap_phase
combined_mask = get_largest_connected_component(combined_mask)
File ".../warpkit/utilities.py", line 182, in get_largest_connected_component
mask_data = labelled_mask == sorted_props[0].label
IndexError: list index out of range
This is then re-raised by warpkit/distortion.py as:
IndexError: An IndexError was encountered while unwrapping phase images.
This tends to happen if you have noise frames left in your data.
Full fMRIPrep/warpkit log is here: ds006072_v1_0_8_sub-P1R_run-20260509-222518_fmriprep-warpkit.log
Thanks!
David
Hi @vanandrew -- following up from nipreps/fmriprep#3645.
I tested MEDIC/warpkit through the fMRIPrep integration branch on OpenNeuro
ds006072, version1.0.8, subjectsub-P1R. The run starts MEDIC workflows, but fails during phase unwrapping with anIndexError.I checked the simple BIDS pairing/shape possibility first. For
sub-P1R, all 19 multi-echo BOLD run groups have matchingpart-magandpart-phasefiles, matching echo sets1-5, and matching 4D shapes within each run. REST runs are(110, 110, 72, 516)and TASK runs are(110, 110, 72, 225)for both mag and phase.The first failing node in my log was:
sub-P1R_ses-3_task-BOLDTASK1_dir-PA_run-1Unless I'm missing something, I think relevant error stack is:
This is then re-raised by
warpkit/distortion.pyas:Full fMRIPrep/warpkit log is here: ds006072_v1_0_8_sub-P1R_run-20260509-222518_fmriprep-warpkit.log
Thanks!
David