Last updated: 31 March 2023
This is the repository for the MATLAB Community Toolbox Training Project dandi-example-live-scripts-000207
. Supported by incf, this MatNWB data storytelling project replicated a subset of the figures found in the Zheng et al. (2022) manuscript using the Neurodata Without Borders (NWB) files available within the DANDI open source dataset ID:00027. Narrative text was added in the core live script to provide scientific context, motivation about the publication, and the specific results reproduced.
The code to convert the NWB data was created with the MatNWB interface library to read and write NWB files with MATLAB. This code was used to analyze human single-neuron data that has determined the important role of cognitive boundaries in episodic memory formation.
- MatNWB interface library
- Dataset from one subject obtained from DANDI. The subject file used in this script is
sub-1_ses-1_ecephys+image.nwb
found here.
The following files are included in this repository to reproduce several subpanels of Figure 3 from the accompanying manuscript.
- Core live script
DANDI_000207_liveScript.mlx
- Use this live script to execute the code that allows for the reproduction of several figure subpanels with a conceptual discussion and explanation of the authors' chosen methodology.
- Live functions called within the core live script to reproduce key figure subpanels
- Figure 3a:
fig3a_reproduction.mlx
- Figure 3c:
fig3c_reproduction.mlx
- Figure 3i:
fig3i_reproduction.mlx
- Figure 3j:
fig3j_reproduction.mlx
- Figure 3a:
- Helper functions called within the core live script and/or live functions
- Locate spikes within each cluster for the selected cell:
nwb_read_unit.m
- Plot lines with shaded error/confidence:
boundedline.m
- Locate spikes within each cluster for the selected cell: