Skip to content

Commit

Permalink
cell fate
Browse files Browse the repository at this point in the history
  • Loading branch information
kapoorlab committed Jul 20, 2024
1 parent 105f4c3 commit ec139fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/napatrackmater/Trackmate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2034,12 +2034,16 @@ def _get_cell_fate_tracks(self):
def _update_spot_fate(self, TrackIds, fate_label):

for track_id in TrackIds:
cell_ids = None
self.unique_track_fate_label[track_id] = fate_label
if track_id is not None:
if track_id is not self.TrackidBox:
cell_ids = self.all_current_cell_ids[int(track_id)]
for cell_id in cell_ids:
self.unique_spot_properties[cell_id].update({self.fate_key: fate_label})
if cell_ids is not None:
for cell_id in cell_ids:
self.unique_spot_properties[cell_id].update(
{self.fate_key: fate_label}
)

def _get_trackmate_ids_by_location(self, dataframe):
trackmate_track_ids = []
Expand Down
4 changes: 2 additions & 2 deletions src/napatrackmater/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = version = "5.4.0"
__version_tuple__ = version_tuple = (5, 4, 0)
__version__ = version = "5.4.1"
__version_tuple__ = version_tuple = (5, 4, 1)

0 comments on commit ec139fe

Please sign in to comment.