-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcheck_if_files_exist.m
More file actions
44 lines (39 loc) · 1.34 KB
/
check_if_files_exist.m
File metadata and controls
44 lines (39 loc) · 1.34 KB
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
%check that files exist
types = {'meats','spices','standard'};
orders = [0 1 2];
subsamps = 1:25;
n_ingreds = [4 6 8 10 12 14 16 18];
dir = '/Users/arianasp/Desktop/Dropbox/recipentropy/della_runs_output';
disp('List of files that do not exist:')
for type_idx = 1:length(types)
type = types{type_idx};
for n_ingred = n_ingreds
for order = orders
for subsamp = subsamps
name = [dir '/' type '/' num2str(n_ingred) 'ingred/order' num2str(order) '/subsamp' num2str(subsamp) '/subsample.mat'];
if not(exist(name))
disp(name)
end
end
end
end
end
types = {'EastAsian','LatinAmerican','NorthAmerican','SouthernEuropean','WesternEuropean'};
orders = [0 1 2];
subsamps = 1:25;
n_ingreds = [4 6 8 10 12 14 16 18];
dir = '/Users/arianasp/Desktop/Dropbox/recipentropy/della_runs_output/cultures';
disp('List of files that do not exist:')
for type_idx = 1:length(types)
type = types{type_idx};
for n_ingred = n_ingreds
for order = orders
for subsamp = subsamps
name = [dir '/' type '/' num2str(n_ingred) 'ingred/order' num2str(order) '/subsamp' num2str(subsamp) '/subsample.mat'];
if not(exist(name))
disp(name)
end
end
end
end
end