-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfmriprep_singSubj.sh
36 lines (28 loc) · 970 Bytes
/
fmriprep_singSubj.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
#Template provided by Daniel Levitas of Indiana University
#Edits by Andrew Jahn, University of Michigan, 07.22.2020
#User inputs:
bids_root_dir=$HOME/BHS2023_Project_ADHD/data/ds002424/
subj=03
nthreads=4
mem=16 #gb
container=docker #docker or singularity
#Begin:
#Convert virtual memory from gb to mb
mem=`echo "${mem//[!0-9]/}"` #remove gb at end
mem_mb=`echo $(((mem*1000)-5000))` #reduce some memory for buffer space during pre-processing
#export TEMPLATEFLOW_HOME=$HOME/.cache/templateflow
#export FS_LICENSE=$HOME/Desktop/Flanker/derivatives/license.txt
#Run fmriprep
fmriprep-docker $bids_root_dir $bids_root_dir/derivatives \
participant \
--participant-label $subj \
--skip-bids-validation \
--task-id VLD\
--md-only-boilerplate \
--fs-license-file $HOME/license.txt \
--fs-no-reconall \
--output-spaces MNI152NLin2009cAsym:res-2 \
--nthreads $nthreads \
--stop-on-first-crash \
--mem_mb $mem_mb