Home > vbmeg > functions > tool_box > dmri_processor > dmri_setenv.m

dmri_setenv

PURPOSE ^

SYNOPSIS ^

function dmri_setenv()

DESCRIPTION ^

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function dmri_setenv()
0002 %
0003 % Copyright (C) 2011, ATR All Rights Reserved.
0004 % License : New BSD License(see VBMEG_LICENSE.txt)
0005 
0006 % DMRI PROGRAM PATH
0007 DMRI_HOME = fileparts(which('dmri_setenv.m'));
0008 
0009 % Bash path
0010 BASH_PATH  = '/bin/bash';
0011 BASH_PROF  = vbmeg('vb_rc_file');
0012 
0013 %%%%%%%%%%%%%%%%%%%%%%%%%%%
0014 % no need to edit
0015 
0016 % DMRI HOME
0017 setenv('DMRI_HOME', DMRI_HOME);
0018 
0019 % set bash path
0020 setenv('BASH_PATH', BASH_PATH);
0021 setenv('BASH_PROF', BASH_PROF);
0022 
0023 % Change permission scripts files.
0024 job_throw_dir = fileparts(which('cpu_job_throw.sh'));
0025 system(['chmod 755 ' job_throw_dir, '/*.sh']);
0026 
0027 % Copy mrtrix configuration file.
0028 if exist('~/.mrtrix.conf', 'file') ~= 2
0029     copyfile([DMRI_HOME, filesep, '.mrtrix.conf'], '~/');
0030 end
0031

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005