This is the code accompanying the paper "Disentangled deep generative models reveal coding principles of the human face processing network" by Paul Soulos and Leyla Isik.
The data is available on OSF. Please unzip the archive, there is a README in the archive that explains the data structure.
The matlab code requires Fieldtrip for processing the fMRI data.
Encoding performance values are generated by correlate_betas.py
and correlate_betas_vgg.py
using the argument
--localizer=roi
. The results can be visualized using notebooks/data plots.ipynb
.
Encoding performance values are generated by correlate_betas.py
and correlate_betas_vgg.py
using the argument
--localizer=score
. The resulting correlation mat file can be converted to nifti using
convert_whole_brain_correlation_mat_to_nifti.m
and viewed using Freesurfer.
The ROI preference map data is generated using preference_mapping_roi.m
. The results can be visualized using
notebooks/encoding feature performance.ipynb
.
The identity decoding accuracies are generated by identity_decoding_whole_brain_xhat.m
. The results can be visualized
using notebooks/identity decoding.ipynb
.
See the section titled "Whole brain encoding performance (Figure 4)".
The ROI preference map data is generated using preference_mapping_roi.m
. The results can be visualized using
notebooks/encoding feature performance.ipynb
.
The nifti files for the whole brain preference mapping are generated by whole_brain_preference_mapping.m
. This nifti
file can be viewed using Freesurfer.