Skip to content

Conversation

@ncguilbeault
Copy link
Collaborator

Summary

This PR adds a new example demonstrating how to use the Bonsai.ML.NeuralDecoder package. It uses a bayesian state space point process model to decode an animal's position in real time using either spike sorted or clusterless neural activity from tetrode recordings in the hippocampus.

Changes

  • Added bonsai environment
  • Added decoder python library
  • Added workflow with extensions
  • Added README
  • Added clusterless spike decoder model
  • Changed name to sorted spikes
  • Added clusterless spikes bonsai workflow
  • Updated data iterator to handle outputting position bins
  • Changed name of core to decoder
  • Added likelihood module
  • Updated model loader to use decoder module
  • Updated init file
  • Add bonsai shaders package
  • Updated to use shaders render frequency for timing
  • Renamed folders more appropriately to NeuralDecoding/PositionDecodingFromHippocampus
  • Updated to remove cuda path declaration and copy of decoder class
  • Updated to have filename declarations at top
  • Updated
  • Added README to example
  • Added requirements.txt file
  • Updated notebook for 50Hz down sampling
  • Added cell for plotting
  • Added online FPS estimate
  • Updated to properly use 50 Hz
  • Remove exensions and use new Bonsai.ML.NeuralDecoding package
  • Updated to use Bonsai.ML package
  • Removed requirements.txt file in favor of installing from git repo
  • Updated notebooks for new package
  • Added new dataset to README
  • Updated example README
  • Removed python package from inside example folder
  • Renamed workflows
  • Updated notebooks and removed redundant loading from file
  • Updated package version correctly

@ncguilbeault ncguilbeault marked this pull request as draft January 23, 2025 17:23
<?xml version="1.0" encoding="utf-8"?>
<PackageConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Packages>
<Package id="Bonsai" version="2.8.5" />
Copy link
Contributor

@PathogenDavid PathogenDavid Jun 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edit: Ah, I didn't realize this was a stale PR already covered by #19 in this regard.

Please ensure to update this PR to Bonsai 2.9.0 prior to merging, similar to #18 or #19

The easiest way to do this is to put the 2.9.0 Bonsai.exe here and launch it and everything else should be automatic. (Don't do it manually, 2.9.0 has new core dependencies it'll need to add.)

(Worth noting that I did not review any other files, just wanted to make this note.)

@ncguilbeault
Copy link
Collaborator Author

This PR was superseded by #17

@ncguilbeault ncguilbeault deleted the decoder-model-example branch July 29, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants