-
Notifications
You must be signed in to change notification settings - Fork 9
/
SpectralAnalysis.m
34 lines (25 loc) · 918 Bytes
/
SpectralAnalysis.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
%% SpectralAnalysis
% Spectral Imaging analysis software
function spectralAnalysis = SpectralAnalysis()
% Get location of current m-file
if(isdeployed())
disp('Initialising MATLAB, please wait...');
path = ctfroot();
disp(path);
else
path = fileparts(mfilename('fullpath'));
% Ensure all folders are on the path
addpath(genpath(path));
end
% Ensure libraries are on the path
addJARsToClassPath();
% Check if SpectralAnalysis folder exists
spectralAnalysisHome = [homepath filesep '.SpectralAnalysis'];
% TODO: Check last version and if newer then copy over
if ~exist(spectralAnalysisHome, 'file')
mkdir(spectralAnalysisHome);
copyfile([path filesep 'files' filesep 'profiles'], [spectralAnalysisHome filesep 'profiles'])
end
% TODO: Check version on github to see if update available
% Launch spectral analysis interface
spectralAnalysis = SpectralAnalysisInterface();