function vertbinnedarray=vertical_array_binner(origarray,rows_per_vert_bin)
%description: bins rows and takes the sum down each column, uses a fixed number of rows per bin so the color scaling will be consistent across chromosomes
%called by: snp_plotter
%calls: no custom functions
%code confirmed date:

origrows=size(origarray,1);
num_vert_bins=ceil(origrows/rows_per_vert_bin);

vertbinnedarray=[];
for i=1:num_vert_bins
    rowz=((i-1)*rows_per_vert_bin)+[1:rows_per_vert_bin];
    rowz(rowz>origrows)=[];
    c=sum(origarray(rowz,:),1);
    vertbinnedarray=[vertbinnedarray;c];
end