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 0d5f05f commit 105f4c3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/napatrackmater/Trackmate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2035,7 +2035,9 @@ def _update_spot_fate(self, TrackIds, fate_label):

for track_id in TrackIds:
self.unique_track_fate_label[track_id] = fate_label
cell_ids = self.all_current_cell_ids[int(track_id)]
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})

Expand Down
11 changes: 9 additions & 2 deletions src/napatrackmater/Trackvector.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,16 +230,25 @@ def _get_track_vector_xml_data(self):
self.AllTrackIds = []
self.DividingTrackIds = []
self.NormalTrackIds = []
self.GobletTrackIds = []
self.BasalTrackIds = []
self.RadialTrackIds = []
self.all_track_properties = []
self.split_points_times = []

self.AllTrackIds.append(None)
self.DividingTrackIds.append(None)
self.NormalTrackIds.append(None)
self.GobletTrackIds.append(None)
self.BasalTrackIds.append(None)
self.RadialTrackIds.append(None)

self.AllTrackIds.append(self.TrackidBox)
self.DividingTrackIds.append(self.TrackidBox)
self.NormalTrackIds.append(self.TrackidBox)
self.GobletTrackIds.append(self.TrackidBox)
self.BasalTrackIds.append(self.TrackidBox)
self.RadialTrackIds.append(self.TrackidBox)

self.Spotobjects = self.xml_content.find("Model").find("AllSpots")
# Extract the tracks from xml
Expand Down Expand Up @@ -750,8 +759,6 @@ def build_closeness_dict(self, radius):
self.closeness_dict[time_point] = closeness_dict_time_point




def _iterate_over_tracklets(
track_data, training_tracklets, track_id, prediction=False, ignore_columns=[]
):
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.3.9"
__version_tuple__ = version_tuple = (5, 3, 9)
__version__ = version = "5.4.0"
__version_tuple__ = version_tuple = (5, 4, 0)

0 comments on commit 105f4c3

Please sign in to comment.