Pause EZview work for now

This commit is contained in:
2024-07-31 14:23:14 -04:00
parent 019fb07f79
commit d69ac75fa0
7 changed files with 232 additions and 27 deletions

View File

@@ -2,7 +2,7 @@
global Expaa
global Expbb
global expType
global usrExpJobsDir
global scansDir
global zonePB
w=pwd;
@@ -90,7 +90,7 @@ if expType==1
% Return without execution if user cancels or doesn't select a .mat file
try
if openExpfile==0 || scansDir==0
if matFile==0 || scansDir==0
return
end
catch
@@ -100,14 +100,11 @@ if expType==1
orfLstSel=get(handles.GeneOrfTog,'value')
end
Exp(expN).Dexp(1).srtGnLst={('CheckMP/MPDMfile')};
Exp(expN).Dexp(1).srtOrfLst={('CheckMP/MPDMfile')};
set(handles.listboxGnOrf,'value',1) %Fix accomodation for bug in App Designer .. .wlapp converter 230906
set(handles.listboxGnOrf,'string',cellstr([{'Failed To Load'}; {' '}]));
ExpOutmat=fullfile(scansDir,openExpfile);
load(ExpOutmat);
load(matFile);
cd(scansDir)
cd ..;
resDir=pwd;
@@ -137,7 +134,6 @@ if expType==1
load(fullfile(resDir,'Fotos','BGatTpts'))
load(fullfile(resDir,'PTmats','NImParameters'))
%Backup for cond. sothat failure to load is recovered back prev. ExpJob data
%test in temp
Exp(expN).Dexp(1).temp.DM=DM;
Exp(expN).Dexp(1).temp.MP=MP;

View File

@@ -1,12 +1,13 @@
%single gene L based interaction shift display
function EZinterAgingDev0
global Exp
global matFile
[openExpfile,scansDir]=uigetfile('.mat','Open Experiment folder and data storage .mat file name','MultiSelect','on');
[matFile,scansDir]=uigetfile('.mat','Open Experiment folder and data storage .mat file name','MultiSelect','on');
AgMPDM=load(fullfile(scansDir,'MasterPlateFiles','MPDMmat.mat'));
for i=1:size(openExpfile,2)
ExpOutmat{i}=fullfile(scansDir,openExpfile{i});
for i=1:size(matFile,2)
ExpOutmat{i}=fullfile(scansDir,matFile{i});
EScan{i}=load(ExpOutmat{1});
end

View File

@@ -5,7 +5,7 @@ function EZmultiDayGui
global exDlst
global exFolder
global expType
global usrExpJobsDir
global scansDir
xPos=0.05;
btnWid=0.10;

View File

@@ -28,7 +28,7 @@ for n=1:Exp(expN).DexpLength % size(matFile,2)
set(handles.listboxGnOrf,'value',1) %Fix accomodation for bug in App Designer .. .wlapp converter 230918
set(handles.listboxGnOrf,'string',cellstr([{'Failed To Load'}; {' '}]));
% try
ExpOutmat=matFile(n) %fullfile(scansDir,openExpfile);
ExpOutmat=matFile(n)
load(char(ExpOutmat));
%cd(scansDir)
%cd ..;

View File

@@ -1,9 +1,10 @@
%EZvInitLoad
% EZvInitLoad
global Exp
global Expaa
global Expbb
global userPars
global usrExpJobsDir
global scansDir
global matFile
global zonePB
global mpdmFile
global ghandles
@@ -147,7 +148,7 @@ try
% directory in the uigetfile to load the experiment .mat file.
try
[openExpfile,scansDir]=uigetfile('.mat','Open Experiment folder and data storage .mat file name','MultiSelect','off')
[matFile,scansDir]=uigetfile('.mat','Open Experiment folder and data storage .mat file name','MultiSelect','off')
load (fullfile(Exp(1).Dexp(1).ExpFoldr,'MasterPlateFiles','MPDMmat.mat'))
for i=1:numExps
Exp(i).Dexp(1).DM=DM;
@@ -804,13 +805,9 @@ catch ME %Outer loop try around entire code subroutine
Exp(1).Dexp(1).srtOrfLst=cellstr([{'Failed To Load'}; {' '}]);
Exp(2).Dexp(1).srtOrfLst=cellstr([{'Failed To Load'}; {' '}]);
Exp(3).Dexp(1).srtOrfLst=cellstr([{'Failed To Load'}; {' '}]);
%[openExpfile,scansDir]
if ~contains(openExpfile,'.mat')
cd(scansDir)
cd '..'
ExpPath=pwd;
cd(w)
ExpOutImFile=fullfile(scansDir,openExpfile);
if ~contains(matFile,'.mat')
ExpOutImFile=fullfile(matFile);
EZvImagesOnly
end
end

View File

@@ -1892,14 +1892,13 @@ function HMapRange_Callback(hObject, eventdata, handles)
% flip=upper(answer(2));
end
function SetExpJobsFolder_Callback(hObject, eventdata, handles)
function setScansDir_Callback(hObject, eventdata, handles)
% hObject handle to SetExpJobsFolder (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA
if ~exist('usrExpJobsDir','var')
selpath=uigetdir('default','Set /ExpJobs Folder')
usrExpJobsDir=selpath;
end
% if ~exist('scansDir','var')
scansDir=uigetdir('default','Set Project Scans Folder')
% end
end
% Executes on button press in zonePB1.