fmriprep
a BIDS app that runs a standardized and reproducible preprocessing pipeline on structural and functional MRI data
Running fmriprep
1. Write a batch script
#!/bin/bash
#SBATCH -N 1
#SBATCH -c 8
#SBATCH --mem=32G
#SBATCH --time 18:00:00
#SBATCH -J fmriprep
#SBATCH --output fmriprep-log-%J.txt
#SBATCH --mail-user [email protected]
#SBATCH --mail-type ALL
#---------CONFIGURE THESE VARIABLES--------------
export_dir=/oscar/data/<group>/<user>/xnat-exports/bnc/study-demodat
participant_label=005
fmriprep_version=24.1.0
#---------END OF VARIABLES------------------------
singularity run --cleanenv \
--bind ${export_dir}:/data \
--bind /oscar/scratch/${USER}:/scratch \
--bind /oscar/data/bnc/licenses:/licenses \
/oscar/data/bnc/simgs/nipreps/fmriprep-${fmriprep_version}.sif \
/data/bids /data/bids/derivatives/fmriprep-${fmriprep_version} \
participant --participant-label ${participant_label} \
--output-spaces T1w MNI152NLin2009cAsym MNI152NLin6Asym:res-2 \
--fs-license-file /licenses/freesurfer-license.txt \
-w /scratch/fmriprep \
--omp-nthreads 16 --nthreads 16 --stop-on-first-crash
✋Understanding the batch script
2. Run the batch script
Getting a different version than what is installed in Oscar.
Last updated
Was this helpful?