  function [data, auxData, metaData, txtData, weights] = mydata_Lophiomus_setigerus
%% set metadata
metaData.phylum     = 'Chordata'; 
metaData.class      = 'Actinopterygii'; 
metaData.order      = 'Lophiiformes'; 
metaData.family     = 'Lophiidae';
metaData.species    = 'Lophiomus_setigerus'; 
metaData.species_en = 'Blackmouth angler '; 

metaData.ecoCode.climate = {'MC'};
metaData.ecoCode.ecozone = {'MPE','MPSE','MIN'};
metaData.ecoCode.habitat = {'0jMp', 'jiMdb'};
metaData.ecoCode.embryo  = {'Mp'};
metaData.ecoCode.migrate = {};
metaData.ecoCode.food    = {'bjPz', 'jiCvf'};
metaData.ecoCode.gender  = {'D'};
metaData.ecoCode.reprod  = {'O'};

metaData.T_typical  = C2K(18); % K, body temp
metaData.data_0     = {'am'; 'Lp'; 'Li'; 'Wwb'; 'Ri'};  % tags for different types of zero-variate data
metaData.data_1     = {'t-L'; 'L-Ww'}; % tags for different types of uni-variate data

metaData.COMPLETE = 2.5; % using criteria of LikaKear2011

metaData.author    = {'Bas Kooijman'};    
metaData.date_subm = [2024 03 11];              
metaData.email     = {'bas.kooijman@vu.nl'};            
metaData.address   = {'VU University Amsterdam'};  

metaData.curator     = {'Dina Lika'};
metaData.email_cur   = {'lika@uoc.gr'}; 
metaData.date_acc    = [2024 03 11];

%% set data
% zero-variate data
data.am = 12*365; units.am = 'd';   label.am = 'life span';              bibkey.am = 'YoneToki1998';   
  temp.am = C2K(18);  units.temp.am = 'K'; label.temp.am = 'temperature';

data.Lp = 30.3;   units.Lp = 'cm';  label.Lp = 'total length at puberty'; bibkey.Lp = 'YoneToki1998'; 
data.Lpm = 17.8;   units.Lpm = 'cm';  label.Lpm = 'total length at puberty for males'; bibkey.Lpm = 'YoneToki1998'; 
data.Li = 42.8;   units.Li = 'cm';  label.Li = 'ultimate total length';  bibkey.Li = 'YoneToki1998';
  
data.Wwb = 1.6e-4;   units.Wwb = 'g';  label.Wwb = 'wet weight at birth';   bibkey.Wwb = 'guess';
  comment.Wwb = 'based on egg diameter of 0.67 mm of Lophius piscatorius (from fishbase): pi/6*0.067^3';

data.Ri = 610e3/365;units.Ri = '#/d'; label.Ri = 'maximum reprod rate';    bibkey.Ri = 'fishbase';   
  temp.Ri = C2K(18); units.temp.Ri = 'K'; label.temp.Ri = 'temperature';
    
% uni-variate data
% time-length
data.tL_fm = [ ... simce since hatch (d), total length (cm)
    1  6.8  6.4
    2 13.3 12.4
    3 18.6 16.9
    4 23.1 20.4
    5 27.0 23.3
    6 30.2 25.7
    7 32.8 27.9
    8 35.4 30.2
    9 37.5 NaN
   10 40.0 NaN
   11 42.1 NaN];
data.tL_fm(:,1) = (0+data.tL_fm(:,1))*365;  % convert yr to d
units.tL_fm = {'d', 'cm'}; label.tL_fm = {'time since birth', 'total length'}; 
temp.tL_fm = C2K(18); units.temp.tL_fm = 'K'; label.temp.tL_fm = 'temperature';
bibkey.tL_fm = 'YoneToki1998'; treat.tL_fm = {1 {'females','males'}};
 
% length-weight
data.LW_f = [ ... % total length (cm),wet weight (g)
11.391	25.112
12.085	30.185
12.293	20.236
12.502	35.225
13.129	55.253
13.406	45.313
13.615	50.326
13.963	60.345
14.103	85.300
14.656	45.469
15.004	50.500
15.143	55.505
15.143	65.480
15.212	55.513
15.352	75.481
15.910	100.488
15.976	60.596
16.327	105.527
16.676	135.496
16.676	135.496
17.022	120.577
17.508	110.662
17.651	180.505
17.856	120.680
17.928	160.590
18.271	95.795
18.483	160.659
18.552	145.705
19.036	120.828
19.454	135.842
19.599	220.649
19.939	115.953
19.948	250.617
20.287	135.946
20.360	185.831
20.575	280.621
20.781	245.734
20.982	136.033
21.265	220.856
21.268	255.769
21.330	156.027
21.473	205.920
21.822	240.876
21.826	295.739
22.095	171.084
22.451	290.830
22.514	206.050
22.517	240.962
22.517	250.938
22.723	216.051
22.728	285.876
23.007	300.874
23.210	221.099
23.355	310.893
23.628	241.101
23.630	266.039
23.635	340.853
23.913	345.875
23.984	375.809
24.048	291.029
24.119	310.988
24.393	256.159
24.398	330.972
24.675	321.032
24.677	355.945
24.682	420.783
24.812	291.124
25.017	246.262
25.162	336.055
25.165	375.956
25.237	410.878
25.243	495.666
25.580	356.058
25.650	361.054
25.652	385.992
25.658	470.781
25.714	276.274
25.999	381.048
26.001	415.961
26.074	470.833
26.079	535.671
26.135	341.164
26.203	321.223
26.348	406.029
26.439	720.254
26.489	435.971
26.563	500.819
26.619	311.300
26.630	475.890
26.635	545.715
26.692	361.184
26.697	431.010
26.775	565.683
26.970	361.218
27.120	525.826
27.183	441.046
27.254	461.005
27.263	590.681
27.318	381.212
27.393	466.009
27.613	620.650
27.695	810.187
27.752	630.643
27.813	505.962
27.874	381.281
28.016	436.162
28.161	515.980
28.229	491.051
28.237	610.753
28.373	565.882
28.518	660.663
28.578	526.007
28.641	426.265
28.641	436.240
28.652	585.867
28.785	501.096
28.793	620.797
28.935	670.690
29.204	531.073
29.264	401.405
29.338	461.264
29.343	536.078
29.343	536.078
29.495	730.611
29.497	760.536
29.554	580.992
29.622	561.050
29.640	820.404
29.682	421.407
29.696	625.898
29.698	655.823
29.763	586.005
29.772	720.670
29.822	431.400
29.983	750.621
30.251	611.004
30.256	680.830
30.323	645.926
30.339	885.329
30.388	591.071
30.396	705.785
30.452	506.291
30.454	541.204
30.533	675.877
30.539	760.666
30.668	626.019
30.734	566.177
30.885	745.746
30.947	631.041
30.959	810.594
31.021	700.876
31.085	631.058
31.170	845.532
31.227	670.976
31.288	546.296
31.423	496.437
31.438	700.928
31.451	890.455
31.501	611.160
31.513	785.725
31.516	825.626
31.530	1030.116
31.648	730.879
31.780	636.132
31.784	695.983
31.912	526.423
31.938	910.466
31.945	1015.205
31.991	671.071
32.001	815.711
32.066	745.894
32.066	745.894
32.266	631.205
32.280	825.721
32.287	935.447
32.290	975.348
32.336	636.202
32.352	875.605
32.416	795.813
32.489	840.709
32.610	581.373
32.614	646.211
32.617	686.112
32.623	775.888
32.625	800.826
32.642	1045.217
32.843	945.492
32.898	726.047
32.936	1274.680
33.114	840.787
33.127	1030.315
33.185	870.721
33.262	975.469
33.339	1085.204
33.362	1414.384
33.397	915.636
33.454	741.079
33.457	780.980
33.533	870.765
33.585	621.395
33.597	800.947
33.678	960.558
33.730	711.188
33.750	1005.455
33.805	790.998
33.822	1040.377
33.826	1090.253
33.877	835.895
33.955	950.618
34.007	701.248
34.072	641.406
34.074	671.331
34.090	895.772
34.172	1070.346
34.176	1140.172
34.240	1060.379
34.287	736.196
34.444	990.579
34.500	806.048
34.505	870.886
34.509	930.737
34.585	1020.522
34.708	791.111
34.732	1135.254
34.881	1289.886
34.912	736.273
34.914	761.211
34.989	836.034
35.004	1050.499
35.008	1115.338
35.087	1259.986
35.201	895.911
35.205	955.761
35.210	1020.600
35.269	875.969
35.282	1060.509
35.365	1255.033
35.557	1025.631
35.557	1025.631
35.568	1185.233
35.620	925.888
35.677	751.331
35.693	985.747
35.769	1080.520
35.836	1045.616
35.843	1135.392
35.847	1190.255
35.888	791.258
35.988	1225.186
36.001	1414.713
36.031	851.126
36.049	1110.480
36.106	930.936
36.112	1005.750
36.211	1439.677
36.248	965.866
36.271	1305.021
36.304	776.347
36.465	1100.557
36.537	1135.479
36.544	1235.230
36.603	1080.624
36.683	1240.235
36.807	1025.786
36.902	1384.901
36.914	1559.466
36.956	1170.444
36.961	1235.282
37.020	1090.651
37.028	1205.365
37.071	1828.812
37.087	1045.772
37.096	1180.436
37.297	1070.735
37.380	1275.235
37.391	1429.849
37.458	1399.933
37.571	1020.894
37.629	851.325
37.633	916.164
37.652	1190.480
37.655	1235.369
37.775	956.082
37.789	1155.585
37.912	926.174
37.938	1310.217
38.130	1075.827
38.224	1419.978
38.487	1215.522
38.550	1120.767
38.551	1130.742
38.612	1011.049
38.685	1065.921
38.839	1275.416
38.910	1300.363
38.991	1469.949
39.022	916.337
39.051	1340.281
39.107	1140.787
39.109	1165.724
39.122	1360.240
39.150	1754.258
39.229	891.425
39.349	1619.620
39.474	1425.122
39.748	1375.281
39.754	1460.069
39.758	1509.945
39.902	1584.776
40.032	1460.104
40.170	1445.158
40.320	1614.753
40.439	1315.516
40.504	1255.674
40.650	1365.418
40.655	1435.244
40.770	1091.119
40.853	1280.655
41.213	1460.251
41.844	1550.105
41.892	1245.872
41.919	1639.890
41.981	1525.185
42.542	1600.068
42.694	1794.600
42.946	1425.554];
units.LW_f = {'cm', 'g'}; label.LW_f = {'total length', 'wet weight','females'};
bibkey.LW_f = {'YoneToki1998'};
%
data.LW_m = [ ... total length (cm), weight (g)
12.668	24.631
13.402	44.335
13.872	41.872
14.137	78.818
14.186	46.798
15.024	56.650
15.286	71.429
15.394	103.448
15.496	73.892
15.654	83.744
15.811	91.133
15.862	76.355
16.123	73.892
16.230	93.596
16.807	115.764
16.856	86.207
17.331	133.005
17.588	88.670
17.590	113.301
18.061	118.227
18.063	133.005
18.164	103.448
18.326	152.709
18.479	115.764
18.692	147.783
18.741	123.153
18.798	167.488
18.848	142.857
19.213	137.931
19.268	162.562
19.424	155.172
19.475	137.931
19.524	113.301
19.634	160.099
19.793	182.266
19.891	125.616
19.944	133.005
19.998	145.320
20.053	169.951
20.104	157.635
20.158	177.340
20.265	199.507
20.477	224.138
20.629	182.266
20.632	206.897
20.734	184.729
20.734	189.655
20.792	238.916
20.833	133.005
20.837	169.951
20.944	199.507
20.953	278.325
20.991	145.320
20.992	150.246
21.057	275.862
21.103	214.286
21.106	241.379
21.254	165.025
21.369	261.084
21.417	224.138
21.467	201.970
21.618	145.320
21.622	182.266
21.778	172.414
21.785	241.379
21.835	214.286
21.836	224.138
21.838	251.232
21.846	325.123
21.932	150.246
22.049	266.010
22.056	334.975
22.105	300.493
22.146	194.581
22.147	206.897
22.249	179.803
22.255	233.990
22.260	280.788
22.462	221.675
22.467	263.547
22.468	278.325
22.569	243.842
22.619	219.212
22.825	194.581
22.831	248.768
22.835	288.177
22.889	305.419
22.939	275.862
23.161	403.941
23.195	233.990
23.298	211.823
23.303	258.621
23.305	285.714
23.351	219.212
23.409	275.862
23.411	300.493
23.505	199.507
23.565	266.010
23.667	248.768
23.794	455.665
23.828	280.788
23.882	305.419
24.138	251.232
24.142	290.640
24.203	374.384
24.245	278.325
24.248	307.882
24.364	408.867
24.406	315.271
24.409	342.365
24.414	391.626
24.509	302.956
24.662	261.084
24.766	258.621
24.821	285.714
24.826	334.975
24.929	317.734
24.932	342.365
24.939	413.793
24.985	352.217
25.080	258.621
25.085	307.882
25.090	362.069
25.133	273.399
25.292	288.177
25.400	320.197
25.404	362.069
25.445	251.232
25.454	337.438
25.564	394.089
25.661	322.660
25.771	369.458
25.814	280.788
25.870	317.734
25.925	344.828
26.029	339.901
26.035	401.478
26.246	418.719
26.337	285.714
26.339	302.956
26.345	366.995
26.348	394.089
26.396	354.680
26.445	320.197
26.458	445.813
26.505	394.089
26.551	332.512
26.810	310.345
26.916	330.049
26.927	428.571
26.928	443.350
27.023	354.680
27.038	495.074
27.082	411.330
27.132	396.552
27.182	369.458
27.187	416.256
27.296	460.591
27.601	379.310
27.606	426.108
27.650	349.754
27.663	477.833
27.712	438.424
27.719	509.852
27.759	389.163
27.820	477.833
27.860	359.606
27.863	384.236
27.869	440.887
27.928	512.315
27.970	411.330
28.185	463.054
28.290	470.443
28.388	413.793
28.392	445.813
28.447	472.906
28.451	507.389
28.589	332.512
28.602	453.202
28.648	401.478
28.667	581.281
28.861	433.498
28.862	443.350
28.878	598.522
28.967	448.276
28.971	482.759
28.974	514.778
29.031	556.650
29.120	416.256
29.134	546.798
29.171	399.015
29.349	603.448
29.443	497.537
29.498	532.020
30.062	421.182
30.122	495.074
30.175	507.389
30.585	426.108
30.755	554.187
30.914	578.818
31.015	536.946
31.122	566.502
31.122	566.502
31.962	596.059
32.063	566.502
32.467	431.035
32.648	662.562
32.689	551.724
32.759	729.064
32.975	793.103
33.129	768.473
33.508	889.163
35.055	692.118];
units.LW_m = {'cm', 'g'}; label.LW_m = {'total length', 'wet weight','males'};
bibkey.LW_m = {'YoneToki1998'};

%% set weights for all real data
weights = setweights(data, []);
weights.Li = 3 * weights.Li;

%% set pseudodata and respective weights
[data, units, label, weights] = addpseudodata(data, units, label, weights);

%% pack auxData and txtData for output
auxData.temp = temp;
auxData.treat = treat;
txtData.units = units;
txtData.label = label;
txtData.bibkey = bibkey;
txtData.comment = comment;

%% Group plots
set1 = {'LW_f','LW_m'}; subtitle1 = {'Data for females, males'};
metaData.grp.sets = {set1};
metaData.grp.subtitle = {subtitle1};

%% Discussion points
D1 = 'males are assumed to differ from females by {p_Am} and E_Hp only ';
metaData.discussion = struct('D1',D1);  
                                 
%% Facts
F1 = 'length-weight Ww in g = 0.01995*(TL in cm)^3.00';
metaData.bibkey.F1 = 'fishbase';
metaData.facts = struct('F1',F1);

%% Links
metaData.links.id_CoL = '3W2MQ'; % Cat of Life
metaData.links.id_ITIS = '164511'; % ITIS
metaData.links.id_EoL = '46566113'; % Ency of Life
metaData.links.id_Wiki = 'Lophiomus_setigerus'; % Wikipedia
metaData.links.id_ADW = 'Lophiomus_setigerus'; % ADW
metaData.links.id_Taxo = '179101'; % Taxonomicon
metaData.links.id_WoRMS = '217838'; % WoRMS
metaData.links.id_fishbase = 'Lophiomus-setigerus'; % fishbase

%% References
bibkey = 'Wiki'; type = 'Misc'; bib = ...
'howpublished = {\url{https://en.wikipedia.org/wiki/Lophiomus_setigerus}}';  
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'Kooy2010'; type = 'Book'; bib = [ ...  % used in setting of chemical parameters and pseudodata
'author = {Kooijman, S.A.L.M.}, ' ...
'year = {2010}, ' ...
'title  = {Dynamic Energy Budget theory for metabolic organisation}, ' ...
'publisher = {Cambridge Univ. Press, Cambridge}, ' ...
'pages = {Table 4.2 (page 150), 8.1 (page 300)}, ' ...
'howpublished = {\url{../../../bib/Kooy2010.html}}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'YoneToki1998'; type = 'Article'; bib = [ ...  
'author = {Michio Yoneda and Muneharu Tokimura and Hitoshi Fujita and Naohiko Takeshita and Koji Takeshita and Michiya Matsuyama and Shuhei Matsuura}, ' ...
'year = {1998}, ' ...
'title = {Age and Growth of the Anglerfish \emph{Lophiomus setigerus} in the {E}ast {C}hina {S}ea}, ' ... 
'journal = {Fisheries Science}, ' ...
'volume = {64(3)}, '...
'pages = {379-384}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'fishbase'; type = 'Misc'; bib = ...
'howpublished = {\url{https://www.fishbase.se/summary/Lophiomus-setigerus.html}}';  
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
