Guide to exporting processed data to MAT file - galizia-lab/pyview GitHub Wiki

This page provides a step by step procedure for exporting processed data into MAT files for a list of animals.

Pre-requirements

  1. Organization of raw datasets in the recommended folder structure(guide)
  2. Creation of measurement lists for each dataset (guide)
  3. Creation of a YML file for the project (guide)

Step 1:

A templated script for exporting processed data into MAT files is available at "VIEWTemplates/export_processed_data_as_mat_files_template.py" of the repository. Copy/download this template to your "Progs" folder (see here for more info) and rename it to remove the "template" part of it's filename. Note that the template file is available as part of the source code you have downloaded while installing/updating.

Step 2:

Open the file in a text editor and edit it as indicated: export_mat

Step 3:

Open a terminal/Powershell.

Step 4:

Activate the environment created during installation, for example using conda activate <environment name> or pipenv shell

Step 5:

Run the script. You can drag and drop the script from your file exporer to the terminal/powershell to get its full path.

python <full path of the script>

Step 6:

One or more MAT files will be created in your output folder according to this folder structure in the directory ProcessedDataExported/MAT. Have a look!

Step 7:

Here is a guide to reading the MAT files generated.