This tutorial shows you how to generate the session metadata struct used by CellExplorer.
- Define the basepath of the dataset to run. A valid dataset should consist of a binary raw file, and spike sorted data.
basepath = '/your/data/path/basename/'; cd(basepath)
CellExplorer operates with one main path for a dataset: the
basepathdefines the local path to the dataset. The session name, also referred to as
basename, is assumed to be the same as the directory of the session. Each of these fields are defined in the
session.generalstruct. The raw data file should be located in the
- You can generate the session metadata struct from the template function
session = sessionTemplate(basepath);
sessionTemplatewill extract metadata from the content of
basepath. Please go through the
sessionTemplatescript to understand the various components that are extracted. You can create your own template scripts from the original, adding any other relevant metadata.
- Use the session gui for inspecting the metadata struct and for further manual entry.
session = gui_session(session);
- You can verify the fields by running the verification script:
This will show a small figure, with missing required fields highlighted in red, and unused optional fields in blue.
Below is a screenshot of the metadata interface, and a short video showing the various tabs, with metadata entered.