Skip to content

Analysis code from the fMRI project on observational learning of fear from friends and strangers.

Notifications You must be signed in to change notification settings

nencki-lobi/emocon-mri

Repository files navigation

Emotional Contagion MRI study

Folders

  • docs: practical notes made for internal use, may be useful in general
  • prep: scripts used in preprocessing, as reference
  • pspm: psychophysiological (skin conductance responses) analysis in PsPM (Matlab)
  • spm/complete: fMRI analysis in SPM (Matlab)
  • stats: statistical analysis, figures (R / RMarkdown, mricrogl)
  • utils: various utility script used to handle data files, events, etc. (mostly Python)

Setting up

Python

Create a virtual environment and then install packages using the following command:

pip install -r requirements.txt

To install a kernel for this environment in jupyter, run:

python -m ipykernel install --user --name EmoConEnv --display-name "Python 3 (EmoCon)"

Detailed explanation here.

Matlab

PsPM toolbox version 4.2.0 is needed for physiological data analysis. SPM12 is needed for fMRI data analysis. Update revision number 7487 was used. BIDS-Matlab toolbox and ini2struct function are required by some scripts. They need to be added to the path. MATLAB R2020a was used for fMRI analysis; R2018b was used for psychophysiology.

General

In principle, scripts are expected to be executed from the directory they're in.

Troubleshooting

On Fedora 29, running files which were supposed to save feather files resulted in ImportError: pyarrow is not installed (even though if pyarrow was installed). Apparently this is not due to pyarrow itself and could be mitigated, according to this discussion by installing a system package libnsl:

dnf install libnsl

About

Analysis code from the fMRI project on observational learning of fear from friends and strangers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •