-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathkitMakeInterStructure.m
47 lines (35 loc) · 1.31 KB
/
kitMakeInterStructure.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
function interStruct = kitMakeInterStructure
% KITMAKEINTERSTRUCTURE Produces an empty structure into which
% inter-kinetochore measurements are compiled using kitInterMeasurements.
%
% KITMAKEINTERSTRUCTURE() Produces a structure allowing for inter-
% kinetochore measurements to be compiled in order to draw
% population-scale analyses. No input is required.
%
%
% Copyright (c) 2018 C. A. Smith
interStruct.kitVersion = kitVersion;
interStruct.label = [];
% make substructures for all pair-derived measurements
direction = struct('P',[],'AP',[],'N',[],'S',[]);
sisSep = struct('x',[],'y',[],'z',[],...
'twoD',[],'threeD',[]);
intensity = struct('mean',[],'max',[],'bg',[]);
coords = struct('x',[],'y',[],'z',[]);
% those only appropriate for plate coordinate system
twist = struct('y',[],'z',[],'threeD',[]);
sisterCentreSpeed = [];
plateThickness = [];
% produce generic substructure for microscope coordinate system
microscope.coords = coords;
microscope.sisSep = sisSep;
% produce same again for plate coordinate system
plate = microscope;
plate.twist = twist;
plate.sisterCentreSpeed = sisterCentreSpeed;
plate.plateThickness = plateThickness;
interStruct.direction = direction;
interStruct.microscope = microscope;
interStruct.plate = plate;
interStruct.intensity = intensity;
end