Skip to content

3D Viewer#155

Open
dmarzzz wants to merge 2 commits into
AllenNeuralDynamics:mainfrom
dmarzzz:watch-the-mouse-think
Open

3D Viewer#155
dmarzzz wants to merge 2 commits into
AllenNeuralDynamics:mainfrom
dmarzzz:watch-the-mouse-think

Conversation

@dmarzzz
Copy link
Copy Markdown

@dmarzzz dmarzzz commented May 28, 2026

I vibe coded a visualizer for one of the data sets and tweeted about it here https://x.com/DistributedMarz/status/2060099225585639655?s=20

You can totally feel free to close this PR and not use it, Im not sure it totally makes sense here or could maybe link to it in the ReadMe for anyone who might find it interesting! Will try to work on some more visualizations if you have any ideas!

dmarzzz and others added 2 commits May 28, 2026 02:34
Streams an Allen Visual Coding Neuropixels session from DANDI 000021,
places every recorded unit at its CCF coordinate inside the Allen mouse
brain atlas, glows region-by-region as activity flows through. Inspired
by the OpenScope Community Predictive Processing project.

The viewer is a single-file Three.js + 2D canvas page; the Python prep
script streams ~80MB from DANDI (no full NWB download), fits a small
logistic decoder + 3-gram stimulus model, and bakes per-unit CCF coords
+ a per-region activity matrix for the viewer to consume.

Includes a documented workaround for DANDI 000021's NWB packaging,
which mirrors the ML CCF coordinate (z) from DV (y) on every electrode
— prep_session.py reconstructs each unit's ML by sampling within the
Allen region mesh's right-hemisphere bounding box.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…ndicator + URL params

- Rewrote pane titles + subtitles in plain English so non-neuroscience
  viewers can land cold (e.g., "reading the mind" instead of "decoder
  readout — P(orientation | population activity)").
- Decoder bottom strip now outlines the bar matching the actual current
  stim; outline turns green + "✓ correct" when the decoder's top guess
  matches; rolling 5s accuracy in the header.
- Region color legend explains visual hierarchy (gold = brain's guess,
  green = guess matched truth, red = model surprise).
- URL params for headless playback: ?t=99&play=1&speed=2 lets a screen
  recorder jump to a high-activity timestamp.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

1 participant