function [data, auxData, metaData, txtData, weights] = mydata_Crassostrea_virginica

%% Set metaData

metaData.phylum     = 'Mollusca';
metaData.class      = 'Bivalvia';
metaData.order      = 'Ostreoida';
metaData.family     = 'Ostreidae';
metaData.species    = 'Crassostrea_virginica';
metaData.species_en = 'Eastern oyster';

metaData.ecoCode.climate = {'MB', 'MC'};
metaData.ecoCode.ecozone = {'MAW'};
metaData.ecoCode.habitat = {'0jMp', 'jiMb', 'jiMi'};
metaData.ecoCode.embryo  = {'Mp'};
metaData.ecoCode.migrate = {};
metaData.ecoCode.food    = {'biPp'};
metaData.ecoCode.gender  = {'D'};
metaData.ecoCode.reprod  = {'O'};

metaData.T_typical  = C2K(20);                                                                            % K, body temp
metaData.data_0     = {'ab'; 'aj'; 'ap'; 'am'; 'Lb'; 'Lj'; 'Lp'; 'Li'; 'Wdb'; 'Wdj'; 'Wdp'; 'Wdi'; 'Ri'}; % tags for different types of zero-variate data
metaData.data_1     = {'t-L_f'; 'L-Ww'; 'Wd-JO_T'};                                                           % tags for different types of uni-variate data

metaData.COMPLETE = 3.5; % using criteria of LikaKear2011

metaData.author    = {'Romain Lavaud'};    
metaData.date_subm = [2018 01 22];          
metaData.email     = {'rlavaud@hotmail.fr'};
metaData.address   = {'Postdoc at Louisiana State University AgCenter, School of Renewable Natural Resources, Baton Rouge, LA 70803, USA'}; % affiliation, postcode, country of the corresponding author

metaData.author_mod_1   = {'Bas Kooijman'};    
metaData.date_mod_1    = [2018 08 27];          
metaData.email_mod_1   = {'bas.kooijman@vu.nl'};
metaData.address_mod_1 = {'VU University Amsterdam'}; 

metaData.curator     = {'Bas Kooijman'};
metaData.email_cur   = {'bas.kooijman@vu.nl'}; 
metaData.date_acc    = [2018 08 27]; 

%% Set Zero-variate data
data.ab   = 1.5;      units.ab      = 'd'; label.ab      = 'age at birth';         bibkey.ab = {'Gals1964','Carr2009'};
  temp.ab = C2K(25);  units.temp.ab = 'K'; label.temp.ab = 'temperature';
data.aj   = 20;       units.aj      = 'd'; label.aj      = 'age at metamorphosis'; bibkey.aj = {'Gals1964','Carr2009'};
  temp.aj = C2K(23);  units.temp.aj = 'K'; label.temp.aj = 'temperature';
data.ap   = 84;       units.ap      = 'd'; label.ap      = 'age at puberty';       bibkey.ap = {'HayeMenz1981','ObeiHeff1996'};
  temp.ap = C2K(28);  units.temp.ap = 'K'; label.temp.ap = 'temperature';
data.am   = 20 * 365; units.am      = 'd'; label.am      = 'life span';            bibkey.am = 'Gals1964';
  temp.am = C2K(20);  units.temp.am = 'K'; label.temp.am = 'temperature';

data.Lb = 0.0075; units.Lb = 'cm'; label.Lb = 'diameter of a D-larvae';        bibkey.Lb = {'Gals1964','GallMann1986','Carr2009'};
data.Lj = 0.035;  units.Lj = 'cm'; label.Lj = 'diameter of a settling larvae'; bibkey.Lj = {'Andr1979','Toma1981','Carr2009'};
data.Lp = 3;      units.Lp = 'cm'; label.Lp = 'shell height';                  bibkey.Lp = {'Gals1964','HayeMenz1981','ObeiHeff1996','Carr2009'};
data.Li = 20.6;   units.Li = 'cm'; label.Li = 'ultimate shell height';         bibkey.Li = 'Gals1964';

data.Wdb = 1.5e-7; units.Wdb = 'g'; label.Wdb = 'dry weight at birth';         bibkey.Wdb = 'GallMann1986';
data.Wdj = 7.5e-6; units.Wdj = 'g'; label.Wdj = 'dry weight at metamorphosis'; bibkey.Wdj = 'LabaFern1999';
  comment.Wdj = 'data from Ostrea edulis';
data.Wdp = 0.12;   units.Wdp = 'g'; label.Wdp = 'dry weight at puberty';       bibkey.Wdp = {'HayeMenz1981','ObeiHeff1996'};
  comment.Wdp = 'estimated from length given by HayeMenz1981 and ObreHeff1996 (with W=L^3)';
data.Wdi = 35.8;   units.Wdi = 'g'; label.Wdi = 'ultimate dry weight';         bibkey.Wdi = 'Gals1964';

data.Ri   = 1.3e6;   units.Ri      = '#/d'; label.Ri      = 'maximum reprod rate'; bibkey.Ri  = {'HoffPowe1992','ChoiLewi1993'};
  temp.Ri = C2K(20); units.temp.Ri = 'K';   label.temp.Ri = 'temperature';

%% Set Uni-variate data
 %%% Data from HopkMack1953 - Field monitoring
 % age (d) length (cm) at f = 0.9 (almost unlimited, assumption for shallow water of Louisiana), T = 25 C
data.tL_HopkMack1953 = [0.4 26.9 49.3 75.8 104.9 130.6 159.7 189.9 221.9 235.5 272.7 301.0 328.6 355.8 381.6 409.6 441.6 460.7 472.9 486.1 504.9 520.3 538.7 563.4 591.0 614.5; % d,  time since birth
                        0.034 1.322 2.041 2.898 3.832 4.343 5.047 5.585 5.963 6.073 6.200 6.426 6.798 6.948 7.327 7.351 7.646 7.831 7.941 8.030 8.166 8.269 8.433 8.743 8.837 8.932]'; % cm, physical length
units.tL_HopkMack1953 = {'d','cm'}; label.tL_HopkMack1953 = {'time since birth','shell length'};
temp.tL_HopkMack1953 = C2K(25); units.temp.tL_HopkMack1953 = 'K'; label.temp.tL_HopkMack1953 = 'temperature';
bibkey.tL_HopkMack1953 = 'HopkMack1953';

 %%% Data from MannSout2009 - Field monitoring
 % age (d) length (cm) at f = 0.5 (Virginia), T = 16 C
data.tL_MannSout2009 = [365 365 365 365 731 731 731 731 1096 1096 1096 1096 1461 1461 1461 1461 1826 1826 1826 2192 2192 2192; % d,  time since birth
                        3.23 3.38 3.96 4.16 5.18 5.38 5.97 6.26 7.19 8.48 8.78 9.19 9.19 9.55 10.47 10.77 11.55 11.77 11.98 12.19 13.19 13.50]'; % cm, physical length
units.tL_MannSout2009 = {'d','cm'}; label.tL_MannSout2009 = {'time since birth','shell length'};
temp.tL_MannSout2009 = C2K(16); units.temp.tL_MannSout2009 = 'K'; label.temp.tL_MannSout2009 = 'temperature';
bibkey.tL_MannSout2009 = 'MannSout2009';

 %%% Data from PaynPoli2010 - Field monitoring
 % age (d) length (cm) at f = 0.5 (Maryland), T = 15 C
data.tL_PaynPoli2010 = [108 111 111 365 365 365 365 365 365 730 733 733 1098 1100 1100 1463 1463 1828; % d,  time since birth
                        1.99 1.99 1.99 5.19 5.44 5.76 6.28 6.41 7.00 7.66 7.98 9.33 8.39 8.97 9.59 9.73 10.05 11.63]'; % cm, physical length
units.tL_PaynPoli2010 = {'d','cm'}; label.tL_PaynPoli2010 = {'time since birth','shell length', '15 C'};
temp.tL_PaynPoli2010 = C2K(15); units.temp.tL_PaynPoli2010 = 'K'; label.temp.tL_PaynPoli2010 = 'temperature';
bibkey.tL_PaynPoli2010 = 'PaynPoli2010';

 %%% Data from CasaLape2011 - Field monitoring
 % length (mm) wet weight (g) at f = 1 (Grand Isle, Louisiana, unlimitinf food) at 23 C
data.LWw = [36.4 38.2 38.2 38.4 38.8 39.5 39.8 40.0 40.6 41.0 41.1 41.1 41.4 41.7 42.2 42.3 42.4 42.6 42.6 42.9 42.9 42.9 43.0 43.2 43.3 43.8 44.3 44.5 45.1 45.2 45.3 45.9 46.1 46.1 46.1 46.3 46.4 46.9 46.9 47.4 47.6 47.8 48.1 48.6 48.6 49.0 49.6 50.0 50.5 51.4 51.9 52.1 52.2 52.5 53.7 53.9 54.1 54.1 54.2 54.2 54.3 54.7 56.6 57.0 57.2 57.3 58.2 58.9 59.4 59.6 60.7 61.0 61.8 62.1 62.3 62.5 62.5 62.5 63.2 63.2 63.3 63.4 63.8 63.9 64.1 64.3 64.4 64.6 64.6 64.7 64.8 65.5 65.8 65.9 66.0 66.1 66.1 66.5 66.5 66.7 66.8 66.8 66.9 67.0 67.2 67.4 67.6 67.8 67.9 67.9 68.0 68.3 68.5 68.6 68.7 68.9 69.1 69.4 69.6 69.7 70.1 70.2 70.3 70.3 70.4 70.5 70.6 71.6 71.8 72.1 72.1 72.2 72.3 72.3 72.5 72.5 72.6 72.8 72.8 72.9 73.0 73.1 73.1 73.5 73.6 73.6 73.6 73.6 73.7 73.8 73.9 74.1 74.2 74.2 74.2 74.3 74.3 74.4 74.5 74.8 75.0 75.1 75.1 75.2 75.2 75.4 75.5 75.5 75.6 75.7 75.7 75.8 75.8 75.8 75.9 75.9 76.0 76.0 76.1 76.1 76.2 76.3 76.5 76.6 76.6 77.0 77.0 77.1 77.2 77.2 77.3 77.3 77.4 77.5 77.5 77.6 77.8 77.9 77.9 78.0 78.0 78.2 78.3 78.4 78.6 78.6 78.6 78.7 78.8 78.9 78.9 79.0 79.1 79.1 79.1 79.1 79.4 79.4 79.7 79.8 79.9 80.0 80.2 80.2 80.4 80.5 80.5 80.6 80.6 80.7 80.7 80.8 80.9 81.0 81.0 81.0 81.0 81.1 81.1 81.1 81.3 81.4 81.4 81.5 81.5 81.5 81.5 81.6 81.6 81.7 81.9 82.1 82.2 82.2 82.3 82.4 82.5 82.6 82.7 82.7 82.8 82.8 82.9 82.9 82.9 83.0 83.1 83.1 83.1 83.1 83.2 83.3 83.4 83.4 83.5 83.6 83.6 83.7 83.7 83.7 83.7 83.8 83.8 83.9 84.0 84.0 84.0 84.1 84.2 84.3 84.4 84.4 84.5 84.5 84.5 84.5 84.6 84.7 84.8 84.8 84.9 85.0 85.0 85.1 85.3 85.3 85.3 85.4 85.5 85.5 85.5 85.5 85.5 85.5 85.6 85.6 85.6 85.7 85.9 85.9 86.1 86.1 86.2 86.2 86.3 86.3 86.3 86.4 86.4 86.4 86.5 86.6 86.6 86.6 86.7 86.8 86.8 86.9 87.0 87.0 87.0 87.0 87.0 87.1 87.2 87.3 87.3 87.3 87.3 87.3 87.3 87.4 87.4 87.4 87.5 87.6 87.6 87.6 87.9 88.0 88.0 88.0 88.0 88.1 88.1 88.2 88.3 88.4 88.6 88.6 88.7 88.7 88.8 88.8 88.9 88.9 88.9 89.0 89.0 89.1 89.2 89.3 89.4 89.5 89.5 89.5 89.6 89.6 89.7 89.8 89.8 89.8 89.8 89.8 89.9 89.9 89.9 90.0 90.0 90.0 90.0 90.0 90.1 90.1 90.1 90.1 90.1 90.2 90.3 90.3 90.4 90.5 90.5 90.6 90.7 90.8 90.8 90.9 91.0 91.0 91.0 91.0 91.0 91.1 91.1 91.3 91.4 91.4 91.4 91.4 91.4 91.5 91.5 91.5 91.6 91.7 91.7 91.9 91.9 92.0 92.1 92.1 92.1 92.1 92.4 92.5 92.5 92.5 92.5 92.5 92.6 92.7 92.7 92.8 92.8 92.8 92.8 92.8 92.8 92.8 92.9 92.9 92.9 93.1 93.1 93.1 93.2 93.2 93.3 93.3 93.4 93.4 93.4 93.4 93.5 93.6 93.6 93.6 93.8 93.8 93.8 93.8 93.9 93.9 93.9 94.0 94.1 94.1 94.4 94.5 94.5 94.6 94.6 94.6 94.7 94.7 94.8 94.9 94.9 95.0 95.1 95.2 95.2 95.4 95.5 95.5 95.7 95.8 95.9 95.9 96.0 96.1 96.2 96.2 96.2 96.2 96.3 96.3 96.3 96.4 96.5 96.5 96.7 96.7 96.8 96.8 96.9 96.9 96.9 96.9 97.0 97.0 97.0 97.2 97.2 97.3 97.5 97.5 97.5 97.5 97.6 97.6 97.6 97.7 97.8 97.8 97.8 97.9 98.0 98.1 98.1 98.1 98.2 98.2 98.2 98.2 98.2 98.4 98.4 98.5 98.5 98.5 98.6 98.6 98.6 98.7 98.8 98.9 98.9 98.9 98.9 99.0 99.1 99.1 99.2 99.4 99.5 99.5 99.5 99.5 99.5 99.7 99.7 99.8 99.8 99.8 99.8 99.8 99.9 100.0 100.0 100.0 100.2 100.2 100.3 100.4 100.4 100.4 100.5 100.5 100.5 100.6 100.6 100.7 100.8 101.0 101.0 101.0 101.2 101.2 101.3 101.3 101.4 101.5 101.5 101.6 101.7 101.7 101.8 101.8 101.9 101.9 101.9 102.0 102.0 102.1 102.3 102.3 102.4 102.4 102.4 102.6 102.6 102.6 102.8 102.9 102.9 103.0 103.0 103.0 103.1 103.1 103.1 103.2 103.2 103.4 103.5 103.6 103.6 103.6 103.8 103.8 104.0 104.2 104.2 104.4 104.5 104.5 104.6 104.6 104.6 104.7 104.8 104.8 104.9 105.0 105.0 105.0 105.1 105.1 105.2 105.2 105.2 105.3 105.3 105.4 105.4 105.4 105.6 105.8 105.8 105.8 105.8 105.8 105.8 105.8 105.9 105.9 105.9 106.3 106.3 106.4 106.6 106.7 106.7 106.7 106.8 106.8 106.8 107.0 107.0 107.0 107.1 107.1 107.1 107.2 107.2 107.3 107.4 107.4 107.4 107.5 107.6 107.8 107.9 107.9 108.0 108.1 108.2 108.2 108.4 108.4 108.5 108.6 108.6 108.7 108.9 108.9 109.1 109.4 109.4 109.4 109.4 109.4 109.4 109.5 109.5 109.6 109.7 109.8 109.8 110.0 110.2 110.4 110.4 110.4 110.5 110.5 110.6 110.7 110.7 110.7 110.9 110.9 111.0 111.1 111.1 111.2 111.2 111.2 111.2 111.2 111.2 111.2 111.3 111.4 111.5 111.6 111.6 111.9 112.0 112.0 112.1 112.2 112.2 112.2 112.2 112.3 112.3 112.5 112.5 112.8 112.9 112.9 113.0 113.1 113.2 113.2 113.6 113.7 114.1 114.2 114.3 114.4 114.4 114.5 114.5 114.5 114.8 114.8 114.8 115.0 115.1 115.2 115.2 115.4 115.5 116.0 116.0 116.0 116.1 116.2 116.2 116.3 116.3 116.4 116.4 116.7 116.7 117.0 117.0 117.0 117.1 117.2 117.3 117.4 117.4 117.4 117.4 117.6 117.8 117.8 117.9 117.9 117.9 117.9 117.9 118.0 118.0 118.1 118.1 118.1 118.1 118.2 118.4 118.5 118.5 118.7 118.8 119.0 119.0 119.1 119.2 119.3 119.3 119.3 119.4 119.4 119.5 119.6 119.7 119.9 119.9 120.0 120.0 120.2 120.3 120.4 120.5 120.6 121.0 121.3 121.4 121.4 121.4 121.6 121.8 121.8 122.0 122.1 122.2 122.3 122.6 123.1 123.1 123.4 123.4 123.6 123.8 123.8 124.1 124.2 124.5 124.5 124.6 124.8 124.8 125.0 125.0 125.4 125.6 126.1 126.1 126.2 126.3 126.8 126.8 126.8 126.8 127.1 127.8 127.8 127.9 128.0 128.0 128.5 128.6 129.1 129.1 129.1 129.5 129.8 130.2 130.4 130.4 130.6 131.0 131.2 131.4 131.4 131.6 131.9 132.0 132.2 132.4 132.5 132.8 133.1 134.2 134.4 135.0 135.3 135.5 136.0 136.8 137.5 137.6 137.9 138.6 141.4 141.6 141.9 144.5 146.0 146.4 154.5; % cm, shell height
            1.02 1.57 1.12 1.32 1.19 0.87 0.77 1.70 1.55 1.79 1.92 1.40 1.01 1.46 1.19 1.88 1.52 1.49 1.57 1.62 1.62 1.71 1.23 1.61 1.25 1.11 1.76 1.92 1.58 1.80 1.82 2.26 1.57 1.97 1.14 2.57 1.10 1.78 1.50 1.66 1.70 2.16 1.61 2.00 2.38 1.65 2.04 2.02 2.08 1.93 2.34 1.53 2.58 2.29 3.74 2.44 6.72 5.62 8.01 2.62 1.72 2.75 7.86 6.51 1.58 4.64 6.79 2.57 5.44 4.47 12.50 9.49 11.26 7.62 6.46 8.67 11.28 7.98 11.09 5.82 7.50 10.37 8.41 6.67 12.74 10.15 8.37 7.06 6.22 6.06 9.71 8.16 5.73 7.59 11.39 6.36 8.60 11.32 8.93 9.13 8.82 12.50 5.26 8.34 12.55 7.48 8.69 7.27 4.16 8.03 11.14 7.66 6.63 13.08 10.36 9.66 9.51 11.05 12.14 13.93 9.55 11.09 10.69 6.72 13.21 7.40 6.25 10.22 7.90 9.66 14.72 7.49 7.20 8.20 10.61 7.71 8.75 9.33 8.84 5.84 9.35 8.32 6.09 8.72 13.26 9.14 6.37 13.24 16.35 11.33 11.22 10.54 13.50 6.58 6.76 6.33 12.20 7.41 7.87 13.68 6.74 8.67 10.21 12.00 6.59 13.10 16.43 6.05 13.41 11.04 14.25 8.66 6.11 8.28 8.98 21.98 8.07 9.35 7.41 14.32 6.66 9.00 12.34 6.30 12.01 9.70 12.74 13.08 12.71 7.86 14.77 18.20 8.56 25.32 10.46 12.30 16.85 13.85 8.94 8.06 7.58 9.41 8.32 14.46 15.47 7.92 16.21 6.03 13.35 12.75 7.49 15.20 7.42 18.88 7.52 11.41 6.81 11.42 19.13 8.87 11.28 16.20 8.86 8.67 8.13 8.09 11.29 12.48 9.17 15.35 11.92 10.75 10.27 11.24 6.76 7.81 9.21 7.77 18.34 14.82 7.57 14.69 7.87 8.38 7.26 9.11 13.12 15.15 8.69 15.39 9.33 7.68 10.10 8.96 9.59 8.98 9.95 15.38 8.46 9.71 13.92 7.31 13.16 11.04 11.49 6.03 17.75 10.79 13.86 13.62 12.83 13.89 12.46 11.80 11.94 13.31 8.99 15.39 6.23 9.57 13.27 6.93 14.95 8.42 8.43 13.49 9.99 10.79 22.24 17.23 9.55 12.04 8.79 10.78 9.66 8.46 15.69 11.85 9.61 17.18 16.82 13.76 11.40 9.80 10.58 8.16 12.54 9.36 18.72 8.82 9.65 8.29 12.10 13.37 4.60 21.85 11.15 10.61 16.96 13.80 14.53 8.79 8.98 16.52 17.09 7.23 20.06 19.55 10.64 15.27 8.66 15.77 10.74 16.07 15.83 17.00 10.53 7.43 12.97 16.89 13.90 9.88 13.27 18.76 19.94 18.25 10.53 11.14 12.81 14.53 17.48 14.76 15.59 10.52 20.42 17.14 14.77 12.83 13.29 8.79 17.80 6.29 10.86 17.51 8.11 14.52 13.84 10.90 12.93 14.11 11.20 12.80 9.31 14.72 9.65 21.30 16.46 8.24 11.97 23.92 10.05 17.84 7.89 11.60 11.08 16.05 9.37 11.05 15.85 17.00 8.90 11.71 16.25 16.03 17.81 16.15 11.72 8.56 11.10 11.03 4.81 18.22 8.12 23.03 28.24 14.89 16.54 21.05 21.32 25.40 20.76 13.10 14.30 17.41 14.13 14.32 14.27 15.94 13.39 6.93 5.73 17.81 14.97 22.75 10.18 10.72 7.29 21.45 13.25 9.18 16.69 17.47 7.74 22.09 12.33 16.62 10.60 16.32 10.09 12.54 20.32 10.60 17.57 6.70 14.89 17.86 11.39 9.67 13.48 17.20 10.47 20.88 19.43 14.06 21.50 24.23 10.70 14.19 11.74 16.78 16.96 10.25 8.65 23.70 24.30 8.55 5.82 12.63 16.60 10.49 10.30 19.40 13.65 21.33 9.50 19.70 32.00 12.98 7.58 23.68 12.54 20.90 23.47 19.66 22.26 20.11 17.61 19.38 15.46 22.92 13.57 18.00 8.21 19.43 17.60 15.90 11.45 26.53 25.65 12.87 18.05 21.99 7.20 7.87 25.87 11.12 15.47 17.20 23.75 12.80 21.70 16.35 26.20 9.75 15.59 15.21 14.79 9.23 11.10 8.62 11.39 11.03 17.62 20.52 22.52 11.65 21.55 16.26 15.82 14.82 26.45 19.62 13.44 26.03 31.93 15.55 29.09 17.89 9.13 10.55 9.34 11.95 23.37 24.74 24.06 8.53 16.13 15.07 9.05 13.73 12.28 12.02 19.83 10.63 9.67 13.37 17.12 10.48 9.79 22.45 15.33 13.97 11.07 11.55 21.44 18.40 15.81 17.14 20.90 18.15 23.19 12.47 17.70 19.02 21.89 14.07 7.11 20.68 18.96 11.30 11.66 13.77 18.66 20.70 25.92 23.07 10.97 15.18 20.40 20.01 25.66 14.21 13.19 19.65 14.34 20.85 22.59 17.11 26.02 12.13 16.89 23.84 21.48 18.48 11.38 10.16 21.99 15.63 17.84 29.73 9.74 11.72 16.41 16.32 15.44 13.44 30.07 19.99 27.97 15.39 25.87 16.38 11.36 18.25 17.97 16.11 19.32 15.15 19.47 24.11 28.44 13.76 16.62 24.30 11.28 18.54 11.69 21.90 12.74 11.50 14.32 11.11 15.73 21.31 14.10 9.17 9.61 21.28 16.46 30.46 15.86 20.42 23.93 16.57 16.63 17.83 11.16 10.26 23.90 23.48 20.40 14.18 32.82 17.94 12.53 18.49 15.86 11.08 16.51 32.89 11.03 24.69 21.09 13.98 11.54 10.73 25.77 26.92 31.04 20.44 22.01 27.50 33.80 15.00 20.30 18.55 17.82 34.48 14.88 28.23 21.79 32.73 19.22 33.51 17.44 17.09 33.54 32.92 12.09 20.70 23.76 21.77 29.17 14.24 29.01 31.42 31.25 26.99 26.04 21.27 11.86 18.98 19.73 18.45 16.77 16.03 22.69 27.48 10.44 18.69 20.56 27.28 17.89 16.99 31.32 17.42 13.26 14.74 14.42 17.14 22.80 22.92 14.70 11.73 24.86 36.65 21.10 10.31 26.78 15.42 13.22 29.72 26.44 26.15 27.50 26.48 34.22 15.00 22.55 26.76 32.23 25.39 17.94 16.47 28.14 23.23 29.14 18.82 12.16 17.16 27.76 14.65 14.27 23.41 22.26 19.09 22.65 25.55 28.02 16.61 24.86 30.21 26.96 30.38 25.36 27.70 24.34 21.91 26.95 13.39 29.81 21.67 28.86 24.02 32.43 15.18 33.01 24.27 20.85 27.89 21.45 27.33 24.24 14.60 16.26 30.82 35.03 20.30 29.02 16.85 12.25 27.33 29.80 19.71 22.65 13.77 24.01 24.32 25.52 24.70 32.32 30.27 7.12 20.56 17.14 12.47 23.11 22.76 26.44 23.85 25.71 26.28 28.79 19.14 26.54 18.80 28.43 22.13 14.96 17.11 21.34 24.48 21.35 20.90 21.65 30.89 16.98 15.51 23.27 22.24 28.49 17.69 21.82 28.64 19.07 23.14 32.21 42.70 21.95 31.46 15.61 35.10 39.08 26.55 21.94 41.50 25.79 24.89 39.39 31.94 11.40 30.91 23.27 22.83 19.24 13.60 30.18 33.09 29.96 20.26 26.11 22.05 27.48 17.86 19.26 29.25 32.37 24.28 23.91 24.56 17.39 19.57 38.54 35.16 15.76 19.70 22.49 26.33 26.60 35.62 29.79 42.28 12.71 16.98 18.85 28.41 16.38 19.83 23.75 32.95 19.61 45.31 40.45 23.13 19.06 29.00 42.01 14.48 17.61 30.24 15.40 13.93 12.94 30.69 13.64 38.94 33.04 23.18 21.96 22.55 17.10 28.19 13.50 18.05 40.03 24.62 21.52 28.09 33.93 19.08 40.81 41.57 17.23 23.26 28.53 22.84 22.73 30.29 42.18 31.02 24.78 22.50 36.12 24.42 18.58 38.25 30.24 16.56 40.87 36.54 33.72 32.06 31.35 34.12 32.52 18.57]'; % g, wet weight
data.LWw(:,1) = data.LWw(:,1) / 10; % cm, convert mm to cm
units.LWw = {'cm', 'g'}; label.LWw = {'shell height', 'wet weight', '23 C'};
temp.LWw = C2K(23); units.temp.LWw = 'K'; label.temp.LWw = 'temperature';
bibkey.LWw = 'CasaLape2011';

 %%% Data from Dame1972 - Respiration of juveniles at different temperatures
 % dry weight (g) oxygen consumption (muLO2/h) at T = 10 C and f = 1
data.WdJO_10 = [0.013 0.016 0.017 0.024 0.025 0.025 0.027 0.034 0.034 0.034 0.045 0.049 0.050 0.050 0.071 0.073 0.074 0.090 0.091 0.101 0.103 0.114 0.128 0.151 0.156 0.195 0.198 0.200 0.203 0.225 0.576 0.788 0.825 1.398; % g, dry weight
                13.53 10.67 7.37 11.34 9.12 17.69 11.28 12.28 19.06 17.87 16.04 24.66 13.56 15.12 25.42 27.79 8.08 21.61 15.67 34.06 12.93 18.55 21.95 25.97 46.31 21.12 36.91 31.67 72.64 73.74 199.49 253.05 159.05 327.59]'; % mulO2/h, oxygen consumption
units.WdJO_10 = {'g', 'mul/h'}; label.WdJO_10 = {'dry weight', 'oxygen consumption', '10 C'};
temp.WdJO_10 = C2K(10); units.temp.WdJO_10 = 'K'; label.temp.WdJO_10 = 'temperature';
bibkey.WdJO_10 = 'Dame1972';
 % at T = 20 C
data.WdJO_20 = [0.016 0.021 0.022 0.022 0.023 0.024 0.067 0.068 0.073 0.077 0.078 0.078 0.087 0.088 0.093 0.107 0.108 0.11 0.115 0.126 0.133 0.137 0.146 0.152 0.155 0.157 0.165 0.297 0.338 0.635 0.76 0.804 0.943 1.078 1.099 1.765 1.350; % g, dry weight
                20.27 37.39 28.37 31.01 46.46 21.11 70.55 49.47 40.22 50.47 43.32 53.55 41.05 68.55 34.55 53.87 50.57 78.75 71.37 93.63 53.91 82.12 75.78 160.84 79.23 101.89 95.11 162.67 135.53 414.57 523.15 277.97 330.56 359.63 528.76 691.17 900]'; % mulO2/h, oxygen consumption
units.WdJO_20 = {'g', 'mul/h'}; label.WdJO_20 = {'dry weight', 'oxygen consumption', '20 C'};
temp.WdJO_20 = C2K(20); units.temp.WdJO_20 = 'K'; label.temp.WdJO_20 = 'temperature';
bibkey.WdJO_20 = 'Dame1972';
 % at T = 30 C
data.WdJO_30 = [0.016 0.016 0.016 0.067 0.067 0.068 0.069 0.094 0.097 0.098 0.098 0.111 0.112 0.12 0.12 0.121 0.124 0.126 0.129 0.131 0.132 0.132 0.135 0.145 0.146 0.161 0.161 0.175 0.176 0.189 0.2 0.2 0.205 0.318 0.746 0.865 1.647 0.740 1.8; % g, dry weight
                48.28 52.24 44.84 91.61 103.12 78.63 73.75 86.02 131.46 113.95 107.4 123.35 59.17 118.61 86.94 170 156.35 124.62 101.32 187.67 178.64 162.67 142.4 136.25 90.05 177.88 110.26 153.46 163.62 132.39 192.61 135.06 203.37 131.96 313.6 486.59 452.83 800 930]'; % mulO2/h, oxygen consumption
units.WdJO_30 = {'g', 'mul/h'}; label.WdJO_30 = {'dry weight', 'oxygen consumption', '30 C'};
temp.WdJO_30 = C2K(30); units.temp.WdJO_30 = 'K'; label.temp.WdJO_30 = 'temperature';
bibkey.WdJO_30 = 'Dame1972';

 %%% Data from CasaLava(in prep) - Clearance rate experiment
 % T = 16 C, L = 7.0 cm
data.XJX = [7.5e-7 1.5e-6 2.25e-6 4.5e-6 9e-6 1.35e-5 1.8e-5; % C-mol/L, food concentration
            2.71 2.66 1.59 1.41 1.30 1.08 0.59]'; % L/h, clearance rate
units.XJX = {'C-mol/L', 'L/h'}; label.XJX = {'algae cells concentration', 'clearance rate'};
temp.XJX = C2K(16); units.temp.XJX = 'K'; label.temp.XJX = 'temperature';
bibkey.XJX = 'CasaLava2018';

%% set weights for all real data
weights = setweights(data, []);

%% set pseudodata and respective weights
[data, units, label, weights] = addpseudodata(data, units, label, weights);
weights.psd.v = 2 * weights.psd.v;
data.psd.k = 0.3; units.psd.k = '-'; label.psd.k = 'maintenance ratio';
weights.psd.k = 2 * weights.psd.k_J; weights.psd.k_J = 0;
weights.psd.p_M = 5 * weights.psd.p_M;

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

%% Group plots
set1 = {'WdJO_30','WdJO_20','WdJO_10'}; subtitle1 = {'respiration rate at 30, 20, 10 C'};
metaData.grp.sets    = {set1};
metaData.grp.subtitle = {subtitle1};

%% Discussion points
D1 = 'mod_1: use of pseudo-data k, instead of k_J, to avoid that maintenance ratio k exceeds 1';
metaData.discussion = struct('D1', D1);

%% Links
metaData.links.id_CoL = 'Z6ZW'; % Cat of Life
metaData.links.id_ITIS = '79872'; % ITIS
metaData.links.id_EoL = '46467110'; % Ency of Life
metaData.links.id_Wiki = 'Crassostrea_virginica'; % Wikipedia
metaData.links.id_ADW = 'Crassostrea_virginica'; % ADW
metaData.links.id_Taxo = '39285'; % Taxonomicon
metaData.links.id_WoRMS = '140657'; % WoRMS
metaData.links.id_molluscabase = '140657'; % molluscabase


%% References
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, p.150 and 8.1, p.300}, ' ...
'howpublished = {\url{../../../bib/Kooy2010.html}}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
% 
bibkey = 'Andr1979'; type = 'Inbook'; bib = [ ...
'author = {Andrews, J. D.}, ' ... 
'year = {1979}, ' ...
'title = {Pelecypoda: Ostreidae}, ' ...
'booktitle = {Reproduction of marine invertebrates Vol. 5: Molluscs: Pelecypods and lesser classes}, ' ...
'editor = {A. C. Giese and J. S. Pearse}, ' ...
'publisher = {Elsevier Science}, ' ...
'pages = {293-3-41}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'Carr2009'; type = 'Inbook'; bib = [ ...
'author = {Carriker, M. R.}, ' ...
'year = {2009}, ' ...
'title = {The shell and the ligament}, ' ...
'booktitle = {The Eastern oyster \emph{Crassostrea virginica}}, ' ...
'editor = {V. S. Kennedy and R. I. E. Newell and A. F. Eble}, ' ...
'publisher = {Maryland Sea Greant College, University of Maryland System, College Park}, ' ...
'pages = {75--160}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'CasaLape2011'; type = 'Misc'; bib = [ ...
'author = {Casas Liste, S. and Lapeyre, J. and Lapeyre, M.}, ' ...
'year = {2011}, ' ...
'title = {Field Monitoring, unpublished data}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'CasaLava2018'; type = 'Misc'; bib = [ ...
'author = {Casas Liste, S. and Lavaud, R. and Lapeyre, J. and Comeau, L. and Filgueira, R. and Lapeyre, M. K.}, ' ...
'year = {2018}, '...
'title = {Quantifying salinity and season relationships on eastern oyster clearance and oxygen consumption rates}, ' ...
'journal = {Marine Biology}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'ChoiLewi1993'; type = 'Article'; bib = [ ...
'author = {Choi, K. S. and Lewis, D. H. and Powell, E. N. and Ray, S. M.}, ' ...
'year = {1993}, ' ...
'title = {Quantitative measurement of reproductive output in the {A}merican oyster, \emph{Crassostrea virginica}, using an enzyme-linked immunosorbent assay}, ' ...
'journal = {Aquaculture and Fisheries Management}, ' ...
'volume = {24}, ' ...
'pages = {299--322}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'Dame1972'; type = 'Article'; bib = [ ...
'author = {Dame, R. F.}, ' ...
'year = {1972}, ' ...
'title = {The ecological energies of growth, respiration and assimilation in the intertidal {A}merican oyster \emph{Crassostrea virginica}}, ' ...
'journal = {Marine Biology}, ' ...
'volume = {17}, ' ...
'pages = {243--250}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'GallMann1986'; type = 'Article'; bib = [ ...
'author = {Gallager, S. M. and Mann, R. and Sasaki, G. C.}, ' ...
'year = {1986}, ' ...
'title = {Lipid as an index of growth and viability in three species of bivalve larvae}, ' ...
'journal = {Aquaculture}, ' ...
'volume = {56}, ' ...
'pages = {81--103}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'Gals1964'; type = 'Book'; bib = [ ...
'author = {Galstoff, P. S.}, ' ...
'year = {1964}, ' ...
'title = {The American oyster \emph{Crassostrea virginica} Gmelin}, ' ...
'publisher = {Unites States Department of the Interior, Fish and Wildlife Service, Bureau of Commercial Fisheries}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'HayeMenz1981'; type = 'Article'; bib = [ ...
'author = {Hayes, P. F. and Menzel, R. W.}, ' ...
'year = {1981}, ' ...
'title  = {The reproductive cycle of early setting \emph{Crassostrea virginica} in the northern {G}ulf of {M}exico, and its implications for population recruitment}, ' ...
'journal = {The Biological Bulletin}, ' ...
'volume = {160}, ' ...
'number = {1}, ' ...
'pages = {80--88}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'HoffPowe1992'; type = 'Article'; bib = [ ...
'author = {Hoffman, E. E. and Powell, E. N. and Klinck, J. N. and Wilson, E. A.}, ' ...
'year = {1992}, ' ...
'title  = {Modeling oyster populations III. {C}ritical feeding periods, growth and reproduction}, ' ...
'journal = {Journal of Shellfish Research}, ' ...
'volume = {11}, ' ...
'number = {2}, ' ...
'pages = {399--416}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'HopkMack1953'; type = 'Article'; bib = [ ...
'author = {Hopkins, S. H. and Mackin, J. G. and Menzel, R. W.}, ' ...
'year = {1953}, ' ...
'title = {The annual cycle of reproduction, growth and fattening in {L}ouisiana oysters}, ' ...
'journal = {National Shellfisheries Association Convention Papers}, ' ...
'pages = {39--50}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'LabaFern1999'; type = 'Article'; bib = [ ...
'author = {Labarta, U. and Fern\~{a}ndez-Reiriz, M. J. and P\''{e}rez-Camacho, A.}, ' ...
'year = {1999}, ' ...
'title = {Energy, biochemical substrates and growth in the larval development, metamorphosis and postlarvae of \emph{Ostrea edulis}}, ' ...
'journal = {Journal of Experimental Marine Biology and Ecology}, ' ...
'volume = {238}, ' ...
'number = {3}, ' ...
'pages = {225-242}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'MannSout2009'; type = 'Article'; bib = [ ...
'author = {Mann, R. and SouthWorth, M. and Harding, J. M. and Wesson, J. A.}, ' ...
'year = {2009}, ' ...
'title = {Population studies of the native eastern oyster, \emph{Crassostrea virginica}, ({G}melin, 1791) in the {J}ames {R}iver, {V}irginia, {U}{S}{A}}, ' ...
'journal = {Journal of Shellfish Research}, ' ...
'volume = {28}, ' ...
'number = {2}, ' ...
'pages = {193--220}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'ObeiHeff1996'; type = 'Article'; bib = [ ...
'author = {O''Beirn, F. X. and Heffernan, P. B. and Walker, R. L. and Jansen, M. L.}, ' ...
'year = {1996}, ' ...
'title = {Young-of-the-year oyster, \emph{Crassostrea virginica}, reproduction in coastal {G}eorgia}, ' ...
'journal = {Estuaries}, ' ...
'volume = {19}, ' ...
'number = {3}, ' ...
'pages = {651--658}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'PaynPoli2010'; type = 'Article'; bib = [ ...
'author = {Paynter, K. T. and Politano, V. and Lane, H. A. and Allen, S. M. and Meritt, D.}, ' ...
'year = {2010}, ' ...
'title = {Growth rates and prevalence of \emph{Perkinsus marinus} in restored oyster populations in {M}aryland}, ' ...
'journal = {Journal of Shellfish Research}, ' ...
'volume = {29}, ' ...
'number = {2}, ' ...
'pages = {309--317}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'Toma1981'; type = 'PhDthesis'; bib = [ ...
'author = {Tomaszewski, C.}, ' ...
'year = {1981}, ' ...
'title = {Cementation in the early dissoconch stage of \emph{Crassostrea virginica}}, ' ...
'school = {University of Delaware}, ' ...
'pages = {94}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'Wiki'; type = 'Misc'; bib = ...
'URL = {http://en.wikipedia.org/wiki/Crassostrea_virginica}';
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
