FSL analysis with NiPype
FawN is a collection of NiPype workflows for building FSL-style fMRI analyisis pipelines.
Currently available workflows:
- "resampling"
Resample images into size of reference image - "timecourse_extraction"
Extract timecourses from binary masks - "first_level"
Analysis of single functional runs - "session_level"
Analysis across all functional runs (average) of a single session (convenience workflow) - "higher_level"
Analysis across runs/sessions/subject - "thresholding"
Thresholding of results on voxel-level (FWE corrected) and cluster-level
The workflows expect preprocessed images (see also https://github.com/can-lab/finish-the-job).
- Install FSL
- Install nipype with
pip3 install nipype fslpy
- Download FawN
- Install with
(replace X.X.X with latest release version)
pip3 install FawN-X.X.X.zip
If you are working on the compute cluster of the Donders Institute, please follow the following steps:
- Load Anaconda3 module by running command:
module load anaconda3
- Create new environment in home directory by running command:
cd && python3 -m venv fawn_env
- Activate new environment by running command:
source fawn_env/bin/activate
- Install Nipype into environment by running command:
pip3 install nipype fslpy
- Download FawN
- Install with
(replace X.X.X with latest release version)
pip3 install FawN-X.X.X.zip
See examples.
If you are working on the compute cluster of the Donders Institute, please follow the following steps:
- Start a new interactive job by running command:
qsub -I -l 'procs=8, mem=64gb, walltime=24:00:00'
- Load Anaconda3 module by running command:
module load anaconda3
- Activate environment by running command:
source fawn_env/bin/activate
- Write script
mystudy_fawn.py
(see examples) - Run script by running command:
python3 mystudy_fawn.py