Open K-Meech opened 1 week ago
frames
for its time features. .h5
fileUpdate: one of the main maintainers confirmed in their repo's discussions that: 'Unless the timestamps were explicitly added as metadata, then there's no guarantee that they will be stored. The file format uses an integer index by default for the frames.'
Btrack assigns each track a fate
which could be useful here. The different fates are available on their repo, but don't have much documentation. In the btrack paper under 2.3.4 Global Track Optimization
they are listed as:
Browsing around in their example jupyter notebook, as well as visualising in napari would mark the following as relevant:
TERMINATE_BACK
= reaches end of the movieTERMINATE_BORDER
= goes out of frame left, right, up or downTERMINATE_LAZY
= track terminates at any point in the movie. From browsing through the examples, these are normally tracking mistakes where it fails to link two tracks together, or it fails to recognise a division event and so ends unexpectedly. FALSE_POSITIVE
= these are normally very short tracks (may only last a frame or two) that tend to have no childrenAPOTOSIS / DEAD
= mark dead cellsThese are assigned with a certain likelihood based on their hypothesis model, so I think using them to create the right-censoring column should be optional. We could have two flags:
TERMINATE_*
fates as right-censoredFALSE_POSITIVE
and their descendants (if any)I couldn't see anything directly related to missing frames.
Create a converter for btrack output files to the cell tracking challenge format.
Output files
Btrack outputs to an HDF5 file containing various outputs:
tracks/obj_type_1/LBEPR
. It has two additional un-needed columns:R
for the label of the root track andG
for the generational depth. These columns could be removed or ignored.Existing converters
There are no existing CTC converters, but btrack already seems to be using pretty much this format. We can extract the text file with python:
or directly use their
export_LBEP
function We may want to consider adding options to the btrack napari plugin, for those who don't use any python code.