cortex-lab / cortex-lab/phy

Quickly filter by time in WavevormView, TemplateFeatureView, FeatureView, CorrelogramView

Open
#1,127 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: visualization type: enhancement
Dominant language
Python
Stars
430
Forks
187
Avg merge
2h 31m
Merged PRs (30d)
2

Description

Hi,

For deciding if a cluster that slowly drifts across electrodes contains spikes from the same neuron, it would be really handy if there was a quick way to filter by time in the WavevormView, TemplateFeatureView, FeatureView, and CorrelogramViews. This would let you quickly tell, for example if the autocorrelation is similar at the beginning and end of a recording, or the spike shape is similar. If they're similar, it's more evidence that it's a stable single-unit.

You can sort-of do this right now by splitting out sections of a cluster by time, but it's slow and imprecise, and you can't easily compare two clusters at an early time vs a later time for example.

I think it would be pretty easy, just apply a mask to the spikes that get selected for those views. The part I'm less sure of how to do is to add it to the GUI. The way I'm thinking of it you could add another shaded region to the AmplitudeView that indicates the time filter, and some controls to change its width and center. Maybe shift+right-click to change the center?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating WavevormView, TemplateFeatureView, FeatureView, CorrelogramView, and AmplitudeView, then trace how spikes are selected for those views. Define the time filter's controls and compare behavior before implementing it; done means all four views can be filtered consistently by recording time.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.