Skip to content

Brainlife.io app for Noah Benson's neuropythy library, retinotopy from T1 anatomy

License

Notifications You must be signed in to change notification settings

davhunt/app-benson14-retinotopy

Repository files navigation

Abcdspec-compliant Run on Brainlife.io

Map pRFs in visual cortex with anatomy

This app performs a retinotopic mapping in visual areas V1, V2, and V3, as well as higher-order visual areas, from an anatomical (T1-weighted MRI) image, using the neuropythy python library by Noah Benson (github.com/noahbenson/neuropythy).

An group-derived, anatomically-defined template is fit to the subject's T1 anatomy, while correcting for distortions caused by cortical folding, to provide retinotopic maps in V1, V2, and V3, as well as mapping further visual areas included in key.txt. The measures are outputted in the brain volume (.nii.gz) as well as on the cortical surface (freesurfer .curv format as well as .gii.gz format).

pRF measures include: polar angle: the location of the receptive field in polar coordinates (from the upper vertical meridian at 0° to the lower vertical meridian at 180°) eccentricity: the deviation of the center of the receptive field from the fovea (in degrees) receptive field width: the size of the voxel's receptive field (the standard deviation of the receptive field's 2d isotropic Gaussian) visual area: the voxel's predicted visual area (1-12, key found in ./varea/key.txt)

prf_measures Shows maps in several visual areas of polar angle, left, and eccentricity, right

screen Visualized on Brainlife

Authors

Project director

Funding Acknowledgement

brainlife.io is publicly funded and for the sustainability of the project it is helpful to Acknowledge the use of the platform. We kindly ask that you acknowledge the funding below in your publications and code reusing this code.

NSF-BCS-1734853 NSF-BCS-1636893 NSF-ACI-1916518 NSF-IIS-1912270 NIH-NIBIB-R01EB029272

Citations

We kindly ask that you cite the following articles when publishing papers and code using this code.

  1. Benson, N. C., Butt, O. H., Datta, R., Radoeva, P. D., Brainard, D. H., & Aguirre, G. K. (2012). The retinotopic organization of striate cortex is well predicted by surface topology. Current Biology, 22(21), 2081-2085. https://doi.org/10.1016/j.cub.2012.09.014

  2. Benson, N. C., Butt, O. H., Brainard, D. H., & Aguirre, G. K. (2014). Correction of distortion in flattened representations of the cortical surface allows prediction of V1-V3 functional organization from anatomy. PLoS Comput Biol, 10(3), e1003538. https://doi.org/10.1371/journal.https://doi.org/10.1371/journal.pcbi.1003538pcbi.1003538

  3. Avesani, P., McPherson, B., Hayashi, S. et al. The open diffusion data derivatives, brain data upcycling via integrated publishing of derivatives and reproducible open cloud services. Sci Data 6, 69 (2019). https://doi.org/10.1038/s41597-019-0073-y

MIT Copyright (c) 2020 brainlife.io The University of Texas at Austin and Indiana University

Running the App

On Brainlife.io

You can submit this App online at https://doi.org/10.25663/brainlife.app.187 via the "Execute" tab.

Running Locally (on your machine)

  1. git clone this repo.
  2. Inside the cloned directory, create config.json with something like the following content with path to your freesurfer subject directory.
{
        "freesurfer": "./freesurfer/subjects/bert"
}
  1. Launch the App by executing main
./main

Sample Datasets

If you don't have your own freesurfer subject, you can download sample datasets from Brainlife.io, or you can use Brainlife CLI.

npm install -g brainlife
bl login
mkdir input
bl dataset download 598a2aa44258600aa3128fd4 && mv -R 598a2aa44258600aa3128fd4 input/output

Output

All output files will be generated under the current working directory (pwd). The main output of this App is the directory prf, which contains the population receptive field measures polarAngle, eccentricity, rfWidth, and varea in the brain volume (*.nii.gz) as well as on the cortical surface (lh.polarAngle, etc) in freesurfer .curv format and gifti format.

    .
    ├── prf                     # Contains all pRF measures
    │   ├── polarAngle.nii.gz
    │   ├── eccentricity.nii.gz
    │   ├── rfWidth.nii.gz
    │   ├── varea.nii.gz
    │   ├── surfaces            # White, pial, inflated, and sphere surfaces in .vtk
    │   │   ├── lh.white.vtk
    │   │   ├── rh.white.vtk
    │   │   ├── ...
    │   ├── prf_surfaces        # pRF measures projected onto .vtk surfaces
    │   │   ├── lh.polarAngle
    │   │   ├── rh.polarAngle
    │   │   ├── ...
    ├── varea                   # Volumetric parcellation of brain into visual areas
    │   ├── key.txt
    │   ├── label.json
    │   ├── parc.nii.gz
    ├── varea_surf              # Surface/cortical parcellation into visual areas
    │   ├── key.txt
    │   ├── label.json
    │   ├── lh.parc.annot.gii
    └   └── rh.parc.annot.gii

Dependencies

This App only requires singularity to run.

MIT Copyright (c) 2020 brainlife.io The University of Texas at Austin and Indiana University

About

Brainlife.io app for Noah Benson's neuropythy library, retinotopy from T1 anatomy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published