EASY passing linter checks

This commit is contained in:
2024-07-27 12:09:09 -04:00
parent d77711acb7
commit 78d5e26d71
10 changed files with 810 additions and 772 deletions

View File

@@ -2,12 +2,12 @@
% Updated 240724 Bryan C Roessler to improve file operations and portability
%
global scansDir
global easyResultsDir
global matFile
global defImParMat
global printResultsDir
global fotosResultsDir
global pointMapsFile
global pointMapsResultsDir
ln=1;
@@ -52,6 +52,7 @@ end
% localscansDir=scansDir;
% end
% TODO this seems weird
expNm=scansDir(max(strfind(scansDir,'/'))+1:end);
drivePos=min(strfind(scansDir,'/'));
drive=scansDir(1:(drivePos-1));
@@ -85,9 +86,9 @@ drgCnt=0;
medCnt=0;
try
load(fullfile(easyResultsDir,'Fotos','Nbdg')) % Convolute scan array data into plates
load(fullfile(fotosResultsDir,'Nbdg')) % Convolute scan array data into plates
catch
load(fullfile(easyResultsDir,'PTmats','Nbdg')) % Convolute scan array data into plates
load(fullfile(pointMapsResultsDir,'Nbdg')) % Convolute scan array data into plates
end
for s=1:size(scan,2)
@@ -102,14 +103,14 @@ for s=1:size(scan,2)
for p=1:size((scan(s).plate),2)
totPlCnt=totPlCnt+1;
if destPerMP>1 && rem(totPlCnt,destPerMP)==1
mpCnt=mpCnt+1
mpCnt=mpCnt+1;
end
if destPerMP==1
mpCnt=mpCnt+1
mpCnt=mpCnt+1;
end
pertCnt=rem(totPlCnt,destPerMP);
if pertCnt==0
pertCnt=destPerMP
pertCnt=destPerMP;
end
pert=strcat('Perturb_',num2str(pertCnt));
s % TODO seems wrong
@@ -365,9 +366,9 @@ if isequal(opt,'DB')||isequal(opt,'Both')
try
copyfile(DBfilename,DBupload)
catch ME
rep = getReport(ME, 'basic');
rep=getReport(ME, 'basic');
rep=strcat('Failed copyfile to ',DBupload,' -', rep);
errordlg(rep)
errordlg(rep)
end
end
@@ -424,8 +425,8 @@ try
asd=cell2mat(scan(s).plate(1).CFparameters{1,1}(1,384));
aucEndPt= strcat('AUC',num2str(asd(9)));
end
fprintf(fid, 'Num.\tDiagnostics\tDrug\tConc\tMedia\tModifier1\tConc1\tModifier2\tConc2\tORF\tGene')
fprintf(fid, '\t %s',aucEndPt)
fprintf(fid, 'Num.\tDiagnostics\tDrug\tConc\tMedia\tModifier1\tConc1\tModifier2\tConc2\tORF\tGene');
fprintf(fid, '\t %s',aucEndPt);
fprintf(fid, '\triseTm\tK\tr\tl\tR-squared\tK-lower\tK-upper\tr-lower\tr-upper\tl-lower\tl-upper\tArea\tLastInten\tSplineMaxRateTm\tLastFitTm\t1stFitTm\tMedianBase\tFitBase\tMinTm\tThreshTm\tTotFitPts\tPostThreshFitPts\t1stBackgrd\tLstBackgrd\t1stMeanTotBackgrd\tLstMeanTotBackgrd'); %17_0629 MinBaseIntens update for MedianBase label
end
clear outTseries
@@ -438,7 +439,7 @@ try
outIntens=[];
RawIntens=[];
RawIntens=scan(s).plate(p).intens;
RawIntensSize= size(RawIntens,2)
RawIntensSize=size(RawIntens,2);
clear Ag; %Ag is Growth Area
Ag=scan(s).plate(p).Ag;
AgSize= size(Ag);