markDivisionEvent
PURPOSE 
markDivisionEvent : marks a division event from regR to sister 1 and 2.
SYNOPSIS 
function [data_c, data_r, cell_count] = markDivisionEvent(data_c, sister1, data_r, regR, time, errorStat, sister2, cell_count)
DESCRIPTION 
CROSS-REFERENCE INFORMATION 
This function calls:
This function is called by:
- errorRez errorRez : links cells from the frame before to the current and attempts to
- errorRezNew errorRezNew : links cells from the frame before to the current and attempts to
SOURCE CODE 
0001 function [data_c, data_r, cell_count] = markDivisionEvent( ...
0002 data_c, sister1, data_r, regR, time, errorStat, sister2, cell_count)
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040 if ~data_c.regs.ID(sister1)
0041 cell_count = cell_count+1;
0042
0043
0044 data_c.regs.death(sister1) = time;
0045 data_c.regs.deathF(sister1) = 1;
0046 data_c.regs.birth(sister1) = time;
0047 data_c.regs.birthF(sister1) = 1;
0048 data_c.regs.age(sister1) = 1;
0049 data_c.regs.divide(sister1) = 0;
0050 data_c.regs.ehist(sister1) = errorStat;
0051 data_c.regs.stat0(sister1) = ~errorStat;
0052 data_c.regs.sisterID(sister1) = cell_count+1;
0053 data_c.regs.motherID(sister1) = data_r.regs.ID(regR);
0054 data_c.regs.daughterID{sister1} = [];
0055 data_c.regs.ID(sister1) = cell_count;
0056 data_c.regs.ID_{sister1} = cell_count;
0057
0058
0059 cell_count = cell_count+1;
0060 data_c.regs.death(sister2) = time;
0061 data_c.regs.deathF(sister2) = 1;
0062 data_c.regs.birth(sister2) = time;
0063 data_c.regs.birthF(sister2) = 1;
0064 data_c.regs.age(sister2) = 1;
0065 data_c.regs.divide(sister2) = 0;
0066 data_c.regs.ehist(sister2) = errorStat;
0067 data_c.regs.stat0(sister2) = ~errorStat;
0068 data_c.regs.sisterID(sister2) = cell_count-1;
0069 data_c.regs.motherID(sister2) = data_r.regs.ID(regR);
0070 data_c.regs.daughterID{sister2} = [];
0071 data_c.regs.ID(sister2) = cell_count;
0072 data_c.regs.ID_{sister2} = cell_count;
0073
0074
0075 data_r.regs.divide(regR) = ~errorStat;
0076 data_r.regs.daughterID{regR} = [cell_count-1,cell_count];
0077
0078 if isfield( data_c.regs, 'lyse' )
0079 data_c.regs.lyse.errorColor1Cum(sister2) = ...
0080 time*double(logical(data_c.regs.lyse.errorColor1(sister2)));
0081 data_c.regs.lyse.errorColor2Cum(sister2) = ...
0082 time*double(logical(data_c.regs.lyse.errorColor2(sister2)));
0083 data_c.regs.lyse.errorShapeCum(sister2) = ...
0084 time*double(logical(data_c.regs.lyse.errorShape(sister2)));
0085 data_c.regs.lyse.errorColor1Cum(sister1) = ...
0086 time*double(logical(data_c.regs.lyse.errorColor1(sister1)));
0087 data_c.regs.lyse.errorColor2Cum(sister1) = ...
0088 time*double(logical(data_c.regs.lyse.errorColor2(sister1)));
0089 data_c.regs.lyse.errorShapeCum(sister1) = ...
0090 time*double(logical(data_c.regs.lyse.errorShape(sister1)));
0091 data_c.regs.lyse.errorColor1bCum(sister2) = ...
0092 time*double(logical(data_c.regs.lyse.errorColor1b(sister2)));
0093 data_c.regs.lyse.errorColor2bCum(sister2) = ...
0094 time*double(logical(data_c.regs.lyse.errorColor2b(sister2)));
0095 data_c.regs.lyse.errorColor1bCum(sister1) = ...
0096 time*double(logical(data_c.regs.lyse.errorColor1b(sister1)));
0097 data_c.regs.lyse.errorColor2bCum(sister1) = ...
0098 time*double(logical(data_c.regs.lyse.errorColor2b(sister1)));
0099 end
0100 end
0101 end
Generated on Thu 19-Jan-2017 13:55:21 by m2html © 2005