Skip to content
Snippets Groups Projects
Select Git revision
  • e5f87633107f181fdeef6323b894ab8ac806cd4d
  • master default protected
  • archive
  • v7.14.3
  • v7.14.2
  • v7.14.1
  • v7.14
  • v7.13
  • v7.12
  • v7.11
  • v7.10
  • v7.9
  • v7.8
  • v7.7
  • v7.6
  • v7.5
  • v7.4
  • v7.3
  • v7.3_MultiCellType
  • v7.2
  • v7.2_MultiCell
  • v7.1
  • v7.1_MultiCell
23 results

RemoveChildren.m

  • Eric Wait's avatar
    Eric Wait authored
    e5f87633
    History
    RemoveChildren.m 572 B
    function RemoveChildren(trackID)
    % RemoveChildren(trackID) removes the children of the given track and moves
    % them to thier own trees.  Those new trees are attempted to be added to
    % other trees. eg ProcessNewborns
    
    %--Eric Wait
    
    global CellTracks
    
    familyIDs = [];
    while ~isempty(CellTracks(trackID).childrenTracks)
        familyIDs = [familyIDs RemoveFromTree(CellTracks(CellTracks(trackID).childrenTracks(1)).startTime,CellTracks(trackID).childrenTracks(1),'no')];
    end
    
    CellTracks(trackID).childrenTracks = [];
    %run processNewborns on them
    ProcessNewborns(familyIDs);
    end