Hello everyone,
I am new to the community and I am trying to run a HCP-style task fMRI analysis on our pre-processed data. We have two runs and in the first level I specified has 6 contrasts.
Here is what I think happens: The first level runs through without a problem and the second level also has no issue until it tries to access cope7. Then it crashes because cope7 does not exist but this make sense because in the first level I only specified 6 contrasts.
Am I missing something? Are there additional contrasts that somehow implicit and which are not working? When I open my 2nd level .fsf file with feat I can’t even find anything related to that. Before that I had issues with write/read and file permissions but if this were still an issue that I’d expect none of it to run.
I am really banging my head against the keyboard here so I appreciate any even the smallest nudge in the right direction.
Here is an error log from a crash and the .fsf files. The only thing I modified is I removed all read scalar data that is float32
and similar rows like smoothing vertex XXX from the log.
Example error log
Calculating residuals...
Completed
Estimating residual autocorrelation...
Calculating raw AutoCorrs... Completed
mode = 11220.2
sig = 1195
Spatially smoothing auto corr estimates
.............................
Completed
Tukey M = 30
Tukey estimates... Completed
Completed
Prewhitening and Computing PEs...
Percentage done:
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,Completed
Saving results...
Completed
Thu Jun 8 22:11:39 CST 2023:TaskfMRILevel1.sh: MAIN: RUN_GLM: Run film_gls on cortical surface data
Thu Jun 8 22:11:39 CST 2023:TaskfMRILevel1.sh: MAIN: RUN_GLM: Prepare for film_gls
Thu Jun 8 22:12:58 CST 2023:TaskfMRILevel1.sh: MAIN: RUN_GLM: Run film_gls on surface data
Log directory is: /home1/Jaquent/VP00157_HCP/sessions/R0111_7TSESS1/hcp/R0111_7TSESS1/MNINonLinear/Results/tfMRI_OLMr_RUN1_AP/tfMRI_OLMr_RUN1_AP_hp200_s4_level1.feat/L_SurfaceStats
read gifti
paradigm.getDesignMatrix().Nrows()=928
paradigm.getDesignMatrix().Ncols()=14
sizeTS=928
numTS=32492
Calculating residuals...
Completed
Estimating residual autocorrelation...
Calculating raw AutoCorrs... Completed
read gifti
Spatially smoothing auto corr estimates for surface
do smooth
done distances
Completed
Thu Jun 8 23:55:03 CST 2023:TaskfMRILevel1.sh: MAIN: RUN_GLM: Merge Cortical Surface and Subcortical Volume into Grayordinates
Thu Jun 8 23:56:16 CST 2023:TaskfMRILevel1.sh: MAIN: Complete
Thu Jun 8 23:56:16 CST 2023:TaskfMRIAnalysis.sh: RUN_LEVEL2: Combine Data Across Phase Encoding Directions in the Level 2 Analysis
Thu Jun 8 23:56:16 CST 2023:TaskfMRIAnalysis.sh: RUN_LEVEL2: Issuing command: /opt/HCP/HCPpipelines/TaskfMRIAnalysis/scripts/TaskfMRILevel2.sh R0111_7TSESS1 /home1/Jaquent/VP00157_HCP/sessions/R0111_7TSESS1/hcp/R0111_7TSESS1/MNINonLinear/Results /home1/Jaquent/VP00157_HCP/sessions/R0111_7TSESS1/hcp/R0111_7TSESS1/MNINonLinear/fsaverage_LR32k tfMRI_OLMr_RUN1_AP@tfMRI_OLMr_RUN2_AP tfMRI_OLMr_RUN1_AP@tfMRI_OLMr_RUN2_AP tfMRI_OLMr tfMRI_OLMr 32 4 200 NO NONE NONE NONE NONE
Thu Jun 8 23:56:16 CST 2023:TaskfMRILevel2.sh: HCPPIPEDIR: /opt/HCP/HCPpipelines
Thu Jun 8 23:56:16 CST 2023:TaskfMRILevel2.sh: FSLDIR: /opt/fsl/fsl
Thu Jun 8 23:56:16 CST 2023:TaskfMRILevel2.sh: CARET7DIR: /opt/workbench/workbench/bin_rh_linux64
Thu Jun 8 23:56:16 CST 2023:TaskfMRILevel2.sh: TOOL_VERSIONS: Showing HCP Pipelines version
v4.6.0-rc-30d3848
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: TOOL_VERSIONS: 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
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: INFO: Determined that the FSL version in use is 6.0.5.1:57b01774
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: READ_ARGS: TaskfMRILevel2.sh arguments: R0111_7TSESS1 /home1/Jaquent/VP00157_HCP/sessions/R0111_7TSESS1/hcp/R0111_7TSESS1/MNINonLinear/Results /home1/Jaquent/VP00157_HCP/sessions/R0111_7TSESS1/hcp/R0111_7TSESS1/MNINonLinear/fsaverage_LR32k tfMRI_OLMr_RUN1_AP@tfMRI_OLMr_RUN2_AP tfMRI_OLMr_RUN1_AP@tfMRI_OLMr_RUN2_AP tfMRI_OLMr tfMRI_OLMr 32 4 200 NO NONE NONE NONE NONE
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: READ_ARGS: Subject: R0111_7TSESS1
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: READ_ARGS: ResultsFolder: /home1/Jaquent/VP00157_HCP/sessions/R0111_7TSESS1/hcp/R0111_7TSESS1/MNINonLinear/Results
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: READ_ARGS: DownSampleFolder: /home1/Jaquent/VP00157_HCP/sessions/R0111_7TSESS1/hcp/R0111_7TSESS1/MNINonLinear/fsaverage_LR32k
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: READ_ARGS: LevelOnefMRINames: tfMRI_OLMr_RUN1_AP@tfMRI_OLMr_RUN2_AP
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: READ_ARGS: LevelOnefsfNames: tfMRI_OLMr_RUN1_AP@tfMRI_OLMr_RUN2_AP
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: READ_ARGS: LevelTwofMRIName: tfMRI_OLMr
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: READ_ARGS: LevelTwofsfName: tfMRI_OLMr
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: READ_ARGS: LowResMesh: 32
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: READ_ARGS: FinalSmoothingFWHM: 4
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: READ_ARGS: TemporalFilter: 200
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: READ_ARGS: VolumeBasedProcessing: NO
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: READ_ARGS: RegName: NONE
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: READ_ARGS: Parcellation: NONE
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: READ_ARGS: ProcSTRING: NONE
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: READ_ARGS: TemporalSmoothing: NONE
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: MAIN: DETERMINE_ANALYSES: Dense Analysis requested
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: MAIN: DETERMINE_ANALYSES: Analyses: GrayordinatesStats
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: MAIN: DETERMINE_ANALYSES: ParcellationString:
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: MAIN: DETERMINE_ANALYSES: ExtensionList: dtseries.nii
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: MAIN: DETERMINE_ANALYSES: ScalarExtensionList: dscalar.nii
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: MAIN: SET_NAME_STRINGS: SmoothingString: _s4
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: MAIN: SET_NAME_STRINGS: TemporalFilterString: _hp200
Thu Jun 8 23:56:17 CST 2023:TaskfMRILevel2.sh: MAIN: SET_NAME_STRINGS: RegString:
Thu Jun 8 23:56:19 CST 2023:TaskfMRILevel2.sh: CHECK INPUTS: Necessary input files exist
Thu Jun 8 23:56:19 CST 2023:TaskfMRILevel2.sh: Make design files
Thu Jun 8 23:56:20 CST 2023:TaskfMRILevel2.sh: Loop over Level 2 Analyses requested: GrayordinatesStats
Thu Jun 8 23:56:20 CST 2023:TaskfMRILevel2.sh: Run Analysis: GrayordinatesStats
Thu Jun 8 23:56:20 CST 2023:TaskfMRILevel2.sh: Copy over Level 1 stats folders and convert CIFTI to NIFTI if required
Thu Jun 8 23:56:38 CST 2023:TaskfMRILevel2.sh: Convert CIFTI files to fakeNIFTI
Thu Jun 8 23:58:31 CST 2023:TaskfMRILevel2.sh: Create dof and Mask files for input to flameo (Level 2 analysis)
Thu Jun 8 23:58:42 CST 2023:TaskfMRILevel2.sh: Merge COPES and VARCOPES for 10 Contrasts
Thu Jun 8 23:58:42 CST 2023:TaskfMRILevel2.sh: Contrast Number: 1
Thu Jun 8 23:58:43 CST 2023:TaskfMRILevel2.sh: Contrast Number: 2
Thu Jun 8 23:58:43 CST 2023:TaskfMRILevel2.sh: Contrast Number: 3
Thu Jun 8 23:58:43 CST 2023:TaskfMRILevel2.sh: Contrast Number: 4
Thu Jun 8 23:58:44 CST 2023:TaskfMRILevel2.sh: Contrast Number: 5
Thu Jun 8 23:58:46 CST 2023:TaskfMRILevel2.sh: Contrast Number: 6
Thu Jun 8 23:58:47 CST 2023:TaskfMRILevel2.sh: Contrast Number: 7
Image Exception : #63 :: No image files match: /home1/Jaquent/VP00157_HCP/sessions/R0111_7TSESS1/hcp/R0111_7TSESS1/MNINonLinear/Results/tfMRI_OLMr/tfMRI_OLMr_hp200_s4_level2.feat/GrayordinatesStats/1/cope7
terminate called after throwing an instance of 'std::runtime_error'
what(): No image files match: /home1/Jaquent/VP00157_HCP/sessions/R0111_7TSESS1/hcp/R0111_7TSESS1/MNINonLinear/Results/tfMRI_OLMr/tfMRI_OLMr_hp200_s4_level2.feat/GrayordinatesStats/1/cope7
/opt/HCP/HCPpipelines/TaskfMRIAnalysis/scripts/TaskfMRILevel2.sh: line 294: 68933 Aborted fslmerge -t ${LevelTwoFEATDir}/${Analysis}/cope${copeCounter}.nii.gz $COPEMERGE
Thu Jun 8 23:58:47 CST 2023:TaskfMRILevel2.sh: While running '/opt/HCP/HCPpipelines/TaskfMRIAnalysis/scripts/TaskfMRILevel2.sh R0111_7TSESS1 /home1/Jaquent/VP00157_HCP/sessions/R0111_7TSESS1/hcp/R0111_7TSESS1/MNINonLinear/Results /home1/Jaquent/VP00157_HCP/sessions/R0111_7TSESS1/hcp/R0111_7TSESS1/MNINonLinear/fsaverage_LR32k tfMRI_OLMr_RUN1_AP@tfMRI_OLMr_RUN2_AP tfMRI_OLMr_RUN1_AP@tfMRI_OLMr_RUN2_AP tfMRI_OLMr tfMRI_OLMr 32 4 200 NO NONE NONE NONE NONE':
Thu Jun 8 23:58:47 CST 2023:TaskfMRILevel2.sh: ERROR: 'fslmerge' command failed with return code: 134
Thu Jun 8 23:58:47 CST 2023:TaskfMRILevel2.sh: ERROR: 'fslmerge' command failed with return code: 134
===> ERROR: Command returned with nonzero exit code
---------------------------------------------------
script: TaskfMRILevel2.sh
stopped at line: 354
call: fslmerge -t ${LevelTwoFEATDir}/${Analysis}/cope${copeCounter}.nii.gz $COPEMERGE
expanded call: fslmerge -t /home1/Jaquent/VP00157_HCP/sessions/R0111_7TSESS1/hcp/R0111_7TSESS1/MNINonLinear/Results/tfMRI_OLMr/tfMRI_OLMr_hp200_s4_level2.feat/GrayordinatesStats/cope7.nii.gz /home1/Jaquent/VP00157_HCP/sessions/R0111_7TSESS1/hcp/R0111_7TSESS1/MNINonLinear/Results/tfMRI_OLMr/tfMRI_OLMr_hp200_s4_level2.feat/GrayordinatesStats/1/cope7.nii.gz /home1/Jaquent/VP00157_HCP/sessions/R0111_7TSESS1/hcp/R0111_7TSESS1/MNINonLinear/Results/tfMRI_OLMr/tfMRI_OLMr_hp200_s4_level2.feat/GrayordinatesStats/2/cope7.nii.gz
hostname: bnode05
exit code: 134
---------------------------------------------------
===> Aborting execution!
Thu Jun 8 23:58:47 CST 2023:TaskfMRIAnalysis.sh: While running '/opt/HCP/HCPpipelines/TaskfMRIAnalysis/TaskfMRIAnalysis.sh --study-folder=/home1/Jaquent/VP00157_HCP/sessions/R0111_7TSESS1/hcp --subject=R0111_7TSESS1 --lvl1tasks=tfMRI_OLMr_RUN1_AP@tfMRI_OLMr_RUN2_AP --lvl2task=tfMRI_OLMr --confound=Confound_Parameters.txt --origsmoothingFWHM=2 --finalsmoothingFWHM=4 --highpassfilter=200':
Thu Jun 8 23:58:47 CST 2023:TaskfMRIAnalysis.sh: ERROR: '/opt/HCP/HCPpipelines/TaskfMRIAnalysis/scripts/TaskfMRILevel2.sh' command failed with return code: 134
Thu Jun 8 23:58:47 CST 2023:TaskfMRIAnalysis.sh: ERROR: '/opt/HCP/HCPpipelines/TaskfMRIAnalysis/scripts/TaskfMRILevel2.sh' command failed with return code: 134
===> ERROR: Command returned with nonzero exit code
---------------------------------------------------
script: TaskfMRIAnalysis.sh
stopped at line: 259
call: ${HCPPIPEDIR_tfMRIAnalysis}/TaskfMRILevel2.sh $Subject $ResultsFolder $DownSampleFolder $LevelOnefMRINames $LevelOnefsfNames $LevelTwofMRIName $LevelTwofsfName $LowResMesh $FinalSmoothingFWHM $TemporalFilter $VolumeBasedProcessing $RegName $Parcellation $ProcSTRING $TemporalSmoothing
expanded call: /opt/HCP/HCPpipelines/TaskfMRIAnalysis/scripts/TaskfMRILevel2.sh R0111_7TSESS1 /home1/Jaquent/VP00157_HCP/sessions/R0111_7TSESS1/hcp/R0111_7TSESS1/MNINonLinear/Results /home1/Jaquent/VP00157_HCP/sessions/R0111_7TSESS1/hcp/R0111_7TSESS1/MNINonLinear/fsaverage_LR32k tfMRI_OLMr_RUN1_AP@tfMRI_OLMr_RUN2_AP tfMRI_OLMr_RUN1_AP@tfMRI_OLMr_RUN2_AP tfMRI_OLMr tfMRI_OLMr 32 4 200 NO NONE NONE NONE NONE
hostname: bnode05
exit code: 134
---------------------------------------------------
===> Aborting execution!