forked from benfulcher/hctsa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.m
65 lines (58 loc) · 2.95 KB
/
install.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
% INSTALL Installs the hctsa code package from scratch.
% ------------------------------------------------------------------------------
% Copyright (C) 2017, Ben D. Fulcher <[email protected]>,
% <http://www.benfulcher.com>
%
% If you use this code for your research, please cite the following two papers:
%
% (1) B.D. Fulcher and N.S. Jones, "hctsa: A Computational Framework for Automated
% Time-Series Phenotyping Using Massive Feature Extraction, Cell Systems 5: 527 (2017).
% DOI: 10.1016/j.cels.2017.10.001
%
% (2) B.D. Fulcher, M.A. Little, N.S. Jones, "Highly comparative time-series
% analysis: the empirical structure of time series and their methods",
% J. Roy. Soc. Interface 10(83) 20130048 (2013).
% DOI: 10.1098/rsif.2013.0048
%
% This work is licensed under the Creative Commons
% Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of
% this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/ or send
% a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View,
% California, 94041, USA.
% ------------------------------------------------------------------------------
fprintf(1,['This script will set up the Highly Comparative Time-Series ' ...
'Analysis (hctsa) code package from scratch!\n']);
fprintf(1,['We will:' ...
'\n-1- Add the paths needed for the repository,' ...
'\n-2- Compile the external time-series toolboxes for this system.\n\n']);
% ------------------------------------------------------------------------------
%% 1. Add the paths:
% ------------------------------------------------------------------------------
fprintf(1,'-1- Adding paths needed for the repository...\n');
input('<<Press any key to continue>>')
try
startup
catch emsg
fprintf(1,'error.\n%s\n',emsg.message);
end
fprintf(1,'\n');
% ------------------------------------------------------------------------------
%% Attempt to compile the executables required by the periphery Toolboxes:
% ------------------------------------------------------------------------------
fprintf(1,['\n-2- Compile the binary executables needed for evaluating ' ...
'some operations.\n']);
fprintf(1,['Please make sure that mex is set up with the right compilers for' ...
' this system.\n']);
fprintf(1,['Note that errors here are not the end of the world,\nbut mean that ' ...
'some operations may fail to execute correctly...\n']);
input('<<Press any key to continue>>')
cd Toolboxes
compile_mex
cd('../');
%-------------------------------------------------------------------------------
%
fprintf(1,'Hope everything compiled ok?!\n\n');
fprintf(1,['All done! Ready when you are to initiate hctsa analysis\nusing a time-series dataset: ' ...
'e.g.: TS_init(''INP_test_ts.mat'');\n']);
% Attempt to add a time series
% SQL_add('ts','INP_test_ts.txt')