function data = load_xgrow_data(name)
% data = load_xgrow_data(name)
%   data  is an N x 10 array, for N xgrow trials
%              (older data may not have all 10 columns, 
%               but the first columns will have the same meaning)
%   There may be any number of trials of each type.
%   Data gets sorted according to Gmc, then Gse.
%
%  Columns:
%   1    2    3  4     5     6           7       8          9   10
%   Gmc  Gse  k  time  size  mismatches  events  perimeter  dG  dG_bonds

xgrow_i

data = load(['data/' name]);

% sort according to Gmc, then Gse.
% data records may be in any order.
% but there *must* be the same number of trials for each Gmc

[g,I] = sort(10000*data(:,xi_Gmc)+data(:,xi_Gse));  

data=data(I,:);


