Skip to content

Support for Annotation Files

Ann Kennedy edited this page May 1, 2019 · 10 revisions

Bento loads annotation files via the parent function loadAnyAnnot, which calls one or more format-specific helper functions. Annotation formats currently supported are as follows:

  • .txt files can be loaded if they are in one of the following formats:
    • Caltech Behavior Annotator files
    • Ethovision annotation files, limited support. Code was developed for a particular experiment format in the Anderson lab, and has not yet been generalized.
  • .annot files are annotations created by Bento; they are saved in text files with the .annot extension.

Users are welcome to contribute support for other annotation formats.

loadAnyAnnot returns arguments annotations, tmax, tmin, FR, fid, hotkeys. See Using Annotation Structs for more information.