forked from kellyuw/STAR-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
slurm_fmriprep.sh
36 lines (25 loc) · 1.36 KB
/
slurm_fmriprep.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
36
#!/bin/bash
#SBATCH --job-name=fmriprep
#SBATCH --output=fmriprep_logs/%x_%j.out
#SBATCH --error=fmriprep_logs/%x_%j.err
#SBATCH --time=02-00:30:30
#SBATCH -n 1
#SBATCH --cpus-per-task=8
#SBATCH --mem-per-cpu=4G
#SBATCH --partition=ncf
set -aeuxo pipefail
SUBJECT=$1
VERSION=20.1.1
pushd /mnt/stressdevlab/STAR
#Make working directory
mkdir -p /ncf/mclaughlin/STAR_fmriprep_tmp_jcf/${SUBJECT}
#Main singularity command
singularity run --cleanenv -B /ncf/mclaughlin/STAR_fmriprep_tmp_jcf/${SUBJECT}:/work -B /mnt/stressdevlab/STAR /mnt/stressdevlab/scripts/Containers/fmriprep-${VERSION}.simg/ --ignore slicetiming --participant-label ${SUBJECT} -vvv --omp-nthreads 4 --nthreads 6 -w /work --return-all-components --fd-spike-threshold 0.5 --fs-license-file /mnt/stressdevlab/STAR/derivatives/license.txt --fs-subjects-dir /mnt/stressdevlab/STAR/derivatives/fmriprep-${VERSION}/freesurfer --cifti-output 91k --output-spaces MNI152NLin6Asym:res-2 MNI152NLin2009cAsym fsnative MNIPediatricAsym:cohort-1:res-2 --skip-bids-validation /mnt/stressdevlab/STAR /mnt/stressdevlab/STAR/derivatives/fmriprep-${VERSION} participant
popd
set +eu
source PYTHON_MODULES.txt
set -eu
for i in `ls /mnt/stressdevlab/STAR/derivatives/fmriprep-20.1.1/fmriprep/sub-${1}/func/sub-${1}_task*desc-confounds_regressors.tsv`; do
echo "python filter_confounds.py ${i}"
python filter_confounds.py ${i}
done