Home > . > prt_batch.m

prt_batch

PURPOSE ^

Pattern Recognition for Neuroimaging Toolbox, PRoNTo.

SYNOPSIS ^

function prt_batch

DESCRIPTION ^

 Pattern Recognition for Neuroimaging Toolbox, PRoNTo.

 This function prepares and launches the batch system.
 This builds the whole tree for the various tools and their GUI at the
 first call to this script.
_______________________________________________________________________
 Copyright (C) 2011 Machine Learning & Neuroimaging Laboratory

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function prt_batch
0002 % Pattern Recognition for Neuroimaging Toolbox, PRoNTo.
0003 %
0004 % This function prepares and launches the batch system.
0005 % This builds the whole tree for the various tools and their GUI at the
0006 % first call to this script.
0007 %_______________________________________________________________________
0008 % Copyright (C) 2011 Machine Learning & Neuroimaging Laboratory
0009 
0010 % Written by Christophe Phillips
0011 % $Id$
0012 
0013 persistent batch_initialize
0014 global PRT_INIT
0015 
0016 if isempty(PRT_INIT) || ~PRT_INIT
0017     prt('startup','nogui');
0018 end
0019 
0020 if isempty(batch_initialize) || ~batch_initialize
0021     % PRoNTo config tree
0022     prt_gui = prt_cfg_batch;
0023     % Adding PRoNTo config tree to the SPM tools
0024     cfg_util('addapp', prt_gui)
0025     % No need to do it again for this session
0026     batch_initialize = 1;
0027 end
0028 
0029 % Launching the batch system
0030 cfg_ui
0031 
0032 return

Generated on Tue 10-Feb-2015 18:16:33 by m2html © 2005