Skip to content

LCTPalmer/tuning_curve_analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tuning_curve_analysis

Set of functions for fitting a Von Mises function to characterise orientation tuning in visual cortex. Example fMRI data is given which includes the currently viewed orientation and associated BOLD response of voxels in V1. demo.py uses Bayesian MCMC estimation to find parameters of a Von Mises function that best account for the tuning properties of a single voxel.

Dependencies:
numpy
matplotlib.pyplot
emcee

Includes:
mcmc_tc.py - routines for estimating Von Mises model parameters
mcmc_plot.py - plotting the results of previous analysis
demo.py - demonstration of fitting a Von Mises function to a single voxel using real fMRI data. Also computes the Bayes factor of the Von Mises model over an untuned model
example_data.csv - data from an orientation tuning experiment. Columns 3 to end are detrended and z-normalised BOLD timeseries for each voxel in V1 (V1 voxels were isolated using retinotopic mapping in a separate analysis)

About

MCMC estimation of Von Mises function to fMRI BOLD data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages