EZdiagRf refactor

This commit is contained in:
2024-07-29 17:45:16 -04:00
parent 16db20d264
commit d2a5d9e69f
4 changed files with 108 additions and 160 deletions

View File

@@ -1,7 +1,6 @@
%Diagnostic sheet called by EZvInitLoad.m, EZexpSel.m ?EZinteractDev_.m?
%EZdiagRFsSheet.m
try %Try the whole routine
global Exp global Exp
try %Try the whole routine
if strcmp(Exp(expN).DexpType,'multi') ||... if strcmp(Exp(expN).DexpType,'multi') ||...
strcmp(Exp(expN).DexpType,'chrono') strcmp(Exp(expN).DexpType,'chrono')
DexpN=n; DexpN=n;
@@ -35,14 +34,12 @@ for d=1:DMnum
std1=Exp(expN).Dexp(DexpN).std1(d); std1=Exp(expN).Dexp(DexpN).std1(d);
min1=Exp(expN).Dexp(DexpN).min1(d); min1=Exp(expN).Dexp(DexpN).min1(d);
max1=Exp(expN).Dexp(DexpN).max1(d); max1=Exp(expN).Dexp(DexpN).max1(d);
fprintf(fid,'%s\t %7.2f\t %7.4f\t %7.4f\t %7.4f\t %7.4f\t\n',...
fprintf(fid,'%s\t %7.2f\t %7.4f\t %7.4f\t %7.4f\t %7.4f\t', cell2mat(RFmd1LB), mval1,mean1,std1,min1,max1) cell2mat(RFmd1LB), mval1,mean1,std1,min1,max1)
fprintf(fid,'\n')
rCnt=rCnt+1; rCnt=rCnt+1;
data(rCnt,1:5)=[mval1,mean1,std1,min1,max1]; data(rCnt,1:5)=[mval1,mean1,std1,min1,max1];
rnames(rCnt)=RFmd1LB; rnames(rCnt)=RFmd1LB;
catch mErr catch
message='No RF1 MasterPlate' message='No RF1 MasterPlate'
end end
try try
@@ -53,14 +50,11 @@ for d=1:DMnum
std2=Exp(expN).Dexp(DexpN).std2(d); std2=Exp(expN).Dexp(DexpN).std2(d);
min2=Exp(expN).Dexp(DexpN).min2(d); min2=Exp(expN).Dexp(DexpN).min2(d);
max2=Exp(expN).Dexp(DexpN).max2(d); max2=Exp(expN).Dexp(DexpN).max2(d);
fprintf(fid,'%s\t %7.2f\t %7.4f\t %7.4f\t %7.4f\t %7.4f\t\n', cell2mat(RFmd2LB),mval2,mean2,std2,min2,max2)
fprintf(fid,'%s\t %7.2f\t %7.4f\t %7.4f\t %7.4f\t %7.4f\t', cell2mat(RFmd2LB),mval2,mean2,std2,min2,max2)
fprintf(fid,'\n')
rCnt=rCnt+1; rCnt=rCnt+1;
data(rCnt,1:5)= [mval2,mean2,std2,min2,max2]; data(rCnt,1:5)= [mval2,mean2,std2,min2,max2];
rnames(rCnt)= RFmd2LB; rnames(rCnt)= RFmd2LB;
catch ME catch
message='No RF2 MasterPlate' message='No RF2 MasterPlate'
end end
% Distributed Global stats % Distributed Global stats
@@ -71,20 +65,16 @@ for d=1:DMnum
RFstdG=Exp(expN).Dexp(DexpN).RFstdG(d); RFstdG=Exp(expN).Dexp(DexpN).RFstdG(d);
maxG=Exp(expN).Dexp(DexpN).RFmaxG(d); maxG=Exp(expN).Dexp(DexpN).RFmaxG(d);
minG=Exp(expN).Dexp(DexpN).RFminG(d); minG=Exp(expN).Dexp(DexpN).RFminG(d);
fprintf(fid,'%s\t %7.2f\t %7.4f\t %7.4f\t %7.4f\t %7.4f\t\n', cell2mat(RFmdGLB),mvalsDG,RFmeanG,RFstdG,minG,maxG)
fprintf(fid,'%s\t %7.2f\t %7.4f\t %7.4f\t %7.4f\t %7.4f\t', cell2mat(RFmdGLB),mvalsDG,RFmeanG,RFstdG,minG,maxG)
fprintf(fid,'\n')
rCnt=rCnt+1; rCnt=rCnt+1;
data(rCnt,1:5)=[mvalsDG,RFmeanG,RFstdG,minG,maxG]; data(rCnt,1:5)=[mvalsDG,RFmeanG,RFstdG,minG,maxG];
rnames(rCnt)=RFmdGLB; rnames(rCnt)=RFmdGLB;
catch ME catch
message='No RF2 MasterPlate' message='No RF2 MasterPlate'
end end
end %for d=1:DMnum end
% Distributed RF1 Plates Stats Print % Distributed RF1 Plates Stats Print
%
try try
for d=1:DMnum for d=1:DMnum
for mm=1:length(dMPs) for mm=1:length(dMPs)
@@ -97,38 +87,19 @@ for d=1:DMnum
std1Disp=Exp(expN).Dexp(DexpN).stdP(d,dMPs(mm)); std1Disp=Exp(expN).Dexp(DexpN).stdP(d,dMPs(mm));
minDisp=Exp(expN).Dexp(DexpN).minP(d,dMPs(mm)); minDisp=Exp(expN).Dexp(DexpN).minP(d,dMPs(mm));
maxDisp=Exp(expN).Dexp(DexpN).maxP(d,dMPs(mm)); maxDisp=Exp(expN).Dexp(DexpN).maxP(d,dMPs(mm));
fprintf(fid,'%s\t %7.2f\t %7.4f\t %7.4f\t %7.4f\t %7.4f\t\n', cell2mat(RFmdPLB),mval1Disp,mean1Disp,std1Disp,minDisp,maxDisp);
fprintf(fid,'%s\t %7.2f\t %7.4f\t %7.4f\t %7.4f\t %7.4f\t', cell2mat(RFmdPLB),mval1Disp,mean1Disp,std1Disp,minDisp,maxDisp);
fprintf(fid,'\n');
rCnt=rCnt+1; rCnt=rCnt+1;
data(rCnt,1:5)= [mval1Disp,mean1Disp,std1Disp,minDisp,maxDisp]; data(rCnt,1:5)= [mval1Disp,mean1Disp,std1Disp,minDisp,maxDisp];
rnames(rCnt)= RFmdPLB; %cell2mat(RFmdPLB); rnames(rCnt)= RFmdPLB;
end
end %for mm=1:length(dMPs) end
end %for d=1:DMnum catch
catch ME
message='No Distributed RF1 MasterPlates' message='No Distributed RF1 MasterPlates'
end end
catch catch
Warndlg('Problem writing the RFdiagnosticSheet.txt file') Warndlg('Problem writing the RFdiagnosticSheet.txt file')
end end
fclose(fid) fclose(fid)
catch catch
msg='EZdiagRFsSheet.m failed. Check Permissions' msg='EZdiagRFsSheet.m failed. Check Permissions'
end end
%{
mErr
message= mErr.stack(end).line
error_line = mErr.stack(end).line
%}

View File

@@ -1,18 +1,3 @@
%EZexpSel.m %modified to accomodate App Designer issues 230829
%Called from EZviewGui.m or EZviewGui_export.m or migrapted EZviewGui_App.wlapp 230831
%{
>EZexpSel
>EZVimDisplay
>EZhtMap
>EZdiagRFsSheet
>EZsingleExUserRF
>EZmultigeneRFsLst
>EZdiagRFsSheet
>EZhtMap
>EZmultiDayGui
>EZmultiDay
>EZmultiExLoad
%}
global Expaa global Expaa
global Expbb global Expbb

View File

@@ -1,5 +1,4 @@
%EZvInitLoad %EZvInitLoad
clear Exp
global Exp global Exp
global Expaa global Expaa
global Expbb global Expbb
@@ -368,7 +367,6 @@ for mp=1:MPnum %length(Exp(expN).Dexp(1).MP)
end %if isempty(regexpi(char((Exp(expN).Dexp(1).MP(mp).genename{1}(ind384))),'blank'))... end %if isempty(regexpi(char((Exp(expN).Dexp(1).MP(mp).genename{1}(ind384))),'blank'))...
%********************************************************************** %**********************************************************************
catch catch
error='EZexpSel lineAfter 135 EZvInitLoad.m'
mp mp
ind384 ind384
msgBadGeneName= strcat('check genename at mp=',num2str(mp),' indx=',num2str(ind384)) msgBadGeneName= strcat('check genename at mp=',num2str(mp),' indx=',num2str(ind384))
@@ -625,7 +623,6 @@ end
catchissue='Ln408' catchissue='Ln408'
Exp(1).Dexp(1).RFmd2pltN= 1; Exp(2).Dexp(1).RFmd2pltN= 1; Exp(3).Dexp(1).RFmd2pltN= 1; Exp(1).Dexp(1).RFmd2pltN= 1; Exp(2).Dexp(1).RFmd2pltN= 1; Exp(3).Dexp(1).RFmd2pltN= 1;
end end
error='EZexpSel lineAfter 354'
end %if RF2scanN doesn't exist this addition to list will be skipped end %if RF2scanN doesn't exist this addition to list will be skipped
RFcombValList= cat(1,medValList1{d+1},medValList2{d+1}); RFcombValList= cat(1,medValList1{d+1},medValList2{d+1});
Exp(1).Dexp(1).RFmean(d+1)= mean(RFcombValList);Exp(2).Dexp(1).RFmean(d+1)= mean(RFcombValList);Exp(3).Dexp(1).RFmean(d+1)= mean(RFcombValList); Exp(1).Dexp(1).RFmean(d+1)= mean(RFcombValList);Exp(2).Dexp(1).RFmean(d+1)= mean(RFcombValList);Exp(3).Dexp(1).RFmean(d+1)= mean(RFcombValList);
@@ -754,7 +751,6 @@ catch %try ln565
catchissue='Ln' catchissue='Ln'
Exp(expN).Dexp(1).RFmdPpltN= 1; %This might keep from breaking BUT ??? Exp(expN).Dexp(1).RFmdPpltN= 1; %This might keep from breaking BUT ???
end end
error='EZexpSel lineAfter 565'
end %try ~ln565 end %try ~ln565
end %for d=0:DMnum end %for d=0:DMnum

View File

@@ -1,4 +0,0 @@
%EZviewGui.m startup
EZviewGui