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.

Multiple annotations per trial supported, in which case files need not be in the same format. Example: file_1.annot;file_2.annot;file_3.txt

Users are welcome to contribute support for other annotation formats.

See Using Annotation Structs for information on how annotations are formatted after they've been loaded into Matlab.