dki-questions > DKE Crashes with "Permission Denied" - Solved!!
Showing 1-2 of 2 posts
Display:
Results per page:
Oct 24, 2019  05:10 PM | Rees Ridout
DKE Crashes with "Permission Denied" - Solved!!
When running DKE on the GUI on Windows, I select the 4D NIFTI file, and the program says "processing" for a while, and then responds with 
"Processing failed with error message: Permission Denied"

The command prompt reads the following:

% Thu Oct 24 01:06:09 PM
studydir = 'D:/CIVM_Apps/DKE/dki_example_data_nifti/';
subject_list = {''};
preprocess_options.format = 'nifti';
preprocess_options.fn_nii = '4Drdki_0.nii';
fn_img_prefix = 'rdki';
bval = [0 1000 2000];
ndir = 30;
idx_1st_img = 1;
Kmin = 0;
NKmax = 3;
Kmin_final = 0;
Kmax_final = 3;
T = 50;
find_brain_mask_flag = 1;
dki_method.no_tensor = 0;
dki_method.linear_weighting = 1;
dki_method.linear_constrained = 1;
dki_method.nonlinear = 0;
dki_method.linear_violations = 0;
dki_method.robust_option = 0;
dki_method.noise_tolerance = 0.09;
dti_method.dti_flag = 0;
dti_method.dti_only = 0;
dti_method.no_tensor = 0;
dti_method.linear_weighting = 1;
dti_method.b_value = 1e+003;
dti_method.directions{1} = [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];
dti_method.robust_option = 0;
dti_method.noise_tolerance = 0.09;
fn_noise = '';
fwhm_img = [3.375 3.375 3.375];
fwhm_noise = [0 0 0];
median_filter_method = 2;
map_interpolation_method.flag = 1;
map_interpolation_method.order = 1;
map_interpolation_method.resolution = 1;
fn_gradients = 'gradient_vectors_siemens30.dat';
idx_gradients{1} = [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];
idx_gradients{2} = [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];

command line: dke DKEParameters.dat
Diffusional Kurtosis Estimator (DKE) version 2.6.0, February 2015
Error using dke (line 145)
Cannot open output file D:\CIVM_Apps\DKE\dki_example_data_nifti\dke.log! Output
directory does not exist or is write-protected.
Oct 24, 2019  06:10 PM | Emilie McKinnon - MUSC
RE: DKE Crashes with "Permission Denied" - Solved!!
Hi Rees, 

This might be silly, but would you mind double checking if the path 'D:/CIVM_Apps/DKE/dki_example_data_nifti/' is spelled correctly and exists? 
The program is trying to create the log file in that location and is having issues. 

Best, 
Emilie