Skip to content

Repository containing code for the paper "Shared neural codes for visual and semantic information about familiar others in a common representational space"

License

Notifications You must be signed in to change notification settings

mvdoc/identity-decoding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shared neural codes for visual and semantic information about familiar faces in a common representational space

This repository contains the code for the analyses reported in Shared neural codes for visual and semantic information about familiar faces in a common representational space by Matteo Visconti di Oleggio Castello, James V. Haxby, & M. Ida Gobbini published in the Proceedings of the National Academy of Sciences.

The reference for the associated publication is

Visconti di Oleggio Castello, M., Haxby, J. V., & Gobbini, M. I. Shared neural codes for visual and semantic information about familiar faces in a common representational space Proceedings of the National Academy of Sciences (2021). https://doi.org/10.1073/pnas.2110474118

This repository can be cited as

Visconti di Oleggio Castello, M., Haxby, J. V., & Gobbini, M. I. (2021). mvdoc/identity-decoding. Zenodo. https://doi.org/10.5281/zenodo.5645003

DOI

Disclaimer & how to get help

These scripts are shared in a format that is suitable for archival and review. All analyses were run inside a singularity container (shared in the current repository) on a local cluster and on Discovery, Dartmouth's HPC cluster. The paths listed in these scripts need to be modified in order to run the scripts on a different system.

If you have any questions related to the code, please open an issue in this repository or contact us via email (see corresponding author in the publication).

Data

The raw data is available on OpenNeuro as the dataset ds003834: https://openneuro.org/datasets/ds003834. If you use the data, please cite the corresponding publication:

Visconti di Oleggio Castello, M., Haxby, J. V., & Gobbini, M. I. Shared neural codes for visual and semantic information about familiar faces in a common representational space. Proceedings of the National Academy of Sciences (2021). https://doi.org/10.5281/zenodo.5645003

Repository structure

  • singularity contains code to generate the singularity image that was used to run all analyses
  • src contains a python package (famfaceangles) containing various general functions used in the analysis scripts
  • scripts contains the scripts used for the analyses reported in the manuscript

In the following sections we describe each file in detail.

singularity

This folder contains the following files

  • Singularity-neurodocker: a singularity definition file for the image used in all analyses
  • create-image.sh: a bash script to generate the singularity image. Note that the syntax used in this script is for singularity versions 2.X. New versions of singularity will need a different syntax, and they have not been tested with this definition file.

src

This folder contains the python package famfaceangles with helper functions used in the analysis scripts. It can be installed as any other python package (e.g., pip install -e src)

scripts

This folder contains the following scripts

Preprocessing

Hyperalignment

GLM

MVPA

Between-subject searchlight decoding

Between-subject ROI decoding

Within-subject searchlight decoding

Cross-validated RSA

Statistics

Permutation testing for between-subject MVPC

Threshold-Free Cluster Enhancement for within-subject MVPC and RSA

Visualization

Acknowledgements

This work was supported by the NSF grant #1835200 to M. Ida Gobbini. We would like to thank Swaroop Guntupalli, Yaroslav Halchenko, Carlo Cipolli, and the members of the Gobbini and Haxby lab for helpful discussions during the development of this project.

About

Repository containing code for the paper "Shared neural codes for visual and semantic information about familiar others in a common representational space"

Resources

License

Stars

Watchers

Forks