open-worm-analysis-toolbox icon indicating copy to clipboard operation
open-worm-analysis-toolbox copied to clipboard

Save WormFeatures objects in WCON format?

Open ver228 opened this issue 8 years ago • 1 comments

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?

ver228 avatar Aug 05 '16 13:08 ver228

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!

MichaelCurrie avatar Aug 06 '16 09:08 MichaelCurrie