Dear HCP experts,
I'm experiencing a strange problem where the IcaFixProcessing is now failing where previously it has been running fine.
I have been processing a large dataset running the HCP pipeline, the last few subjects have reliably failed in the same way at the point of running fix.
It appears to be failing to generate the cleaned filtered_func_data and then subsequent steps fail to find necessary files, but I have no idea why or how this has started happening.
This is the output of .fix.log from a failed subject
< M A T L A B (R) >
Copyright 1984-2019 The MathWorks, Inc.
R2019b Update 5 (9.7.0.1319299) 64-bit (glnxa64)
February 19, 2020
For online documentation, see https://www.mathworks.com/support
For product information, visit www.mathworks.com.
aggressive = 0
domot = 0
hp = -1.000000
DOvol = 1
TR = 0.800000
{ Error using file_array/permute (line 10)
file_array objects can not be permuted.
Error in read_gifti_file>gifti_Data (line 206)
d = permute(reshape(d,fliplr(s.Dim)),length(s.Dim):-1:1);
Error in read_gifti_file>gifti_DataArray (line 126)
s(1).data = gifti_Data(t,c(i),s(1).attributes);
Error in read_gifti_file (line 45)
this.data{end+1} = gifti_DataArray(t,uid(i),filename);
Error in gifti (line 100)
this = read_gifti_file(varargin{1},giftistruct);
Error in ciftiopen (line 31)
cifti = gifti([tmpfile '.gii']);
Error in fix_3_clean (line 62)
BO=ciftiopen('Atlas.dtseries.nii',WBC);
}
>>
This is the .fix.log output from a successful subject.
< M A T L A B (R) >
Copyright 1984-2019 The MathWorks, Inc.
R2019b Update 5 (9.7.0.1319299) 64-bit (glnxa64)
February 19, 2020
For online documentation, see https://www.mathworks.com/support
For product information, visit www.mathworks.com.
aggressive = 0
domot = 0
hp = -1.000000
DOvol = 1
TR = 0.800000
Elapsed time is 5.047619 seconds.
ans =
'unaggressive cleanup'
Elapsed time is 10.815345 seconds.
Elapsed time is 2.094347 seconds.
>>
Here is the command line output when running a (failed) fix on a subject (the first part lists settings and all versions of software/pipelines etc):-
cr291@sn-analysis01:/research/cisc2/projects/ward_connectomesyn/scripts_batches/hcpscripts/subjectscripts/CISC28809$ ./IcaFixProcessingBatch_28809.sh
-- IcaFixProcessingBatch_28809.sh: Specified Command-Line Options: -- Start --
StudyFolder: /research/cisc1/projects/ward_connectomesyn/hcpdata
Subjlist: 28809
EnvironmentScript: /usr/local/hcp/SetUpHCPPipeline.sh
RunLocal: TRUE
-- IcaFixProcessingBatch_28809.sh: Specified Command-Line Options: -- End --
28809
InputFile: /research/cisc1/projects/ward_connectomesyn/hcpdata/28809/MNINonLinear/Results/rfMRI_REST1_AP/rfMRI_REST1_AP@/research/cisc1/projects/ward_connectomesyn/hcpdata/28809/MNINonLinear/Results/rfMRI_REST1_PA/rfMRI_REST1_PA@/research/cisc1/projects/ward_connectomesyn/hcpdata/28809/MNINonLinear/Results/rfMRI_REST2_AP/rfMRI_REST2_AP@/research/cisc1/projects/ward_connectomesyn/hcpdata/28809/MNINonLinear/Results/rfMRI_REST2_PA/rfMRI_REST2_PA
About to run: /usr/local/hcp/ICAFIX/hcp_fix_multi_run /research/cisc1/projects/ward_connectomesyn/hcpdata/28809/MNINonLinear/Results/rfMRI_REST1_AP/rfMRI_REST1_AP@/research/cisc1/projects/ward_connectomesyn/hcpdata/28809/MNINonLinear/Results/rfMRI_REST1_PA/rfMRI_REST1_PA@/research/cisc1/projects/ward_connectomesyn/hcpdata/28809/MNINonLinear/Results/rfMRI_REST2_AP/rfMRI_REST2_AP@/research/cisc1/projects/ward_connectomesyn/hcpdata/28809/MNINonLinear/Results/rfMRI_REST2_PA/rfMRI_REST2_PA 2000 /research/cisc1/projects/ward_connectomesyn/hcpdata/28809/MNINonLinear/Results/rfMRI_REST/rfMRI_REST FALSE HCP_hp2000.RData 10 FALSE
Sat Nov 6 21:51:47 GMT 2021:hcp_fix_multi_run: HCPPIPEDIR: /usr/local/hcp
Sat Nov 6 21:51:47 GMT 2021:hcp_fix_multi_run: CARET7DIR: /usr/local/workbench/bin_rh_linux64
Sat Nov 6 21:51:47 GMT 2021:hcp_fix_multi_run: FSLDIR: /usr/local/fsl
Sat Nov 6 21:51:47 GMT 2021:hcp_fix_multi_run: FSL_FIXDIR: /usr/local/fix
Sat Nov 6 21:51:47 GMT 2021:hcp_fix_multi_run: Showing HCP Pipelines version
v4.3.0
Sat Nov 6 21:51:47 GMT 2021:hcp_fix_multi_run: Showing Connectome Workbench (wb_command) version
Connectome Workbench
Type: Command Line Application
Version: 1.5.0
Qt Compiled Version: 5.7.0
Qt Runtime Version: 5.7.0
Commit: 76441605d20536d81034a64c9d34ec393aa528b9
Commit Date: 2021-02-16 13:46:47 -0600
Compiled with OpenMP: YES
Compiler: g++ (/export/gcc-4.8.5/bin)
Compiler Version: 4.8.5
Compiled Debug: NO
Operating System: Linux
Sat Nov 6 21:51:47 GMT 2021:hcp_fix_multi_run: Showing FSL version
Sat Nov 6 21:51:47 GMT 2021:hcp_fix_multi_run: INFO: Determined that the FSL version in use is 6.0.4:ddd0a010
Sat Nov 6 21:51:47 GMT 2021:hcp_fix_multi_run: FSL version: 6.0.4:ddd0a010
Sat Nov 6 21:51:47 GMT 2021:hcp_fix_multi_run: FIX version: 1.06.15
Sat Nov 6 21:51:47 GMT 2021:hcp_fix_multi_run: FSL_FIX_MATLAB_MODE: 1
Sat Nov 6 21:51:47 GMT 2021:hcp_fix_multi_run: fMRI Names: /research/cisc1/projects/ward_connectomesyn/hcpdata/28809/MNINonLinear/Results/rfMRI_REST1_AP/rfMRI_REST1_AP /research/cisc1/projects/ward_connectomesyn/hcpdata/28809/MNINonLinear/Results/rfMRI_REST1_PA/rfMRI_REST1_PA /research/cisc1/projects/ward_connectomesyn/hcpdata/28809/MNINonLinear/Results/rfMRI_REST2_AP/rfMRI_REST2_AP /research/cisc1/projects/ward_connectomesyn/hcpdata/28809/MNINonLinear/Results/rfMRI_REST2_PA/rfMRI_REST2_PA
Sat Nov 6 21:51:47 GMT 2021:hcp_fix_multi_run: highpass: 2000
Sat Nov 6 21:51:47 GMT 2021:hcp_fix_multi_run: ConcatName: /research/cisc1/projects/ward_connectomesyn/hcpdata/28809/MNINonLinear/Results/rfMRI_REST/rfMRI_REST
Sat Nov 6 21:51:47 GMT 2021:hcp_fix_multi_run: doMotionRegression: FALSE
Sat Nov 6 21:51:47 GMT 2021:hcp_fix_multi_run: TrainingData: HCP_hp2000.RData
Sat Nov 6 21:51:47 GMT 2021:hcp_fix_multi_run: FixThresh: 10
Sat Nov 6 21:51:47 GMT 2021:hcp_fix_multi_run: DeleteIntermediates: FALSE
Sat Nov 6 21:51:47 GMT 2021:hcp_fix_multi_run: PWD: /research/cisc2/projects/ward_connectomesyn/scripts_batches/hcpscripts/subjectscripts/CISC28809
Sat Nov 6 21:51:47 GMT 2021:hcp_fix_multi_run: Looping over files and doing highpass to each of them
Sat Nov 6 21:51:47 GMT 2021:hcp_fix_multi_run: Top of loop through fmris: fmri: /research/cisc1/projects/ward_connectomesyn/hcpdata/28809/MNINonLinear/Results/rfMRI_REST1_AP/rfMRI_REST1_AP
parsed 'TCS - MEAN' as 'TCS - MEAN'
Sat Nov 6 21:53:28 GMT 2021:hcp_fix_multi_run: tr: 0.800000
Sat Nov 6 21:53:28 GMT 2021:hcp_fix_multi_run: processing FMRI file rfMRI_REST1_AP with highpass 2000
Sat Nov 6 21:53:28 GMT 2021:hcp_fix_multi_run: Run interpreted MATLAB/Octave with command...
Sat Nov 6 21:53:28 GMT 2021:hcp_fix_multi_run: /usr/local/fix/call_matlab.sh -r addpath('/usr/local/hcp/global/matlab'); addpath('/usr/local/hcp/ICAFIX/scripts'); functionhighpassandvariancenormalize(0.800000 , '2000', 'rfMRI_REST1_AP', '/usr/local/workbench/bin_rh_linux64/wb_command');
<<<EDITED OUT LOTS OF HIGH-PASS LOOP OUTPUT>>>
Sun Nov 7 02:00:19 GMT 2021:hcp_fix_multi_run: Running FIX
Sun Nov 7 02:00:19 GMT 2021:hcp_fix_multi_run: using training data file: /usr/local/fix/training_files/HCP_hp2000.RData
Sun Nov 7 02:00:19 GMT 2021:hcp_fix_multi_run: fix_cmd: /usr/local/fix/fix rfMRI_REST_hp2000.ica /usr/local/fix/training_files/HCP_hp2000.RData 10
Sun Nov 7 02:00:19 GMT 2021:hcp_fix_multi_run: Check rfMRI_REST_hp2000.ica/fix/logMatlab.txt for log output from feature extraction
Sun Nov 7 02:00:19 GMT 2021:hcp_fix_multi_run: Check rfMRI_REST_hp2000.ica/.fix_2b_predict.log for log output from component classification
Sun Nov 7 02:00:19 GMT 2021:hcp_fix_multi_run: Check rfMRI_REST_hp2000.ica/.fix.log for log output from cleanup stage
FIX Feature extraction for Melodic output directory: rfMRI_REST_hp2000.ica
create edge masks
run FAST
registration of standard space masks
extract features
FIX Classifying components in Melodic directory: rfMRI_REST_hp2000.ica using training file: /usr/local/fix/training_files/HCP_hp2000.RData and threshold 10
FIX Applying cleanup using cleanup file: rfMRI_REST_hp2000.ica/fix4melview_HCP_hp2000_thr10.txt and motion cleanup set to 0
Sun Nov 7 02:42:27 GMT 2021:hcp_fix_multi_run: Done running FIX
Could not find a supported file with prefix "rfMRI_REST_hp2000.ica/filtered_func_data_clean"
Sun Nov 7 02:42:28 GMT 2021:hcp_fix_multi_run: While running '/usr/local/hcp/ICAFIX/hcp_fix_multi_run /research/cisc1/projects/ward_connectomesyn/hcpdata/28809/MNINonLinear/Results/rfMRI_REST1_AP/rfMRI_REST1_AP@/research/cisc1/projects/ward_connectomesyn/hcpdata/28809/MNINonLinear/Results/rfMRI_REST1_PA/rfMRI_REST1_PA@/research/cisc1/projects/ward_connectomesyn/hcpdata/28809/MNINonLinear/Results/rfMRI_REST2_AP/rfMRI_REST2_AP@/research/cisc1/projects/ward_connectomesyn/hcpdata/28809/MNINonLinear/Results/rfMRI_REST2_PA/rfMRI_REST2_PA 2000 /research/cisc1/projects/ward_connectomesyn/hcpdata/28809/MNINonLinear/Results/rfMRI_REST/rfMRI_REST FALSE HCP_hp2000.RData 10 FALSE':
Sun Nov 7 02:42:28 GMT 2021:hcp_fix_multi_run: ERROR: '/usr/local/fsl/bin/immv' command failed with return code: 1
===> ERROR: Command returned with nonzero exit code
---------------------------------------------------
script: hcp_fix_multi_run
stopped at line: 793
call: $FSLDIR/bin/immv ${concatfmrihp}.ica/filtered_func_data_clean ${concatfmrihp}_clean
expanded call: /usr/local/fsl/bin/immv rfMRI_REST_hp2000.ica/filtered_func_data_clean rfMRI_REST_hp2000_clean
exit code: 1
---------------------------------------------------
===> Aborting execution!
I dont believe I have made any changes to settings throughout the HCP or fix folders, and when I inspect the 'date modified' of all files in these folders nothing has been modified recently. All core versions of the software (FSL/HCP/Workbench/MATLAB) haven't been updated recently. The logs show that all previous steps of the pipeline completed as normal without error.
I even tried re-running the fix step on a subject that previously worked and it failed in the same way as above so it seems to be unrelated to the data.
The only thing I have been doing recently is starting experimenting with using ApplyHandReClassification.sh. I have only done this on one subject so far and dont believe I've changed any settings or installation files.
Do you have any idea what could be causing this? Or how I can go about debugging?
Best wishes,
Chris