forked from smshah87/3D-Barcoding-Spots-Code-GIT
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathparallelbatchanalysis.m
33 lines (19 loc) · 1.62 KB
/
parallelbatchanalysis.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
PathName = uigetdir;
listing = dir([PathName '/Pos*']);
for i = 1:length(listing)
num(i) = str2double(listing(i).name(4:end));
end
keep = num <30;
num = num(keep);
parfor i = 1:length(num)
fprintf('Analyzing Field %d\r', num(i))
hybnum = load_for_parfor(PathName, num(i));
[ foundbarcodes, points, copynumfinal, rawfound, hybnum, copynumfinalsum, totdropped ] = BarcodeNoMiji_v5( channels, hybnum, hyb, multiplier, HCRorFISH, barcodekey, PathName, num(i), 'roi', [],[],3,1,1,1, 0 ); %( channels, hybnum, hyb, multiplier, HCRorFISH, barcodekey, PathName, posnum, segmentation, mask,mask2,radius,conthresh,alloweddiff,scaledonoff, debug )
%( channels, hybnum, hyb, multiplier, HCRorFISH, barcodekey, PathName, posnum, segmentation, mask,mask2,radius,conthresh,alloweddiff,scaledonoff, debug )
fprintf('Correcting Field %d\r', num(i))
[dotlocations,copynumfinalrevised,PosList] = PointLocations(PathName,num(i),hyb, length(channels), points, foundbarcodes,barcodekey,copynumfinal,3);
% (PathName,num(i),length(channels), points, foundbarcodes,barcodekey,copynumfinal,radius)
[seeds,int, ints] = numseeds(PosList,dotlocations,hyb);
save_for_parfor(PathName,num(i),foundbarcodes,points,copynumfinal,copynumfinalsum,totdropped,rawfound,PosList,dotlocations,copynumfinalrevised,seeds,int, ints)
end
disp('Analysis Complete')