quantumjot / btrack

Bayesian multi-object tracking
https://btrack.readthedocs.io
MIT License
310 stars 50 forks source link

lineage tree ignores multiple parents #216

Closed will-moore closed 1 year ago

will-moore commented 1 year ago

With this sample, I have a track that splits into 2 and then they join back into one.

viewer = napari.Viewer()
tracks = [
    [0, 1, 50.5, 7.4],
    [0, 2, 50.3, 59.3],
    [1, 3, 73.2, 100.6],
    [1, 4, 75.2, 150.3],
    [2, 3, 13.1, 110.4],
    [2, 4, 14.8, 150.7],
    [3, 5, 54.4, 200.5],
    [3, 6, 52.1, 250.4],
]

graph = {2: [0], 1:[0], 3:[1, 2]}
properties = {"t": [t[1] for t in tracks], "value": [t[3] for t in tracks]}

viewer._add_layer_from_data(tracks, {'graph': graph, 'properties': properties}, "tracks")
napari.run()

This shows up correctly on the viewer, but on the lineage tree, the track 3 is shown as only having a single parent:

Screenshot 2023-03-09 at 09 37 00

Also, the plot at the bottom of the right panel suggests there might be some way to plot the 'properties' of points over time? Is that right, and if so, how can I get it to show the "value" property in my example?

Thanks!

will-moore commented 1 year ago

Sorry, I realise this is the wrong repo - moving to https://github.com/lowe-lab-ucl/arboretum...

will-moore commented 1 year ago

Oh, it looks like this has been moved automatically, to the right location?

paddyroddy commented 1 year ago

No, it got moved to a project board from the same organisation. Would you mind opening it on the https://github.com/lowe-lab-ucl/arboretum repo? I can do it otherwise

will-moore commented 1 year ago

OK, I'll move it - thx

paddyroddy commented 1 year ago

Thanks!