-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtopScript.m
27 lines (22 loc) · 961 Bytes
/
topScript.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
framerate = 1;
pixel = 0.21164;
maxpunctaperfilo = 1; %%1 for one filo per one puncta, keep it simple
shaftmax = 3/pixel; %max shaft lenght in um
path = '';
maxNumOfCells = 4;
%function below separates csv file of puncta from ilastik based on cells
%maxNumOfCells is maximum number of cells per given movie.
%this function separates trajectory data from xy data of the cell body. it
%gives a list of names of the cell with number of slices, so you can
%feed it into next functions
slices = ijm2space7(path)
for i = 1:numel(slices.name)
angular(path, slices.name{i} , framerate, pixel, 1, slices.num{i}, maxpunctaperfilo, shaftmax)
plotRose({path}, slices.name{i}, pixel)
end
anglesTotal = [];
for i = 1:numel(slices.name)
angles = angular(path, slices.name{i} , framerate, pixel, 1, slices.num{i}, maxpunctaperfilo, shaftmax);
plotRose({path}, slices.name{i}, pixel)
anglesTotal = [anglesTotal; angles];
end