[RESOLVED] Dedrift and resample error

Hi,
I’m having trouble with the hcp_dedrift_and_resample command in the new QUNEX container (qunex_suite:1.3.0). Here’s the exact command I ran:

qunex_container hcp_dedrift_and_resample
–batchfile=“${STUDY_FOLDER}/processing/batch.txt”
–sessionsfolder=“${STUDY_FOLDER}/sessions”
–sessions=“${SESSIONS}”
–hcp_icafix_bolds=“rsfMRI”
–hcp_msmall_bolds=“rsfMRI”
–hcp_icafix_highpass=2000
–dockeropt=“-v ${BIND_FOLDER}:${BIND_FOLDER}”
–hcp_matlab_mode=“compiled”
–container=“${QUNEX_CONTAINER}”
–parsessions=20
–hcp_filename=userdefined

Unfortunately, the command fails for every subject with the error: “command failed with return code: 255”
I’ve attached the full log file for this run. For comparison, the exact same command worked without issues on the previous container version (qunexcontainer:0.99.2d_edited). Other commands such as hcp_fix and hcp_msmall also execute successfully under qunex_suite:1.3.0—I’ve attached one of those logs as well.

Any idea on what could be the problem?

thanks in advance for your help!
error_hcp_dedrift_and_resample_MSMAll_InitialReg_2_d40_WRN_30015_2025-08-02_09.36.11.025002.log (36.2 KB)
done_hcp_msmall_rfMRI_REST_30015_2025-08-01_16.17.03.407692.log (2.0 MB)

Yael

Hi Yael,

The error above seems to be because HCP pipelines MATLAB code for hcp_dedrift_and_resample was compiled for a very old MATLAB version (2017). What is weird is that this error is not popping up on our end and hcp_dedrift_and_resample is a part of several pre-release tests that we run.

There are a couple of possible solutions here. First, you can try with the recently released 1.3.1. I think the HCP team recently recompiled all the code for newer MATLAB versions, so with the latest HCP Pipelines that are in the 1.3.1 container this could be fixed.

Second, you can set --hcp_matlab_mode=octave, this will use Octave that is installed in the container instead of compiled MATLAB code.

Let me know how it goes.

Best, Jure

Hi,

Any updates on this?

Best, Jure

Here’s a short version you can paste:

Hi Jure,
Thanks for the guidance and sorry for the delay. I’m running a new preprocessing batch now. When I reach hcp_dedrift_and_resample, I’ll try those options and report back with results/logs.
Best,
Yael

Also, I just released 1.3.2 which fixes some bugs in the steps preceeding hcp_dedrift_and_resample. As always, best to use the latest version!

Jure