Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Elbau_et_al_PNAS_2018/call_create_hrfpl_maps.m
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
52 lines (34 sloc)
1.49 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Script to call function 'create_hrfpl_maps.m'. Selects betas, names | |
% conditions and loops over subjects. Example for original sample | |
clear all | |
Root = '/Users/immanuel_elbau/Desktop/PNAS_Repository/FirstLevels_Original/'; % Adapt path | |
Conditions = {'PreStress', 'Stress', 'PostStress'}; | |
Subs = dir([Root,'IST*']); | |
%% User-Area | |
% Enter file names of canonical and derivative beta-images per condition/ | |
% session{n}. Note that the relevant betas correspond to the | |
% mental-arithmetic regressor. | |
% For Experimental group (IST0001 - IST0040) | |
Canonical{1} = ['beta_0001.img']; | |
Canonical{2} = ['beta_0013.img']; | |
Canonical{3} = ['beta_0025.img']; | |
Derivative{1} = ['beta_0002.img']; | |
Derivative{2} = ['beta_0014.img']; | |
Derivative{3} = ['beta_0026.img']; | |
% Cave: For Control group (IST0041 - IST0063) - no verbal-feedback | |
% regressors: | |
% Canonical{1} = ['beta_0001.img']; | |
% Canonical{2} = ['beta_0011.img']; | |
% Canonical{3} = ['beta_0021.img']; | |
% | |
% Derivative{1} = ['beta_0002.img']; | |
% Derivative{2} = ['beta_0012.img']; | |
% Derivative{3} = ['beta_0022.img']; | |
%% Loop over subjects and sessions and call of function | |
for master = 1:numel(Subs) | |
Imagefolder = [Root,Subs(master).name,'/IST/residualized/firstlevel_multi_16_tempder_new/']; | |
disp(['### Working on ', Imagefolder, ' ###']); | |
for z = 1:3 | |
create_hrfpl_maps([Imagefolder,Canonical{z}], [Imagefolder,Derivative{z}], Conditions{z}); | |
end | |
end |