Skip to content

mekman/recon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Build Status Coverage Status DOI

recon

Recon is a python module for (pRF-based) stimulus reconstruction analyses from fMRI data. The main functions include:

  • simple reverse retinotopy with the summation method (Thirion et al. 2006; Kok & de Lange 2014; Ekman, Kok & de Lange 2017)
  • advanced reverse retinotopy with the multivariate method (Ekman, Roelfsema & de Lange (in prep))
  • spatio-temporal reconstruction (Ekman, Kok & de Lange 2017)

Quick-start

$ python
>>> import matplotlib.pyplot as plt
>>> import recon as re
>>> # load prf properties
>>> x0, y0, s0, r2, betas = re.example_prf_data()
>>> # reconstruct stimulus
>>> S = re.stimulus_reconstruction(x0, y0, s0, betas, method='summation')
>>> plt.imshow(S)

Installation

Currently this is only available through GitHub and source installation

pip install git+https://github.com/mekman/recon.git --upgrade

or

git clone [email protected]:mekman/recon.git
cd recon
python setup.py install

You also need to install the mansfield module.

Citing

If you use the project please cite this article:

Ekman, Roelfsema & de Lange. “Object Selection by Automatic Spreading of Top-down Attentional Signals in V1.”
Journal of Neuroscience, https://doi.org/10.1523/JNEUROSCI.0438-20.2020.