Skip to content

Commit 4c9aaff

Browse files
authored
Update demo_QAMPER_IVIM.m
1 parent 187ee35 commit 4c9aaff

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

src/original/ASD_MemorialSloanKettering/MRI-QAMPER_IVIM/demo_QAMPER_IVIM.m

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,21 @@
1010
% roi_nii: single-volume mask ROI image (NIfTI)
1111

1212

13-
14-
15-
qamper_path = 'path:\to\MRI-QAMPER_IVIM';
13+
qamper_path = 'path:\to\MRI-QAMPER_IVIM'; %path where the MRI-QAMPER folder is located
1614
addpath(genpath(qamper_path));
1715

18-
img_nii = 'dwi.nii';
19-
bval_file = fullfile(qamper_path,'test_data','702-HN401D-D2019_10_08.bval');
20-
roi_nii = fullfile(qamper_path,'test_data','702-HN401D-D2019_10_08_BD_REDO_SV.nii.gz');
16+
% Uncomment below and substitute the names of your files
17+
% img_nii = '702-D2019_10_08.nii';
18+
% bval_file = fullfile(qamper_path,'test_data','702-D2019_10_08.bval');
19+
% roi_nii = fullfile(qamper_path,'test_data','702-D2019_10_08_ROI.nii.gz');
20+
21+
% Optional function below: download the OSIPI test data from Zenodo
22+
[img_nii, bval_file, roi_nii] = getTestData;
2123

22-
save_folder = fullfile(qamper_path,'test_data');
24+
save_folder = fullfile(qamper_path,'output_files'); %change this location to where you want the output files to be saved
25+
if ~exist(save_folder,'dir')
26+
mkdir(save_folder);
27+
end
2328

24-
batchResultsFolder = run_QAMPER_IVIM(img_nii,bval_file,roi_nii,save_folder);
29+
% Run the analysis
30+
batchResultsFolder = run_QAMPER_IVIM(img_nii,bval_file,roi_nii,save_folder);

0 commit comments

Comments
 (0)