Visualizing neuronal data#
Tuning curves#
The file auditory_RN.npz
contains local-field potential recordings from the auditory nerve of the fruit fly in response to a pure tone presented at 12 different intensities, 32 trials per intensity.
Plot stimulus intensity vs. the single-trial responses.
Plot stimulus intensity vs. the trial-averaged response with error bars.
# your solution here
Time-varying firing rates#
The file two_neurons.npz
contains the voltage trace of two different neurons. Each neuron was stimulated with a current pulse (5nA) that started at 150ms into the recording and lasted 1100ms.
Plot the voltage traces as a function of time. What is the difference between the neurons?
Visualize the firing pattern of the neurons using a PSTH. Choose bin positions that allow you to see when both neurons fire.
# your solution here
Inter-spike intervals#
Using the data from the file two_neurons.npz
, compute inter-spike intervals (ISI, time between subsequent times) for each neuron and visualize the ISI distributions with histograms.
# your solution here
Overlaying spatial behavioral data and neuronal spike times#
The file mouse_tracks.npz
contains data from an experiment in which a mouse was allowed to move in a circular arena while neurons in hippocampus were recorded. The file contains the walking trajectories (x,y position in tracks) and the spike times from two neurons. Both neurons are place cells, which fire only when the mouse is in a specific location in the arena.
Plot the walking trajectories (x,y positions).
Plot the location the mouse was in for each spike of the two neurons (use different colors for the different neurons).
# your solution here