-
Notifications
You must be signed in to change notification settings - Fork 0
/
@epi_review.sub-002
executable file
·80 lines (57 loc) · 2.35 KB
/
@epi_review.sub-002
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/bin/tcsh
# ------------------------------------------------------
# review EPI data via 'afni' and 'plugout_drive'
# note that when running this script, prompts to change
# datasets will appear in the terminal window
# ------------------------------------------------------
# set the list of datasets
set dsets = ( pb00.sub-002.r01.tcat pb00.sub-002.r02.tcat \
pb00.sub-002.r03.tcat )
# ------------------------------------------------------
# verify that the input data exists
if ( ! -f $dsets[1]+orig.HEAD ) then
echo "** missing data to review (e.g. $dsets[1])"
exit
endif
# ------------------------------------------------------
# start afni is listening mode, and take a brief nap
afni -yesplugouts &
sleep 5
# ------------------------------------------------------
# tell afni to load the first dataset and open windows
plugout_drive \
-com "SWITCH_UNDERLAY pb00.sub-002.r01.tcat" \
-com "OPEN_WINDOW sagittalimage \
geom=300x300+420+400" \
-com "OPEN_WINDOW axialimage \
geom=300x300+720+400" \
-com "OPEN_WINDOW sagittalgraph \
geom=400x300+0+400" \
-quit
sleep 2 # give afni time to open the windows
# ------------------------------------------------------
# process each dataset using video mode
foreach dset ( $dsets )
plugout_drive \
-com "SWITCH_UNDERLAY $dset" \
-com "OPEN_WINDOW sagittalgraph \
keypress=a \
keypress=v" \
-quit
sleep 2 # wait for plugout_drive output
echo ""
echo "++ now viewing $dset, hit enter to continue"
set ret = $< # wait for user to hit enter
end
# ------------------------------------------------------
# stop video mode when the user is done
plugout_drive -com "OPEN_WINDOW sagittalgraph keypress=s" -quit
sleep 2 # wait for plugout_drive output
echo ""
echo "data review complete"
# ----------------------------------------------------------------
# auto-generated by gen_epi_review.py, version 0.4, Apr 24, 2018
#
# gen_epi_review.py -script @epi_review.sub-002 -dsets \
# pb00.sub-002.r01.tcat+orig.HEAD pb00.sub-002.r02.tcat+orig.HEAD \
# pb00.sub-002.r03.tcat+orig.HEAD