define our own preframe features and show on JAABA interface

145 views
Skip to first unread message

baicaidefen kuchiki

unread,
Jan 20, 2014, 7:32:18 PM1/20/14
to ja...@googlegroups.com
Hi there,

I'm using JAABA to analyze fly behavior, and it works really well. Thank you JAABA group!

I'm wondering if it's possible to add some other per-frame features defined by user. Actually, I've tried to replace some per-frame features with other values (like number of flies on the patch) , and it still can be displayed on the interface. So I'm wondering if we could add another per-frame (ex. named " number of fly on patch")? 




Thanks,
Hetian, PhD Candidate
University of Southern California


Kristin Branson

unread,
Jan 22, 2014, 6:52:34 PM1/22/14
to baicaidefen kuchiki, ja...@googlegroups.com
Sorry for the late response. You can absolutely make up your own per-frame features. There are three things you need to do: 

First, you need to generate these features and store them where JAABA can find them. All the per-frame features are stored in the per-frame subdirectory of each experiment directory (http://jaaba.sourceforge.net/DataFormatting.html#PerFrameDirectoryStructure). There is a mat file for each per-frame feature which stores the variables "data" and "units". data is a cell with size 1 x ntargets, and data{i} is an array of size 1 x nframes, with data{i}(j) corresponding to the jth frame tracked for animal i. 

Second, you need to create a new configuration file with these new features in it. The config files are all stored in the JAABA code directory, subdirectory perframe/params. You'll want to create a new xml file that is very similar to featureConfig.xml. The only thing you'll want to modify is to add your new features to the list of features. 

Finally, you need to tell JAABA that this configuration file exists, so you want to add the name of this feature config file to featureConfigList.xml, You can specify a new target type here. When you create a new project, you will choose this new target type. 

Please let me know if you have any questions. 
Kristin



--
You received this message because you are subscribed to the Google Groups "JAABA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jaaba+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/jaaba.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages