-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstartsuma.sh
More file actions
executable file
·22 lines (18 loc) · 961 Bytes
/
startsuma.sh
File metadata and controls
executable file
·22 lines (18 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
export specFile=${HOME}/standard/suma_mni/N27_both.spec
export t1image=${HOME}/standard/mni_icbm152_nlin_asym_09c/mni_icbm152_t1_tal_nlin_asym_09c_brain.nii
export t1image23=${HOME}/standard/mni_icbm152_nlin_asym_09c/mni_icbm152_t1_tal_nlin_asym_09c_brain_2.3mm.nii
# check all these files
for f in specFile t1image23 t1image; do
[ ! -r "${!f}" ] && echo "missing $f: ${!f}! copy from /opt/ni_tools/standard_templates/" >&2 && exit 1
done
afni -niml -yesplugouts -com "SET_UNDERLAY $t1image" -dset $t1image $t1image23 $@ &
suma -niml -spec $specFile -sv $t1image &
sleep 30
DriveSuma -com viewer_cont \
-key ctrl+left `#reorient the brain (all arrow keys), ctrl+[ or ] to toggle hemisphere` \
-key F3 `#toggles crosshair on/off` \
-key F6 `#toggles background black/white` \
-key:r:8 period `#changes brain display (reverse through with comma)`\
-key:r:3 z `# zooms out, Shift+z zooms in` \
-key:r:3 t