Example data and code for:
Jan Clemens, Mala Murthy (2021) _Quadratic and adaptive computations yield an efficient representation of song in Drosophila auditory receptor neurons, preprint
Requires matlab. See github.com/janclemenslab/glm_utils for code that uses python’s scikit-learn to fit a quadratic filter.
Directory structure:
src/: Source code. Contains code from Park and Pillow (2011).dat/: Data files containing responses for different types of acoustic stimuli used in the paper.res/: Data files containing the results of model fitting.fig/: Figures with expected results.fit_model.m: Loads stimuli-response data fromdat/, fits the quadratic&adaptive model, and saves results tores/.plot_predictions.m,plot_eigendecomposition.m: Loads model from ‘res/‘ and plots model predictions and the eigenvalue decomposition of the quadratic filter. See ‘fig/` for expected results.
Usage:
- run
fit_models.mtwice, with thefilenamein lines 4-5 set todat/noise_20160311_8.matanddat/step_20140625_1.mat, respectively. This will fit the model for two variants of the noise stimulus and save the results inres/. - To plot the results, run
plot_predictions.mandplot_eigendecomposition.m. This will load and plot the results fromres/.