-
Notifications
You must be signed in to change notification settings - Fork 1
/
test3.m
30 lines (26 loc) · 1.03 KB
/
test3.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
%---------------- test2 ------------------------------
% This test runs Parallel Branch and Bound and Exhaustive Search
clear all
clc
data_iguana = { 'Anolis' 'ATGACAATTACACGCAAATCCCACCCAATTTTCAAAATTATTAACGACTCCTTTATTGAT';
'Basili' 'ATGACAATCCTACGAAAATCCCACCCAATCCTTAAAATAATCAACTCTTCATTCATCGAC';
'Chalar' 'ATGACAATCATCCGAAAAACACACCCAATTTTCAAAATTGTAAACGACTCATTCATTGAC';
'Gambel' 'ATGACAATCACACGAAAATCCCACCCGATCATCAAAATCGTAAACAACTCATTTATTGAC';
'Leioce' 'ATGACAATCACACGAAAAACTCACCCACTATTTAAAATCATCAATAACTCCTTTATTGAC';
};
%Create a matrix with al sites with usefull information
[row, col] = size(data_iguana);
for i = 1:row
temp = data_iguana{i, 2};
matrix{i, :} = temp;
names = data_iguana{i, 1};
name_matrix{i, :} = names;
end
for i = 1:row
data(i, :) = matrix{i};
end
set_of_seq = non_inf_sites(data, 3);
%Search using improved Branch and Bound
tic
[optimal_score, optimal_model] = P_BrB(set_of_seq, name_matrix);
toc