Created
June 24, 2014 17:48
-
-
Save icaoberg/b9a3912948760fb2a903 to your computer and use it in GitHub Desktop.
Helper function that helps load CellOrganizer in Lane Cluster
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
function answer = cellorganizer( version ) | |
% Ivan E. Cao-Berg | |
% | |
% Copyright (C) 2014 Murphy Lab | |
% Lane Center for Computational Biology | |
% School of Computer Science | |
% Carnegie Mellon University | |
% | |
% This program is free software; you can redistribute it and/or modify | |
% it under the terms of the GNU General Public License as published | |
% by the Free Software Foundation; either version 2 of the License, | |
% or (at your option) any later version. | |
% | |
% This program is distributed in the hope that it will be useful, but | |
% WITHOUT ANY WARRANTY; without even the implied warranty of | |
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
% General Public License for more details. | |
% | |
% You should have received a copy of the GNU General Public License | |
% along with this program; if not, write to the Free Software | |
% Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | |
% 02110-1301, USA. | |
% | |
% For additional information visit http://murphylab.web.cmu.edu or | |
% send email to murphy@cmu.edu | |
root_directory = '/home/icaoberg/software/cellorganizer'; | |
default_version = '2.1'; | |
if nargin == 0 | |
version = default_version; | |
clear default_version; | |
end | |
switch( version ) | |
case '2.1' | |
directory = pwd; | |
disp( 'Loading version 2.1' ); | |
source_code_directory = [ root_directory filesep ... | |
version ]; | |
cd( source_code_directory ); | |
setup | |
cd( directory ) | |
answer = true; | |
otherwise | |
warning('Unrecognized version. Unable to load CellOrganizer.'); | |
answer = false; | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment