% Retreave pair of sequences to be compared
% 12may11
% B
%% preious: progresive

function [seqpairX,headerpairX]=getseqpair(leavesorder,names,seq,header,x)
a=leavesorder(x);
b=names(a);
for i=1:numel(names)
    if strcmp(b,header(i))==1
        seqpairX=seq(i);
        headerpairX=header(i);
    end
end

end