Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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!