Skip to content

A MATLAB library to find, visualize and analyze low dimensional embeddings in biological neural data.

Notifications You must be signed in to change notification settings

barbaLab/NeuralEmbedding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NeuralEmbedding

NeuralEmbedding is a MATLAB library designed to provide a set of tools for analyzing neural dynamics. This library includes various dimensionality reduction techniques tailored for spiking neural data, along with useful metrics to evaluate the quality of the generated embeddings as well as plotting methods to visualize data.

Features

  • Dimensionality Reduction Techniques: Apply various algorithms to reduce the dimensionality of spiking neural data, helping to uncover underlying neural dynamics.
  • Evaluation Metrics: Utilize built-in metrics to assess the effectiveness and quality of the generated embeddings.
  • Flexible and Extensible: The library is designed to be flexible, allowing for easy integration with existing workflows and extending with new methods.

Installation

To use NeuralEmbedding, clone the repository and add it to your MATLAB path:

repositoryURL("https://github.com/yourusername/NeuralEmbedding.git",folder)
addpath(fullfile(folder,"NeuralEmbedding"));

Usage

Here’s a simple example of how to use the library to perform dimensionality reduction on spiking neural data. For details on input data formats, the available dimensionality reduction methods, and evaluation metrics, please refer to the wiki.

% Load your neural data
load('neural_data.mat');

NE = NeuralEmbedding(data,...
  "fs",fs,...
  "time",T,...
  "area",A,...
  "condition",C,);

% Apply a dimensionality reduction technique
NE.findEmbedding("PCA");

% Evaluates trajectory length
NE.computeMetrics("arc");

Documentation

For detailed documentation and examples, please refer to the Wiki.

Contributing

Contributions are welcome! If you’d like to contribute, please fork the repository and create a pull request with your changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A MATLAB library to find, visualize and analyze low dimensional embeddings in biological neural data.

Resources

Stars

Watchers

Forks