


PRONTO job execution function
INPUT
job - harvested job data structure (see matlabbatch help)
OUTPUT
out - filename of saved data structure (1 file per group, per
subject, per modality, per condition
__________________________________________________________________________
Copyright (C) 2011 Machine Learning & Neuroimaging Laboratory

0001 function out = prt_run_weights(varargin) 0002 % 0003 % PRONTO job execution function 0004 % 0005 % INPUT 0006 % job - harvested job data structure (see matlabbatch help) 0007 % 0008 % OUTPUT 0009 % out - filename of saved data structure (1 file per group, per 0010 % subject, per modality, per condition 0011 %__________________________________________________________________________ 0012 % Copyright (C) 2011 Machine Learning & Neuroimaging Laboratory 0013 0014 % Written by M.J.Rosa 0015 % $Id: prt_run_weights.m 502 2012-04-06 16:09:37Z cphillip $ 0016 0017 job = varargin{1}; 0018 0019 % Load PRT.mat 0020 % ------------------------------------------------------------------------- 0021 fname = char(job.infile); 0022 PRT=prt_load(fname); 0023 if ~isempty(PRT) 0024 handles.dat=PRT; 0025 else 0026 beep 0027 disp('Could not load file') 0028 return 0029 end 0030 pathdir = regexprep(fname,'PRT.mat', ''); 0031 0032 % ------------------------------------------------------------------------- 0033 % Input file 0034 % ------------------------------------------------------------------------- 0035 in.img_name = job.img_name; 0036 in.model_name = job.model_name; 0037 in.pathdir = pathdir; 0038 0039 prt_compute_weights(PRT, in); 0040 0041 % ------------------------------------------------------------------------- 0042 % Function output 0043 % ------------------------------------------------------------------------- 0044 disp('Weights computation complete.') 0045 out.files{1} = fname; 0046 disp('Done') 0047 0048 return