Shank Viewer

Topics:

Edit Tab Quick Reference

Boxes

Define your region(s) of interest (ROI):

Readouts

The Rqd readout reminds you how many total channels/sites you must select to make a valid table. Most probes have 384 channels that are shared over the whole probe surface. Some probes have fewer than 384 readout channels, NXT probes have 912 or 1536 channels, and quad-probes have 384 channels on each of the four shanks. In all cases, Rqd tells you the required total channel count.

Sum is the channel count summed over your current set of boxes. You are done making a valid ROI when Sum = Rqd.

When you click in an existing box Sel reads out its size, in channels.

Making New Boxes

  1. Use Nrows to set the number of rows you want a new box to have.
  2. Set the New boxes width either to full- or half-shank.
  3. Click where you want to place the center of the new box.

Resizing Boxes

Clearing/Erasing Boxes

Boxes => file chans


View Tab Quick Reference

Online Data Flow

Raw data -> Fetcher -> Graphs -> Shank

Every tenth of a second a process thread called the 'graph fetcher' grabs the next chunk of raw data from the main data stream and pushes it to the Graphs window. The stepping of the visible time cursor across the screen heralds these events.

If the corresponding Shank Viewer is visible, the Graphs window pushes a copy of the unmodified raw data chunk to the Shank Viewer. Importantly, the filter choices in the Graphs window do not affect the Shank Viewer; each does its own filtering/processing.

Note that clicking Pause in the Graphs window pauses/resumes both the graphs and the shank activity mapping.

By default, both the online and offline Shank Viewers apply a 300Hz high-pass and global CAR filter to AP-band channels and a 0.2Hz - 300Hz bandpass filter to the LFP channels. These filters reduce out-of-band electrical noise, including DC offsets, which allows better comparison to your requested spike threshold voltage.

As of SpikeGLX version 20230425, the Configuration dialog/IM Setup tab has a box to set up a filtered probe AP-band stream that runs in parallel with the raw stream. You can set the bandpass edges for this stream, and the stream automatically gets global demux CAR. These data, when present, are used to improve signal-to-background in both audio output and Shank Viewers (for {spike, AP pk-pk} calculations). There is a checkbox to disable this feature just in case you are running out of RAM or CPU, but we don't think this will be necessary unless you are running 12 probes or more at the same time.

File Viewer Data Flow

Average current window applies a 300Hz high-pass and global CAR filer, then counts spikes and tallies peak-to-peak voltages over the data currently displayed in the File Viewer window. The Shank Viewer updates as you scroll.

Sample whole survey is specifically for viewing survey result files. It averages up to four half-second time chunks drawn from each of the banks on the probe to build a whole-probe activity map. You have to click Update whole survey to trigger the calculation. If you change the spike threshold or 'stay low' values you need to click Update again. Peak-to-peak calculation has no parameters so only one Update click each is needed.

Setting a Spike Threshold

You can read an appropriate threshold level from a graph:

  1. Select a graph and double-click to blow it up.
  2. Turn off all filters except 300 - INF (approximates Shank View filtering).
  3. Mouse over the graph; read the voltage in the status bar.
  4. Be conservative, set a value ~75% of the peak.

Setting 'Stay low'

This value gives you a rough spike width filter. Our spike detection logic requires that the signal cross the threshold (from high to low) and continuously stay low for at least this many samples.

Unfortunately, if you've got a lot of electrical noise, the signal could cross back and forth rapidly across the threshold. The detector thinks such spikes are narrow and they are rejected if 'stay low' is too high.

If your spike rates seem too low, try lowering 'stay low'.

To directly examine the noise in a selected graph:

  1. Double-click to blow it up.
  2. Set a very fast time scale like 0.01s for better resolution.
  3. Use the Pause button to freeze the display for a better look.

Anatomy Colors

This item group interacts with the Pinpoint and Trajectory Explorer real-time anatomy programs. The box receives a list of color-coded region labels. The checkboxes let you apply anatomy color separately to the shanks and to the traces in the Graphs Window.

Right-click

Right-click on a viewer pad to select more channel-specific options.

fin