-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmriqc_array_example.sh
37 lines (31 loc) · 1.11 KB
/
mriqc_array_example.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
37
#!/bin/bash
#SBATCH -N 1
#SBATCH -c 2
#SBATCH --mem=24G
#SBATCH --time 01:00:00
#SBATCH -J mriqc
#SBATCH --output /gpfs/scratch/%u/mriqc-log%A_%a.out
#SBATCH --array=1
#---------CONFIGURE THESE VARIABLES--------------------
bids_root=/gpfs/data/nmclaugh/conte #the study folder
nthreads=2
mem=24 #gb
#---------END OF VARIABLES-----------------------------
#-----DICTIONARIES FOR SUBJECT SPECIFIC VARIABLES------
mriqc="`sed -n ${SLURM_ARRAY_TASK_ID}p subjects300.txt`"
echo $mriqc
#--------------------RUN MRIQC-------------------------
singularity run --cleanenv \
--bind ${bids_root}:/data \
--bind /gpfs/scratch/$USER:/scratch \
/gpfs/data/bnc/simgs/poldracklab/mriqc-0.16.1.sif \
/data/rawdata \
/data/derivatives/mriqc \
participant --participant_label $mriqc \
--no-sub \
--n_proc $nthreads \
--mem_gb $mem \
--float32 \
--ants-nthreads $nthreads \
-m T1w bold \
-w /scratch/$mriqc