Database tutorial
The public data in the database can be loaded as reference data, and can be accessed without providing credentials, but login credentials are necessary for full functionality of the database. This tutorial will show you the preparatory steps to use the database and various interactions. If you are using the public data, you can skip step 1-3.
- Provide your buzsakilab.com credentials
edit db_credentials.m
- In the Matlab file
db_credentials.m
, replace the two lines below with your credentials:credentials.username = 'user'; credentials.password = 'password';
- Define paths to data repositories Paths are generated from the repository definition in the database. Here you need to define the root path for each repository in
db_local_repositories.m
. To use theNYUshare_Datasets
(the NYU share dataset directory), you must define the system path to the repository, e.g.:repositories.NYUshare_Datasets = '/Volumes/buzsakilab/Buzsakilabspace/Datasets';
- Load session from database
- Load single session by filtering by a
sessionName
sessionName = 'Peter_MS13_171129_105507_concat'; sessions = db_load_sessions('sessionName',sessionName); session = sessions{1};
- Load and set session parameters
sessionName = 'Peter_MS13_171129_105507_concat'; [session, basename, basepath] = db_set_session('sessionName',sessionName);
- Load single session by filtering by a
- Inspect and edit the session metadata if necessary
session = gui_session(session);
- Load spikes via database/metadata
spikes = loadSpikes('session',session);
- Loading via database/metadata
- Run the processing pipeline and CellExplorer from
sessionName
cell_metrics = ProcessCellMetrics('sessionName',sessionName); cell_metrics = CellExplorer('metrics',cell_metrics);
- Run CellExplorer directly from
sessionName
cell_metrics = CellExplorer('sessionName',sessionName);
- Run CellExplorer from list of
sessionNames
sessionNames = {'ham11_27-29_amp','ham11_34-36_amp'}; cell_metrics = loadCellMetricsBatch('sessions',sessionNames); cell_metrics = CellExplorer('metrics',cell_metrics);
- Run the processing pipeline and CellExplorer from
Please see the tutorial for how to interact with the database from CellExplorer as well.