File tree 1 file changed +49
-0
lines changed
1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ subject=$1
4
+
5
+ # User inputs:
6
+ bids_root_dir=$HOME /Desktop/Flanker
7
+ subj=$subject
8
+ nthreads=4
9
+ mem=20 # gb
10
+ container=docker # docker or singularity
11
+
12
+ # Begin:
13
+
14
+ # Convert virtual memory from gb to mb
15
+ mem=` echo " ${mem// [!0-9]/ } " ` # remove gb at end
16
+ mem_mb=` echo $(( (mem* 1000 )- 5000 )) ` # reduce some memory for buffer space during pre-processing
17
+
18
+ # export TEMPLATEFLOW_HOME=$HOME/.cache/templateflow
19
+ export FS_LICENSE=$HOME /Desktop/Flanker/derivatives/license.txt
20
+
21
+ # Run fmriprep
22
+ if [ $container == singularity ]; then
23
+ unset PYTHONPATH; singularity run -B $HOME /.cache/templateflow:/opt/templateflow $HOME /fmriprep.simg \
24
+ $bids_root_dir $bids_root_dir /derivatives \
25
+ participant \
26
+ --participant-label $subj \
27
+ --skip-bids-validation \
28
+ --md-only-boilerplate \
29
+ --fs-license-file $HOME /Desktop/Flanker/derivatives/license.txt \
30
+ --fs-no-reconall \
31
+ --output-spaces MNI152NLin2009cAsym:res-2 \
32
+ --nthreads $nthreads \
33
+ --stop-on-first-crash \
34
+ --mem_mb $mem_mb \
35
+ -w $HOME
36
+ else
37
+ fmriprep-docker $bids_root_dir $bids_root_dir /derivatives \
38
+ participant \
39
+ --participant-label $subj \
40
+ --skip-bids-validation \
41
+ --md-only-boilerplate \
42
+ --fs-license-file $HOME /Desktop/Flanker/derivatives/license.txt \
43
+ --fs-no-reconall \
44
+ --output-spaces MNI152NLin2009cAsym:res-2 \
45
+ --nthreads $nthreads \
46
+ --stop-on-first-crash \
47
+ --mem_mb $mem_mb \
48
+ -w $HOME
49
+ fi
You can’t perform that action at this time.
0 commit comments