open-worm-analysis-toolbox
open-worm-analysis-toolbox copied to clipboard
Save WormFeatures objects in WCON format?
I would like to at output features of my analysis into a format that is compatible with the tracker-commons. Right now, I am collecting several WormFeatures objects and saving them into an hdf5 file format in a way that is convenient to load for me. Obviously I would like to make my format compatible with others.
I want to figure out if I should do the common-tracker conversion directly from the WormFeatures objects or from the hdf5 format. @MichaelCurrie Do we have a way to convert the object WormFeatures in to a compatible format with tracker-commons? I can write it if it does not exists?
WormFeatures objects -> .WCON format
We already have a function that goes from .WCON format -> BasicWorm object.
We have nothing that saves a WormFeatures object -> custom .WCON format.
We do have a loader that goes from Schafer .hdf5 format -> WormFeatures object: WormFeatures._from_schafer_file()
So to complete the cycle you'd just have to write a function called WormFeatures.save_to_WCON()
. This has been in the plan for some time but I nor Jim have had a chance to do it. If you want to do it that would be great!