-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSS_SetupRunOptions.m
40 lines (35 loc) · 1008 Bytes
/
SS_SetupRunOptions.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
function SS_SetupRunInfo( ks , kToUse , op_km_repeats , ts_km_repeats , ...
inMatFileName , outTxtFileName , corr_dist_threshold , av_ts_cluster_size)
if ~exist('ks','var')
ks = [200];
end
if ~exist('kToUse','var')
kToUse = 200;
end
if ~exist('op_km_repeats','var')
op_km_repeats = 2000;
end
if ~exist('ts_km_repeats','var')
ts_km_repeats = 1000;
end
if ~exist('inMatFileName','var')
inMatFileName = 'HCTSA_new_data';
end
if ~exist('outTxtFileName','var')
outTxtFileName = 'cluster_info.txt';
end
if ~exist('corr_dist_threshold','var')
corr_dist_threshold = 0.1;
end
if ~exist('av_ts_cluster_size','var')
av_ts_cluster_size = 10;
end
kIdx = find(ks == kToUse);
if isempty(kIdx)
fprintf('Could not find K = %i in ks - setting kToUse to %i',...
kToUse , ks(length(ks)));
kIdx = length(ks);
end
save('run_options.mat','ks','kIdx','op_km_repeats','ts_km_repeats',...
'inMatFileName','outTxtFileName','corr_dist_threshold','av_ts_cluster_size');
end