|
@@ -12,15 +12,12 @@
|
|
|
% clear the workspace and command window:
|
|
|
clear variables; clc;
|
|
|
% define the data root path
|
|
|
-path_root = fullfile('/Volumes','MPRG-Neurocode','Data','highspeed');
|
|
|
+path_root = strsplit(pwd, 'code');
|
|
|
+path_root = path_root{1};
|
|
|
% define the input path:
|
|
|
-path_input = fullfile(path_root,'main_mri','rawdata','behav_main');
|
|
|
-path_tardis = fullfile('/Users/wittkuhn/Volumes/tardis/highspeed');
|
|
|
-path_network = fullfile(path_root);
|
|
|
+path_input = fullfile(path_root, 'input', 'behavior', 'main');
|
|
|
% define the output path:
|
|
|
-% path_output = fullfile(path_root,'derivatives','events');
|
|
|
-path_output = fullfile(path_tardis, 'bids');
|
|
|
-%path_output = fullfile(path_network);
|
|
|
+path_output = path_root;
|
|
|
% get the contents of the output directory:
|
|
|
path_output_dir = dir(path_output);
|
|
|
% check how many subjects are in the root directory:
|
|
@@ -34,9 +31,9 @@ for old_file = 1:length(prev_files)
|
|
|
delete(fullfile(prev_files(old_file).folder,prev_files(old_file).name))
|
|
|
end
|
|
|
% define the script path:
|
|
|
-path_script = fullfile('~','highspeed','highspeed_analysis','code');
|
|
|
+path_script = fullfile(path_root, 'code');
|
|
|
% read the text file containing a list of subject ids:
|
|
|
-sub_list = dlmread(fullfile(path_script, 'parameters', 'highspeed_participant_list.txt'));
|
|
|
+sub_list = dlmread(fullfile(path_script, 'heudiconv', 'highspeed-participant-list.txt'));
|
|
|
% turn the array with ids into a strings in a cell array:
|
|
|
sub_list = cellstr(num2str(sub_list));
|
|
|
%check if the number of subjects in the list matches the target directory
|