This repo implements the receptive field (RF) analysis via spike-triggered average (STA) of the multi-unit activity (MUA) from Neuropixels probe recordings. These scripts intend to quickly test the presence of any neuronal responses to visual stimuli in order to optimize the probe placement during tangential recordings in the mouse superior colliculus (Sibille et al., 2022). Specifically, sparse-noise stimuli were presented to map the RFs. The peri-stimulus time histograms (PSTHs) and the corresponding RFs will be produced as part of the outputs.
Run the MUA_STA_RFs_exec.py
to:
- extract the MUA from the Neuropixels recording,
- compute the STA of the MUA to map the RFs for each channel of the probe, and
- plot the estimated RFs.
Software:
- Requirements: Python 3, PsychoPy toobox
- An example of a short Neuropixels recording (3.5 GB) is provided as a reference for calibration purposes.
Hardware:
To ensure proper alignment of the recorded neuronal activity to the timing of the visual stimulus frames, each frame of the stimulus matrix should be paired with a stimulus TTL.
- Display of the visual stimuli:
install the PsychoPy toolbox and make sure that the numbers of the stimulus frames and the obtained stimulus TTLs are matched. - Hardware options:
- Connect the stimulus TTL to the front digital inputs of the Neuropixels card. Use
align_to_probe_timestamps=False
in the script. - Connect the stimulus TTL to the additional NI-DAQ digital inputs in the NI-PXIe. This hardware setting requires an extra synchronization step between the two cards. In the script, set
align_to_probe_timestamps=True
and specify the probe event TTLs directory asprobe_ttl_dir
.
- Connect the stimulus TTL to the front digital inputs of the Neuropixels card. Use
Make sure that the NI-DAQ hardware's digital input number d
used for the stimulus TTLs matches the channel state
of the event_keys
named "frametimes"
in the script.
A test recording is available in: https://zenodo.org/record/6850116#.YtQNq4RBzQM