-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a5ee5ce
Showing
616 changed files
with
42,320 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
Oops, something went wrong.