forked from mvdoc/identity-decoding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make_fam-diff_bwsj_identity.sh
42 lines (34 loc) · 1.12 KB
/
make_fam-diff_bwsj_identity.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
38
39
40
41
#!/bin/bash
# setup singularity wrapper
IMGNAME="neurodocker.img"
#BASEDIR="/idata/DBIC/castello/famface_angles"
BASEDIR="/backup/users/contematto/famface_angles"
IMG=$BASEDIR/singularity/$IMGNAME
sing () {
singularity run \
-B /backup \
-e \
"$IMG" \
"$@"
}
DERIVDIR="$BASEDIR/derivatives103"
SLTYPE="slclfbwsbj-blockrun-deconvolve-hpalsid000005fsaverage6"
DERIVDIR="$DERIVDIR"/"$SLTYPE"
cd $DERIVDIR
sing \
'
BASEDIR="/backup/users/contematto/famface_angles"
DERIVDIR="$BASEDIR/derivatives103"
SLTYPE="slclfbwsbj-blockrun-deconvolve-hpalsid000005fsaverage6"
DERIVDIR="$DERIVDIR"/"$SLTYPE"
cd $DERIVDIR
for HEMI in L R; do
for PERM in `seq -w 0 50`; do
3dcalc \
-a "$DERIVDIR"/bwsbj_task-fam1back_space-hpalsid000005fsaverage6_hemi-"$HEMI"_target-fam-identity_sl_0"$PERM"ip.niml.dset \
-b "$DERIVDIR"/bwsbj_task-str1back_space-hpalsid000005fsaverage6_hemi-"$HEMI"_target-str-identity_sl_0"$PERM"ip.niml.dset \
-expr 'a-b' \
-prefix "$DERIVDIR"/bwsbj_space-hpalsid000005fsaverage6_hemi-"$HEMI"_target-diff-identity_sl_0"$PERM"ip.niml.dset
done
done
'