Skip to content

Post Processing & Data Analysis

TDTbin2mat and the MATLAB SDK

Exporting data from Synapse into MATLAB is simple with the TDT MATLAB SDK. The main importing function of the MATLAB SDK is TDTbin2mat. The main argument for TDTbin2mat is the full file path to the data block that you want to import. Synapse makes copying this file path easy via the History dialog. See this Lightning Video to see this importing sequence. You can also copy the block file path via Windows Explorer.

Link to the MATLAB SDK

The TDT Python Package

Data can also be easily imported into Python 3 using the tdt package. If you already have Python 3 installed, you can add the tdt package in your cmd window: pip install tdt

Link to Python Package and SDK:

https://pypi.org/project/tdt/

Link to the Python SDK

Release notes and select examples

MATLAB and Python Workbook Examples

TDT aims to help customers as much as possible with easy data import and analysis. We understand that not all customers have extensive MATLAB or Python experience, so we created fully-commented workbook examples that demonstrate how to do basic, but interesting operations with MATLAB or Python code. These examples are not intended to serve as a complete pipeline for your data analysis - please use wisely.

Link to Matlab Workbook examples

Link to Python Notebook examples

Fiber Photometry Epoch Averaging example (Matlab)

Fiber Photometry Epoch Averaging example (Python)

Lick Bout Epoc Filtering (Matlab)

Lick Bout Epoc Filtering (Python)

If you have other scripting needs, please reach out to TDT Tech Support at support@tdt.com.

View Data in OpenScope

For a first-pass replay of data, you can view any Synapse recording in OpenScope. This also takes advantage of the Synapse History dialog. OpenScope has extra features that make jumping around the data fast and intuitive. You can also use the Video Viewer feature to replay videos with the timestamp of each frame.

Using OpenScope

https://www.tdt.com/docs/lightning/synapse/#view-data-in-openscope

https://www.tdt.com/docs/lightning/synapse/#openscope-video-viewer

OpenBrowser - Exporting to Excel

If MATLAB is not your preferred data viewer, you can export data in an ASCII format into Microsoft Excel.

Using OpenBrowser

https://www.tdt.com/docs/lightning/openbrowser/#export-to-edf-format

Note

This video demonstrates exporting to an EDF file format, not ASCII.

More Resources

Here are some common resources that customers may find helpful as they work to understand fiber photometry and conduct experiments.

TDT Fiber Photometry webpage

Select fiber photometry papers:

Fiber photometry community forum

Tom Davidson's fiber photometry Google Drive

Lerner Lab Resources webpage