Skip to content
Snippets Groups Projects
Commit e7f607c3 authored by Walt Mankowski's avatar Walt Mankowski
Browse files

make sure the parent track's fluor settings get updated after a mitosis

parent a2999870
No related branches found
No related tags found
No related merge requests found
...@@ -87,7 +87,7 @@ end ...@@ -87,7 +87,7 @@ end
Error.LogAction(['Added ' num2str(siblingTrack) ' as sibling to ' num2str(trackID) ' at time t=' num2str(time)]); Error.LogAction(['Added ' num2str(siblingTrack) ' as sibling to ' num2str(trackID) ' at time t=' num2str(time)]);
Figures.tree.familyID = CellTracks(trackID).familyID; Figures.tree.familyID = CellTracks(trackID).familyID;
Tracker.UpdateHematoFluor(time); Tracker.UpdateHematoFluor(time, trackID);
UI.DrawTree(Figures.tree.familyID); UI.DrawTree(Figures.tree.familyID);
UI.DrawCells(); UI.DrawCells();
end end
......
% UpdateHematoFluor.m - reset fluorescence info after a cell has been % UpdateHematoFluor.m - reset fluorescence info after a cell has been
% edited % edited
function UpdateHematoFluor(t) function UpdateHematoFluor(t, editedTrack)
global CellHulls HashedCells FluorData CellTracks HaveFluor global CellHulls HashedCells FluorData CellTracks HaveFluor
if isempty(FluorData) if isempty(FluorData)
return return
end end
if ~exist('editedTrack')
editedTrack = 0;
end
hulls = [HashedCells{t}(:).hullID]; hulls = [HashedCells{t}(:).hullID];
for i=1:length(hulls) for i=1:length(hulls)
CellHulls(hulls(i)).greenInd = []; CellHulls(hulls(i)).greenInd = [];
...@@ -34,8 +38,10 @@ function UpdateHematoFluor(t) ...@@ -34,8 +38,10 @@ function UpdateHematoFluor(t)
continue; continue;
end end
if (t < CellTracks(i).startTime || t > CellTracks(i).endTime) if (t < CellTracks(i).startTime || t > CellTracks(i).endTime)
if i ~= editedTrack
continue; continue;
end end
end
times = CellTracks(i).startTime:CellTracks(i).endTime; times = CellTracks(i).startTime:CellTracks(i).endTime;
CellTracks(i).markerTimes = intersect(times,flTimes); CellTracks(i).markerTimes = intersect(times,flTimes);
if(~isempty(CellTracks(i).markerTimes)) if(~isempty(CellTracks(i).markerTimes))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment