Rename scansDir
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
%% CALLED BY EASYconsole.m %%
|
%% CALLED BY EASYconsole.m %%
|
||||||
% Updated 240724 Bryan C Roessler to improve file operations and portability
|
% Updated 240724 Bryan C Roessler to improve file operations and portability
|
||||||
%
|
%
|
||||||
global scansDir
|
global projectScansDir
|
||||||
global matFile
|
global matFile
|
||||||
global defImParMat
|
global defImParMat
|
||||||
global printResultsDir
|
global printResultsDir
|
||||||
@@ -46,16 +46,16 @@ for n=1:size(scan,2)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
% if length(scansDir) == max(strfind(scansDir,'\'))
|
% if length(projectScansDir) == max(strfind(projectScansDir,'\'))
|
||||||
% localscansDir=scansDir(1:end-1);
|
% localprojectScansDir=projectScansDir(1:end-1);
|
||||||
% else
|
% else
|
||||||
% localscansDir=scansDir;
|
% localprojectScansDir=projectScansDir;
|
||||||
% end
|
% end
|
||||||
|
|
||||||
% TODO this seems weird
|
% TODO this seems weird
|
||||||
expNm=scansDir(max(strfind(scansDir,'/'))+1:end);
|
expNm=projectScansDir(max(strfind(projectScansDir,'/'))+1:end);
|
||||||
drivePos=min(strfind(scansDir,'/'));
|
drivePos=min(strfind(projectScansDir,'/'));
|
||||||
drive=scansDir(1:(drivePos-1));
|
drive=projectScansDir(1:(drivePos-1));
|
||||||
DBupload=fullfile(drive,'EZdbFiles','DBupLOADfiles');
|
DBupload=fullfile(drive,'EZdbFiles','DBupLOADfiles');
|
||||||
|
|
||||||
% Added to allow backward compatability
|
% Added to allow backward compatability
|
||||||
@@ -75,7 +75,7 @@ if isequal(opt,'DB')||isequal(opt,'Both'),fid2=fopen(DBfilename,'w');end
|
|||||||
|
|
||||||
if isequal(opt,'Res')||isequal(opt,'Both')
|
if isequal(opt,'Res')||isequal(opt,'Both')
|
||||||
fprintf(fid,'%d\t',ln); % Results header
|
fprintf(fid,'%d\t',ln); % Results header
|
||||||
fprintf(fid,'%s\t\n',scansDir);
|
fprintf(fid,'%s\t\n',projectScansDir);
|
||||||
ln=ln+1;
|
ln=ln+1;
|
||||||
fprintf(fid,'%d\t',ln);
|
fprintf(fid,'%d\t',ln);
|
||||||
end
|
end
|
||||||
@@ -383,7 +383,7 @@ try
|
|||||||
if isequal(opt,'DB')||isequal(opt,'Both'),fid2=fopen(DBfilename,'w');end %121012 Combo
|
if isequal(opt,'DB')||isequal(opt,'Both'),fid2=fopen(DBfilename,'w');end %121012 Combo
|
||||||
if isequal(opt,'Res')||isequal(opt,'Both') %print Results
|
if isequal(opt,'Res')||isequal(opt,'Both') %print Results
|
||||||
fprintf(fid,'%d\t',ln); %Results header
|
fprintf(fid,'%d\t',ln); %Results header
|
||||||
fprintf(fid,'%s\t\n',scansDir);
|
fprintf(fid,'%s\t\n',projectScansDir);
|
||||||
ln=ln+1;
|
ln=ln+1;
|
||||||
fprintf(fid,'%d\t',ln);
|
fprintf(fid,'%d\t',ln);
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
|
|
||||||
function varargout = EASYconsole(varargin)
|
function varargout = EASYconsole(varargin)
|
||||||
global easyDir
|
global easyDir
|
||||||
global scansDir
|
global projectScansDir
|
||||||
global easyResultsDir
|
global easyResultsDir
|
||||||
global easyProject
|
global easyProjectName
|
||||||
global fotosResultsDir
|
global fotosResultsDir
|
||||||
global figsResultsDir
|
global figsResultsDir
|
||||||
global pointMapsResultsDir
|
global pointMapsResultsDir
|
||||||
@@ -28,7 +28,8 @@ function varargout = EASYconsole(varargin)
|
|||||||
parentDir=fullfile(parentDir); % ../easy/apps
|
parentDir=fullfile(parentDir); % ../easy/apps
|
||||||
userName=getenv('USER');
|
userName=getenv('USER');
|
||||||
dt=datetime;
|
dt=datetime;
|
||||||
todayStr=char(dt, 'yyyyMMdd'); % This should match the parent workflow script
|
todayStr=char(dt, 'yyyyMMdd'); % This should match the parent workflow script 'hardcode'
|
||||||
|
outDir=fullfile(parentDir, '..','..', 'out'); % This should match the parent workflow script 'hardcode'
|
||||||
|
|
||||||
debug=1;
|
debug=1;
|
||||||
if debug
|
if debug
|
||||||
@@ -39,27 +40,27 @@ function varargout = EASYconsole(varargin)
|
|||||||
|
|
||||||
fprintf('This script name: %s\n', easyFileName);
|
fprintf('This script name: %s\n', easyFileName);
|
||||||
|
|
||||||
% Set scansDir (project scans directory) intelligently
|
% Set projectScansDir (project scans directory) intelligently
|
||||||
if ~isempty(getenv('PROJECT_SCANS_DIR'))
|
if ~isempty(getenv('PROJECT_SCANS_DIR'))
|
||||||
scansDir=fullfile(getenv('PROJECT_SCANS_DIR'));
|
projectScansDir=fullfile(getenv('PROJECT_SCANS_DIR'));
|
||||||
if exist(scansDir, 'dir')
|
if exist(projectScansDir, 'dir')
|
||||||
fprintf('Using scans directory: %s from environment variable PROJECT_SCANS_DIR\n', scansDir);
|
fprintf('Using scans directory: %s from environment variable PROJECT_SCANS_DIR\n', projectScansDir);
|
||||||
disp('This usually indicates that we are in module mode');
|
disp('This usually indicates that we are in module mode');
|
||||||
if isempty(getenv('PROJECT'))
|
if isempty(getenv('PROJECT'))
|
||||||
dirInfo=fileparts(scansDir);
|
dirInfo=fileparts(projectScansDir);
|
||||||
project=dirInfo.name;
|
project=dirInfo.name;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
disp('WARNING: PROJECT_SCANS_DIR does not exist');
|
disp('WARNING: PROJECT_SCANS_DIR does not exist');
|
||||||
end
|
end
|
||||||
elseif ~isempty(getenv('PROJECT')) % for standalone mode
|
elseif ~isempty(getenv('PROJECT')) % for standalone mode
|
||||||
% scansDir=fullfile(parentDir, '..', '..', 'scans', getenv('PROJECT') 'out', 'easy', getenv('PROJECT'));
|
% projectScansDir=fullfile(parentDir, '..', '..', 'scans', getenv('PROJECT') 'out', 'easy', getenv('PROJECT'));
|
||||||
scansDir=fullfile(parentDir, '..', '..', 'scans', getenv('PROJECT'));
|
|
||||||
project=getenv('PROJECT');
|
project=getenv('PROJECT');
|
||||||
fprintf('Using project path: %s from environment variable PROJECT\n', scansDir);
|
projectScansDir=fullfile(parentDir, '..', '..', 'scans', project);
|
||||||
|
fprintf('Using project path: %s from environment variable PROJECT\n', projectScansDir);
|
||||||
disp('This usually indicates that we are in standalone mode');
|
disp('This usually indicates that we are in standalone mode');
|
||||||
else
|
else
|
||||||
% TODO Lots of this is hardcoded logic, this TODO is just a reminder to change this block
|
% TODO Lots of hardcoded logic, this TODO is just a reminder to change this block
|
||||||
% when changing EASY and other variables in the parent script
|
% when changing EASY and other variables in the parent script
|
||||||
fprintf('WARNING: Running in standalone mode without PROJECT or PROJECT_SCANS_DIR environment variables (not recommended)\n');
|
fprintf('WARNING: Running in standalone mode without PROJECT or PROJECT_SCANS_DIR environment variables (not recommended)\n');
|
||||||
fprintf('Beginning parent scans directory search\n');
|
fprintf('Beginning parent scans directory search\n');
|
||||||
@@ -85,8 +86,8 @@ function varargout = EASYconsole(varargin)
|
|||||||
whos
|
whos
|
||||||
if ~isempty(matchedDirs)
|
if ~isempty(matchedDirs)
|
||||||
fprintf('Found a non-empty scans directory in our list: %s\n', d);
|
fprintf('Found a non-empty scans directory in our list: %s\n', d);
|
||||||
fprintf('Setting scansDir to %s\n', char(d));
|
fprintf('Setting projectScansDir to %s\n', char(d));
|
||||||
scansDir=fullfile(d);
|
projectScansDir=fullfile(d);
|
||||||
end
|
end
|
||||||
fprintf('Scanning inside %s for a project directory\n', d);
|
fprintf('Scanning inside %s for a project directory\n', d);
|
||||||
sortedMatchedDirs=sortrows(matchedDirs);
|
sortedMatchedDirs=sortrows(matchedDirs);
|
||||||
@@ -120,26 +121,27 @@ function varargout = EASYconsole(varargin)
|
|||||||
easyResultsDir=fullfile(getenv('EASY_RESULTS_DIR'));
|
easyResultsDir=fullfile(getenv('EASY_RESULTS_DIR'));
|
||||||
fprintf('Using output directory: %s from environment variable EASY_RESULTS_DIR\n', easyResultsDir);
|
fprintf('Using output directory: %s from environment variable EASY_RESULTS_DIR\n', easyResultsDir);
|
||||||
else
|
else
|
||||||
easyProject=strcat(todayStr,'_',userName,'_', project);
|
easyProjectName=strcat(todayStr,'_',userName,'_', project);
|
||||||
easyResultsDir=fullfile(parentDir, '..', '..', 'out', project, 'easy', easyProject);
|
easyResultsDir=fullfile(parentDir, '..', '..', 'out', project, 'easy', easyProjectName);
|
||||||
if exist(easyResultsDir, 'dir')
|
if exist(easyResultsDir, 'dir')
|
||||||
fprintf('WARNING: EASY results dir %s already exists\n', easyResultsDir);
|
fprintf('WARNING: EASY results dir %s already exists\n', easyResultsDir);
|
||||||
disp('Files in this directory may be overwritten')
|
disp('Files in this directory may be overwritten')
|
||||||
fprintf('Using output directory: %s\n', easyResultsDir);
|
fprintf('Using output directory: %s\n', easyResultsDir);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
if ~isempty(getenv('MASTER_PLATE_FILE'))
|
if ~isempty(getenv('MASTER_PLATE_FILE'))
|
||||||
masterPlateFile=fullfile(getenv('MASTER_PLATE_FILE'));
|
masterPlateFile=fullfile(getenv('MASTER_PLATE_FILE'));
|
||||||
fprintf('Using drug media file: %s from environment variable MASTER_PLATE_FILE\n', masterPlateFile);
|
fprintf('Using drug media file: %s from environment variable MASTER_PLATE_FILE\n', masterPlateFile);
|
||||||
else
|
else
|
||||||
% Try to find MasterPlate_ file on our own
|
% Try to find MasterPlate_ file on our own
|
||||||
mp=fullfile(scansDir, strcat('MasterPlate_', project,'.xlsx'));
|
mp=fullfile(projectScansDir, strcat('MasterPlate_', project,'.xlsx'));
|
||||||
if exist(mp, 'file')
|
if exist(mp, 'file')
|
||||||
masterPlateFile=mp;
|
masterPlateFile=mp;
|
||||||
fprintf('Using drug media file: %s from internal logic\n', masterPlateFile);
|
fprintf('Using drug media file: %s from internal logic\n', masterPlateFile);
|
||||||
else
|
else
|
||||||
fprintf('WARNING: Have you created a MasterPlate_ file in %s/easy_in/?\n', scansDir);
|
fprintf('WARNING: Have you created a MasterPlate_ file in %s/easy_in/?\n', projectScansDir);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -147,12 +149,12 @@ function varargout = EASYconsole(varargin)
|
|||||||
drugMediaFile=fullfile(getenv('DRUG_MEDIA_FILE'));
|
drugMediaFile=fullfile(getenv('DRUG_MEDIA_FILE'));
|
||||||
fprintf('Using drug media file: %s from environment variable DRUG_MEDIA_FILE\n', drugMediaFile);
|
fprintf('Using drug media file: %s from environment variable DRUG_MEDIA_FILE\n', drugMediaFile);
|
||||||
else
|
else
|
||||||
dm=fullfile(scansDir,'easy_in',strcat('DrugMedia_', project,'.xlsx'));
|
dm=fullfile(projectScansDir,'easy_in',strcat('DrugMedia_', project,'.xlsx'));
|
||||||
if exist(mp, 'file')
|
if exist(mp, 'file')
|
||||||
drugMediaFile=dm;
|
drugMediaFile=dm;
|
||||||
fprintf('Using drug media file: %s from internal logic\n', drugMediaFile);
|
fprintf('Using drug media file: %s from internal logic\n', drugMediaFile);
|
||||||
else
|
else
|
||||||
fprintf('WARNING: Have you created a DrugMedia_ file in %s/MasterPlateFiles/?\n', scansDir);
|
fprintf('WARNING: Have you created a DrugMedia_ file in %s/MasterPlateFiles/?\n', projectScansDir);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -214,7 +216,7 @@ end
|
|||||||
% varargin--input arguments to EASYconsole (see VARARGIN)
|
% varargin--input arguments to EASYconsole (see VARARGIN)
|
||||||
function EASYconsole_OpeningFcn(hObject, ~, handles, varargin)
|
function EASYconsole_OpeningFcn(hObject, ~, handles, varargin)
|
||||||
global fhconsole
|
global fhconsole
|
||||||
global scansDir
|
global projectScansDir
|
||||||
|
|
||||||
% Choose default command line output for EASYconsole
|
% Choose default command line output for EASYconsole
|
||||||
handles.output=hObject;
|
handles.output=hObject;
|
||||||
@@ -229,8 +231,8 @@ function EASYconsole_OpeningFcn(hObject, ~, handles, varargin)
|
|||||||
|
|
||||||
% Pulled this out of the opening function
|
% Pulled this out of the opening function
|
||||||
% Seems better to wait until we have our vars set though?
|
% Seems better to wait until we have our vars set though?
|
||||||
if exist('scansDir','var') && ~isempty(scansDir)
|
if exist('projectScansDir','var') && ~isempty(projectScansDir)
|
||||||
set(fhconsole,'Name', sprintf('EASYconsole - %s', scansDir));
|
set(fhconsole,'Name', sprintf('EASYconsole - %s', projectScansDir));
|
||||||
else
|
else
|
||||||
set(fhconsole,'Name','EASYconsole - No Active Experiment.')
|
set(fhconsole,'Name','EASYconsole - No Active Experiment.')
|
||||||
end
|
end
|
||||||
@@ -267,22 +269,22 @@ function NewExpDat_Callback(~, ~, ~)
|
|||||||
global fhconsole
|
global fhconsole
|
||||||
global scan
|
global scan
|
||||||
global userName
|
global userName
|
||||||
|
global todayStr
|
||||||
|
|
||||||
% Create a new experiment
|
% Create a new experiment
|
||||||
try
|
try
|
||||||
questdlg('\fontsize{20} NAME the file and NAVIGATE to the directory with the image folders.','File Creation','OK', struct('Default','OK','Interpreter','tex'));
|
questdlg('\fontsize{20} NAME the file and NAVIGATE to the directory with the image folders.','File Creation','OK', struct('Default','OK','Interpreter','tex'));
|
||||||
[inputFile,inputPath]=uiputfile('.mat');
|
[matfile,easyResultsDir]=uiputfile('.mat');
|
||||||
inputFileName=strrep(inputFile,'.mat','');
|
inputFileName=strrep(inputFile,'.mat','');
|
||||||
% easyResultsDirName=strcat('Results_',todayStr,'_',userName,'_',inputFileName);
|
% easyResultsDirName=strcat('Results_',todayStr,'_',userName,'_',inputFileName);
|
||||||
|
project=basename(easyResultsDir);
|
||||||
% Set paths
|
% Set paths
|
||||||
scansDir=fullfile(inputPath);
|
|
||||||
easyResultsDir=fullfile(scansDir,easyResultsDirName);
|
|
||||||
matDir=fullfile(easyResultsDir,'matResults');
|
matDir=fullfile(easyResultsDir,'matResults');
|
||||||
|
easyProjectName=strcat(todayStr,'_',userName,'_', project);
|
||||||
matFile=fullfile(matDir,strcat(todayStr,'_',userName,'_',inputFile));
|
matFile=fullfile(matDir,strcat(todayStr,'_',userName,'_',inputFile));
|
||||||
|
|
||||||
%***Added for 'parfor global' to preallocate 'scan' structure 20-0123*****
|
% Added for 'parfor global' to preallocate 'scan' structure
|
||||||
nlist=dir(fullfile(scansDir,'*'));
|
nlist=dir(fullfile(projectScansDir,'*'));
|
||||||
nnn=0;
|
nnn=0;
|
||||||
for n=1:size(nlist,1)
|
for n=1:size(nlist,1)
|
||||||
if (~isempty(str2num(nlist(n).name)))
|
if (~isempty(str2num(nlist(n).name)))
|
||||||
@@ -347,8 +349,8 @@ function LoadDatFile_Callback(~, ~, ~)
|
|||||||
matFile=fullfile(inputPath,inputFile);
|
matFile=fullfile(inputPath,inputFile);
|
||||||
load(matFile);
|
load(matFile);
|
||||||
easyResultsDir=fullfile(matDir,'..');
|
easyResultsDir=fullfile(matDir,'..');
|
||||||
scansDir=fullfile(matDir,'..', '..');
|
project=basename(easyResultsDir);
|
||||||
point
|
projectScansDir=fullfile(easyResultsDir, '..', '..', 'scans', project);
|
||||||
|
|
||||||
% TODO this is pretty hacky and needs something more explicit
|
% TODO this is pretty hacky and needs something more explicit
|
||||||
if isfolder(fullfile(matDir, '..','..','1')) % If Inovation Vrobot Then
|
if isfolder(fullfile(matDir, '..','..','1')) % If Inovation Vrobot Then
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
%% CALLED WHEN ACCESSING 'CurveFit Display' %%
|
%% CALLED WHEN ACCESSING 'CurveFit Display' %%
|
||||||
function [scLst, row, col] = NCdisplayGui(scansDir)
|
function [scLst, row, col] = NCdisplayGui(projectScansDir)
|
||||||
xPos=0.05;
|
xPos=0.05;
|
||||||
btnWid=0.10;
|
btnWid=0.10;
|
||||||
btnHt=0.05;
|
btnHt=0.05;
|
||||||
@@ -49,7 +49,7 @@ function [scLst, row, col] = NCdisplayGui(scansDir)
|
|||||||
end
|
end
|
||||||
|
|
||||||
% Read in numeric folder names
|
% Read in numeric folder names
|
||||||
nlist=dir(fullfile(scansDir,'*'));
|
nlist=dir(fullfile(projectScansDir,'*'));
|
||||||
nnn=0;
|
nnn=0;
|
||||||
for n=1:size(nlist,1)
|
for n=1:size(nlist,1)
|
||||||
if (~isempty(str2num(nlist(n).name)))
|
if (~isempty(str2num(nlist(n).name)))
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ global scan
|
|||||||
|
|
||||||
hf=figure;
|
hf=figure;
|
||||||
% Parameter Entry
|
% Parameter Entry
|
||||||
[scLst, row, col]=NCdisplayGui(scansDir);
|
[scLst, row, col]=NCdisplayGui(projectScansDir);
|
||||||
close(hf)
|
close(hf)
|
||||||
selSpot=(row-1)*24 + col;
|
selSpot=(row-1)*24 + col;
|
||||||
for iPlate=1:length(scLst)
|
for iPlate=1:length(scLst)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
%% CALLED BY par4Gbl_Main8c.m %%
|
%% CALLED BY par4Gbl_Main8c.m %%
|
||||||
% TODO Should some of these vars be pulled out higher so they are easier to change?
|
% TODO Should some of these vars be pulled out higher so they are easier to change?
|
||||||
%
|
%
|
||||||
function NImParamRadiusGui(scansDir)
|
function NImParamRadiusGui(projectScansDir)
|
||||||
global SWsingleSc
|
global SWsingleSc
|
||||||
global SWgrowthArea
|
global SWgrowthArea
|
||||||
global scan
|
global scan
|
||||||
@@ -143,7 +143,7 @@ function NImParamRadiusGui(scansDir)
|
|||||||
end
|
end
|
||||||
|
|
||||||
% Ncode 12_0120 for reading in numeric folder names
|
% Ncode 12_0120 for reading in numeric folder names
|
||||||
nlist=dir(fullfile(scansDir,'*'));
|
nlist=dir(fullfile(projectScansDir,'*'));
|
||||||
nnn=0;
|
nnn=0;
|
||||||
for n=1:size(nlist,1)
|
for n=1:size(nlist,1)
|
||||||
if (~isempty(str2num(nlist(n).name)))
|
if (~isempty(str2num(nlist(n).name)))
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ function[p4L4,...
|
|||||||
TmpexpScanIntens4,TmpFexpScanSpots4,TmpFexpScanBMtp4,TmpanlZoneRefs4,Tmpsbdg4]= ...
|
TmpexpScanIntens4,TmpFexpScanSpots4,TmpFexpScanBMtp4,TmpanlZoneRefs4,Tmpsbdg4]= ...
|
||||||
p4loop8c(parMat,tptLength,numScans,selScanNumLst,SWsingleSc,Fflg,PTmapPos,optCirMask,diaExt,doCircle,cirPixA,cirMask,width, ...
|
p4loop8c(parMat,tptLength,numScans,selScanNumLst,SWsingleSc,Fflg,PTmapPos,optCirMask,diaExt,doCircle,cirPixA,cirMask,width, ...
|
||||||
TmpexpScanIntens00,TmpFexpScanSpots00,TmpFexpScanBMtp00,TmpanlZoneRefs00,~,tifFileLstP4,pathname,ImParMat, ...
|
TmpexpScanIntens00,TmpFexpScanSpots00,TmpFexpScanBMtp00,TmpanlZoneRefs00,~,tifFileLstP4,pathname,ImParMat, ...
|
||||||
numRows,numCols,scLst,easyResultsDir,scansDir, p4L00,TmpexpScanIntens4,TmpFexpScanSpots4,TmpFexpScanBMtp4,TmpanlZoneRefs4, Tmpsbdg00, Tmpsbdg4)
|
numRows,numCols,scLst,easyResultsDir,projectScansDir, p4L00,TmpexpScanIntens4,TmpFexpScanSpots4,TmpFexpScanBMtp4,TmpanlZoneRefs4, Tmpsbdg00, Tmpsbdg4)
|
||||||
p4L0=p4L00;
|
p4L0=p4L00;
|
||||||
TmpexpScanIntens0=TmpexpScanIntens00;
|
TmpexpScanIntens0=TmpexpScanIntens00;
|
||||||
TmpFexpScanSpots0=TmpFexpScanSpots00;
|
TmpFexpScanSpots0=TmpFexpScanSpots00;
|
||||||
@@ -25,7 +25,7 @@ parfor (scCount=1:numScans,parforArg)
|
|||||||
[p4L3,TmpexpScanIntens3,TmpFexpScanSpots3,TmpFexpScanBMtp3,TmpanlZoneRefs3,Tmpsbdg3]= ...
|
[p4L3,TmpexpScanIntens3,TmpFexpScanSpots3,TmpFexpScanBMtp3,TmpanlZoneRefs3,Tmpsbdg3]= ...
|
||||||
par4GblFnc8c(parMat,tptLength,numScans,selScanNumLst,SWsingleSc,Fflg,PTmapPos,optCirMask,diaExt,doCircle,cirPixA,cirMask,width, ...
|
par4GblFnc8c(parMat,tptLength,numScans,selScanNumLst,SWsingleSc,Fflg,PTmapPos,optCirMask,diaExt,doCircle,cirPixA,cirMask,width, ...
|
||||||
TmpexpScanIntens0,TmpFexpScanSpots0,TmpFexpScanBMtp0,TmpanlZoneRefs0,scCount,tifFileLstP4,pathname,ImParMat, ...
|
TmpexpScanIntens0,TmpFexpScanSpots0,TmpFexpScanBMtp0,TmpanlZoneRefs0,scCount,tifFileLstP4,pathname,ImParMat, ...
|
||||||
numRows,numCols, scLst,easyResultsDir,scansDir, p4L0,Tmpsbdg0);
|
numRows,numCols, scLst,easyResultsDir,projectScansDir, p4L0,Tmpsbdg0);
|
||||||
|
|
||||||
p4L4(:,scCount)=p4L3; % (:,scCount);
|
p4L4(:,scCount)=p4L3; % (:,scCount);
|
||||||
TmpexpScanIntens4(scCount)=TmpexpScanIntens3;
|
TmpexpScanIntens4(scCount)=TmpexpScanIntens3;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
function [p4L2, TmpexpScanIntens3,TmpFexpScanSpots3,TmpFexpScanBMtp3,TmpanlZoneRefs3,Tmpsbdg3]= ...
|
function [p4L2, TmpexpScanIntens3,TmpFexpScanSpots3,TmpFexpScanBMtp3,TmpanlZoneRefs3,Tmpsbdg3]= ...
|
||||||
par4GblFnc8c(parMat,tptLength,~,selScanNumLst,~,Fflg,PTmapPos,optCirMask,diaExt,doCircle,cirPixA,cirMask,~,...
|
par4GblFnc8c(parMat,tptLength,~,selScanNumLst,~,Fflg,PTmapPos,optCirMask,diaExt,doCircle,cirPixA,cirMask,~,...
|
||||||
TmpexpScanIntens,TmpFexpScanSpots,TmpFexpScanBMtp,TmpanlZoneRefs,scCount,tifFileLstP4,~,ImParMat, ...
|
TmpexpScanIntens,TmpFexpScanSpots,TmpFexpScanBMtp,TmpanlZoneRefs,scCount,tifFileLstP4,~,ImParMat, ...
|
||||||
numRows,numCols,scLst,easyResultsDir,scansDir,~, Tmpsbdg)
|
numRows,numCols,scLst,easyResultsDir,projectScansDir,~, Tmpsbdg)
|
||||||
|
|
||||||
global printResultsDir
|
global printResultsDir
|
||||||
|
|
||||||
@@ -23,11 +23,11 @@ function [p4L2, TmpexpScanIntens3,TmpFexpScanSpots3,TmpFexpScanBMtp3,TmpanlZoneR
|
|||||||
scLst;
|
scLst;
|
||||||
scLst(scCount)
|
scLst(scCount)
|
||||||
char(scLst(scCount))
|
char(scLst(scCount))
|
||||||
char(fullfile(scansDir,char(scLst(scCount))))
|
char(fullfile(projectScansDir,char(scLst(scCount))))
|
||||||
scansDir;
|
projectScansDir;
|
||||||
swCatch=0;
|
swCatch=0;
|
||||||
nndx=nndx+1;
|
nndx=nndx+1;
|
||||||
tifFile=char(fullfile(scansDir,char(scLst(scCount)), tifFileLstP4{scCount}(tPt)));
|
tifFile=char(fullfile(projectScansDir,char(scLst(scCount)), tifFileLstP4{scCount}(tPt)));
|
||||||
try
|
try
|
||||||
info=imfinfo(tifFile); % D:\jwrDevel\DevelCurveFittingJWR\ImageScans\Scan2\020hr002.tif
|
info=imfinfo(tifFile); % D:\jwrDevel\DevelCurveFittingJWR\ImageScans\Scan2\020hr002.tif
|
||||||
catch ME
|
catch ME
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
global SWgrowthArea
|
global SWgrowthArea
|
||||||
global scLst
|
global scLst
|
||||||
global ImParMat
|
global ImParMat
|
||||||
global scansDir
|
global projectScansDir
|
||||||
global matFile
|
global matFile
|
||||||
global fhconsole
|
global fhconsole
|
||||||
global easyResultsDir
|
global easyResultsDir
|
||||||
@@ -81,7 +81,7 @@ PrintTimes=[];
|
|||||||
scLst={};
|
scLst={};
|
||||||
|
|
||||||
% Parameter Entry
|
% Parameter Entry
|
||||||
NImParamRadiusGui(scansDir); % Ncode 122111replaced removed ,numOfPrtTimes)
|
NImParamRadiusGui(projectScansDir); % Ncode 122111replaced removed ,numOfPrtTimes)
|
||||||
width=24;
|
width=24;
|
||||||
widthEx=width-1; % width extention from reference point
|
widthEx=width-1; % width extention from reference point
|
||||||
dither=ImParMat(6);
|
dither=ImParMat(6);
|
||||||
@@ -135,7 +135,7 @@ for ii=1:length(scLst)
|
|||||||
numFiles=size(Scanfiles,2);
|
numFiles=size(Scanfiles,2);
|
||||||
|
|
||||||
% Initialize tifFilesLst for parfor loop
|
% Initialize tifFilesLst for parfor loop
|
||||||
dir(fullfile(scansDir, char(scLst(ii)), '*.bmp'));
|
dir(fullfile(projectScansDir, char(scLst(ii)), '*.bmp'));
|
||||||
numFiles=length(tifFileLst4MultiT);
|
numFiles=length(tifFileLst4MultiT);
|
||||||
tptLength=numFiles;
|
tptLength=numFiles;
|
||||||
tifFileLstP4{ii}={tifFileLst4MultiT.name};
|
tifFileLstP4{ii}={tifFileLst4MultiT.name};
|
||||||
@@ -174,7 +174,7 @@ CFscanIntens=zeros(16,24);
|
|||||||
[p4L4,TmpexpScanIntens5,TmpFexpScanSpots5,TmpFexpScanBMtp5,TmpanlZoneRefs5,Tmpsbdg5]= ...
|
[p4L4,TmpexpScanIntens5,TmpFexpScanSpots5,TmpFexpScanBMtp5,TmpanlZoneRefs5,Tmpsbdg5]= ...
|
||||||
p4loop8c(parMat,tptLength,numScans,selScanNumLst,SWsingleSc,Fflg,PTmapPos,optCirMask,diaExt,doCircle,cirPixA,cirMask,width, ...
|
p4loop8c(parMat,tptLength,numScans,selScanNumLst,SWsingleSc,Fflg,PTmapPos,optCirMask,diaExt,doCircle,cirPixA,cirMask,width, ...
|
||||||
TmpexpScanIntens00,TmpFexpScanSpots00,TmpFexpScanBMtp00,TmpanlZoneRefs00,scCount,tifFileLstP4,pathname,ImParMat, ...
|
TmpexpScanIntens00,TmpFexpScanSpots00,TmpFexpScanBMtp00,TmpanlZoneRefs00,scCount,tifFileLstP4,pathname,ImParMat, ...
|
||||||
numRows,numCols,scLst,easyResultsDir,scansDir, p4L00,TmpexpScanIntens4,TmpFexpScanSpots4,TmpFexpScanBMtp4,TmpanlZoneRefs4, ...
|
numRows,numCols,scLst,easyResultsDir,projectScansDir, p4L00,TmpexpScanIntens4,TmpFexpScanSpots4,TmpFexpScanBMtp4,TmpanlZoneRefs4, ...
|
||||||
Tmpsbdg00,Tmpsbdg4);
|
Tmpsbdg00,Tmpsbdg4);
|
||||||
|
|
||||||
for scanCnt=1:numScans
|
for scanCnt=1:numScans
|
||||||
|
|||||||
@@ -593,7 +593,7 @@ easy() {
|
|||||||
|
|
||||||
# Prompt user for suffix
|
# Prompt user for suffix
|
||||||
echo "Default EASY results directory: $EASY_RESULTS_DIR"
|
echo "Default EASY results directory: $EASY_RESULTS_DIR"
|
||||||
read -r -p "Enter a custom suffix and/or hit enter to use the default (no suffix): " EASY_SUFFIX
|
((YES)) || read -r -p "Enter a custom suffix and/or hit enter to use the default (no suffix): " EASY_SUFFIX
|
||||||
[[ -n $EASY_SUFFIX ]] && EASY_RESULTS_DIR+="_$EASY_SUFFIX"
|
[[ -n $EASY_SUFFIX ]] && EASY_RESULTS_DIR+="_$EASY_SUFFIX"
|
||||||
|
|
||||||
# Backup and create EASY results dirs
|
# Backup and create EASY results dirs
|
||||||
|
|||||||
Reference in New Issue
Block a user