Skip to content
Permalink
master
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
function out = hmri_run_proc_dartel_template(job)
% Wrapper function for the DARTEL processing part of the hMRI toolbox.
% This relies on the standard SPM functions but handles some extra
% settings, e.g. the selection of the output folder.
% For this, things run as usual with SPM functions then data are moved
% around where they should be.
% Fix the job structure
job_spm = job;
% Define output folder for SPM function
output = struct('outDir', [], 'option', 'same');
if isfield(job.output,'outdir') % -> everything in the same
output.outDir = job.output.outdir{1};
output.option = 'allin';
elseif isfield(job.output,'outdir_ps') % -> per suject organization
output.outDir = job.output.outdir_ps{1};
output.option = 'subjspec';
end
job_spm.output = output;
% Call SPM's 'run' function
out = spm_dartel_template(job_spm);
end