I used E_DTI_Network_analysis_exe command line in Matlab and ran into this type of error:
./elastix_L_64 -f network_results/tpe2d583b2_2175_4a93_920d_f54fb0bd0ac5_ER16101A_dwi_FP_MD_C_trafo/Fixed.nii -fMask network_results/tpe2d583b2_2175_4a93_920d_f54fb0bd0ac5_ER16101A_dwi_FP_MD_C_trafo/Fixed_mask.nii -m network_results/tpe2d583b2_2175_4a93_920d_f54fb0bd0ac5_ER16101A_dwi_FP_MD_C_trafo/Moving.nii -out network_results/tpe2d583b2_2175_4a93_920d_f54fb0bd0ac5_ER16101A_dwi_FP_MD_C_trafo -p /work2/chenglin/ExploreDTI_Pcode/Source/Misc/parrig_NN.txt -p /work2/chenglin/ExploreDTI_Pcode/Source/Misc/paraff_NN.txt -p /work2/chenglin/ExploreDTI_Pcode/Source/Misc/parbsp_NN.txt: Signal 126
ERROR: the output directory "network_results/tpe2d583b2_2175_4a93_920d_f54fb0bd0ac5_ER16101A_dwi_FP_MD_C_trafo/" does not exist.
You are responsible for creating it.
I don't understand why I should create temporary folders. But there was no error when I used GUI to create the matrix. My command is like this:
for i = 1:length(sub)
[A_T, Vdim]=E_DTI_load_nii(strcat('AAL_aligned/', sub{i}, '_temp.nii'));
A_T = double(A_T);
A_T = A_T/max(A_T(:));
A_L=E_DTI_load_nii(strcat('AAL_aligned/', sub{i}, '.nii'));
E_DTI_Network_analysis_exe(strcat('dwi_EPI_crop_corrected/', sub{i}, '_dwi_FP_MD_C_trafo.mat'),strcat('dwi_EPI_crop_corrected/', sub{i}, '_dwi_FP_MD_C_trafo_Tracts_DTI.mat'),[],A_T,A_L,L,Vdim,'network_results/',[],[],2,'network_results/');
end