Skip to content

regenerating the metadata from the behavior json

XX-Yin edited this page Feb 17, 2025 · 1 revision

Regenerating the metadata from the behavior json

Installation

Ensure the Dynamic Foraging GUI is downloaded and installed following the instructions provided in the official repository: [Dynamic Foraging Task GitHub](https://github.com/AllenNeuralDynamics/dynamic-foraging-task).


Metadata Generation Methods

Once the GUI is installed, metadata for the session and rig can be generated using one of the following methods:

Method 1: Using GenerateMetadata.py

  1. Navigate to the following directory:
    dynamic-foraging-task\src\foraging_gui
    
  2. Open the GenerateMetadata.py script in a code editor.
  3. Provide the full path of the JSON file (json_file) and specify the output folder (output_folder) in the last line of the script.
  4. Run the script to generate session and rig metadata in the specified output_folder.

Method 2: Using the Behavior GUI

  1. Open the behavior GUI.
  2. Navigate to File -> Open and select the behavior JSON file you wish to process.
  3. Click the Save button. This will save the behavior and rig metadata in the same folder structure as when originally collected.
    • Note: Other data remains protected and will not be regenerated in this mode; only metadata is regenerated.

Clone this wiki locally