
%% Resorting of all experimental Ribozym Data (oxy & methylated)
for i=1:127
NNames(i,2)={[nuFRET(1,i).names]};
end

for i=1:173
N_uNames(i,1)={[Full_uFRET(1,i).names]};
N_uNames(i,2)={[Full_uFRET(2,i).names]};
end

for i=1:127
       sortNames(i,:)=char(NNames(i,1))
end

for i=1:173
    NNames(i,3)={[num2str(find(strcmp(NNames(i,1),NNames(:,2))))]}
end

for
strncmp(NNames(42,1),'mh',2)
strfind(NNames,NNames(65,1))

nuFRET2()

for i=1:42
NewName=char(NNames(i,1));
NewNames(i,1)=str2num(NewName(11:14));
clear NewName
end
for i=43:169
NewName=char(NNames(i,1));
NewNames(i,1)=str2num(NewName(17:20));
clear NewName
end
for i=1:127
NewName=char(NNames(i,2));

if strcmp(NewName(1),'r')==1;
NewNames(i,2)=str2num(NewName(17:20));
    else
    NewNames(i,3)=str2num(NewName(11:14));
end
end

[SortNames,ReOrder]=sort(NewNames(:,3));
NNames(43:127,4)=NNames(r_oxy_RE(:,1),2)
oxyFRET(1:2,1:85)=nuFRET(1:2,r_oxy_RE(:,1:85));
    
    for i=1:41
    oxyFRET(1,85+i).counts=Full_uFRET(1,127+i).counts;
    oxyFRET(1,85+i).names=Full_uFRET(1,127+i).names;
    oxyFRET(2,85+i).counts=Full_uFRET(2,131+i).counts;
    oxyFRET(2,85+i).names=Full_uFRET(2,131+i).names;
    oxyFRET(1,85+i).ints10=Full_uFRET(1,127+i).ints10;
    oxyFRET(2,85+i).ints10=Full_uFRET(2,131+i).ints10;
    oxyFRET(1,85+i).ints20=Full_uFRET(1,127+i).ints20;
    oxyFRET(1,85+i).ints50=Full_uFRET(1,127+i).ints50;
    oxyFRET(1,85+i).ints100=Full_uFRET(1,127+i).ints100;
    oxyFRET(1,85+i).eff10=Full_uFRET(1,127+i).eff10;
    oxyFRET(1,85+i).eff20=Full_uFRET(1,127+i).eff20;
    oxyFRET(1,85+i).eff50=Full_uFRET(1,127+i).eff50;
    oxyFRET(1,85+i).eff100=Full_uFRET(1,127+i).eff100;
    oxyFRET(2,85+i).ints20=Full_uFRET(2,131+i).ints20;
    oxyFRET(2,85+i).ints50=Full_uFRET(2,131+i).ints50;
    oxyFRET(2,85+i).ints100=Full_uFRET(2,131+i).ints100;
    oxyFRET(2,85+i).eff10=Full_uFRET(2,131+i).eff10;
    oxyFRET(2,85+i).eff20=Full_uFRET(2,131+i).eff20;
    oxyFRET(2,85+i).eff50=Full_uFRET(2,131+i).eff50;
    oxyFRET(2,85+i).eff100=Full_uFRET(2,131+i).eff100;

    end
    

    
    
lonelyFRET(1,1:4)=Full_uFRET(2,43:46);

NameSorting.mh=mh
