Replies: 1 comment 1 reply
-
Hi @emthilak, [I converted this to a discussion so that others may be able to use it in the future] Thanks for using btrack! It can sometimes be difficult to advise without seeing the data, but I can give you a few pointers that may help.
objects = btrack.utils.segmentation_to_objects(
segmentation,
properties=("area", ),
)
# this will create a new list of objects that have segmented areas greater than 100
filtered_objects = [obj for obj in objects if obj.properties["area"]>100]
with btrack.BayesianTracker() as tracker:
...
# append the filtered objects to be tracked
tracker.append(filtered_objects)
"prob_not_assign": 0.1 This will stop the tracker connecting detections too easily, so it may improve the end result. Hope that helps! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've been using bTrack to track cells over long time courses and visualize them using napari, but I've been running into two (related) issues. They are as follows:
bTrack labels single pixels as cells. This appears to be a consequence of discontinuous cell masks at the periphery of cells (masks generated by CellPose). I want to be able to discount them when using the btrack.utils.segmentation_to_objects() function (perhaps imposing a minimum area requirement for cell labeling?), but this doesn't appear to be an option. How might I be able to remedy this issue without altering the cell masks I've generated?
bTrack fails to keep track of mitosis events for cells of expected size, however fluctuations in the falsely detected single pixel "cells" are detected as mitosis events. For cells of expected size, the parent cell is tracked and after division, one of the daughter cells keeps the same track as the parent while a new track is generated for the other daughter cell. As a consequence, lineage is indeterminate and absent in the data for relevant tracks. Conversely for the false cells, if a false cell is detected a frame or two before multiple false cells are detected in the nearby area, a lineage is established by bTrack. Why is bTrack generating lineages for these false cells while the expected cells that undergo mitosis do not get any? And what can I do to fix the situation?
I've attached my configuration file, but I'm happy to provide any additional materials from my work. Thank you!
cell_config -test 3.txt
Beta Was this translation helpful? Give feedback.
All reactions