vanvalenlab / deepcell-tracking

Track cells and build cell lineages
Other
29 stars 6 forks source link

`is_valid_lineage` does not look at `y` and can report `True` for invalid lineages. #72

Closed willgraf closed 3 years ago

willgraf commented 3 years ago

If a lineage contains cell IDs that are not in the label image y, the lineage should be invalid, but is_valid_lineage reports True. This is because y is not passed to is_valid_lineage.

is_valid_lineage should be updated to be passed y, and should make sure: