Population receptive field analysis for motion-sensitive early- and mid-level visual cortex.
Project description
Population receptive field analysis for motion-sensitive early- and mid-level visual cortex.
This is an extension of the pyprf package. Compared to pyprf, pyprf_motion offers stimuli that were specifically optimized to elicit responses from motion-sensitive areas. On the analysis side, pyprf_motion offers some additional features made necessary by the different stimulation type (model positions defined in polar coordinates, sub-TR temporal resolution for model creation, cross-validation for model fitting) at the cost of some speed and flexibility. There is currently no support for GPU.
Installation
For installation, follow these steps:
(Optional) Create conda environment
conda create -n env_pyprf_motion python=2.7
source activate env_pyprf_motion
conda install pip
Clone repository
git clone https://github.com/MSchnei/pyprf_motion.git
Install numpy, e.g. by running:
pip install numpy
Install pyprf_motion with pip
pip install /path/to/cloned/pyprf_motion
Dependencies
Package |
Tested version |
---|---|
1.14.0 |
|
1.0.0 |
|
2.2.1 |
|
0.27.1 |
|
1.4.0 |
|
0.19.1 |
How to use
1. Present stimuli and record fMRI data
The PsychoPy scripts in the stimulus_presentation folder can be used to map motion-sensitive visual areas (especially area hMT+) using the pRF framework.
Specify your desired parameters in the config file.
Run the createTexMasks.py file to generate relevant masks and textures. Masks and textures will be saved as numpy arrays in .npz format in the parent folder called MaskTextures.
Run the createCond.py file to generate the condition order. Condition and target presentation orders will be saved as numpy arrays in .npz format in the parent folder called Conditions.
Run the stimulus presentation file motLoc.py in PsychoPy. The stimulus setup should look like the following screen-shot:
2. Prepare spatial and temporal information for experiment as arrays
Run prepro_get_spat_info.py in the prepro folder to obtain an array with the spatial information of the experiment.
Run prepro_get_temp_info.py in the prepro folder to obtain an array with the temporal information of the experiment.
3. Prepare the input data
The input data should be motion-corrected, high-pass filtered and (optionally) distortion-corrected. If desired, spatial as well as temporal smoothing can be applied. The PrePro folder contains some auxiliary scripts to perform some of these functions.
4. Adjust the csv file
Adjust the information in the config_default.csv file in the Analysis folder, such that the provided information is correct. It is recommended to make a specific copy of the csv file for every subject.
5. Run pyprf_motion
Open a terminal and run
pyprf_motion -config path/to/custom_config.csv
References
This application is based on the following work:
Dumoulin, S. O., & Wandell, B. A. (2008). Population receptive field estimates in human visual cortex. NeuroImage, 39(2), 647–660. https://doi.org/10.1016/j.neuroimage.2007.09.034
Amano, K., Wandell, B. A., & Dumoulin, S. O. (2009). Visual field maps, population receptive field sizes, and visual field coverage in the human MT+ complex. Journal of Neurophysiology, 102(5), 2704–18. https://doi.org/10.1152/jn.00102.2009
van Dijk, J. A., de Haas, B., Moutsiana, C., & Schwarzkopf, D. S. (2016). Intersession reliability of population receptive field estimates. NeuroImage, 143, 293–303. https://doi.org/10.1016/j.neuroimage.2016.09.013
License
The project is licensed under GNU General Public License Version 3.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pyprf_motion-1.0.4.tar.gz
.
File metadata
- Download URL: pyprf_motion-1.0.4.tar.gz
- Upload date:
- Size: 159.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 152ac349a30b3559af5c183441d6af808c3a0413cdbc72b48644367911749755 |
|
MD5 | cc31a0831623801d1b5d6f623e8dc409 |
|
BLAKE2b-256 | d4376b38d9fe9739f8ef8422f7a1cbb58558dedda7c12e9dd366b7225cec5645 |