AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
December 15, 2014 11:17AM
Hi all,

I'm trying to do a drive afni script that allows me to quickly review the results of the alignments of preprocessing.
To make things simpler, I copied all datasets I want to review into one folder. Basically, the script needs to switch the underlay and overlay volumes for each subject in the original space and tlrc space, and waits for the user to press ENTER to continue. See below my script. Although the script opens AFNI, it seems the plugout_drive commands are not done, neither the loop for the subjects.

Do you know what the problem could be? Any suggestions?

FYI, I'm using bash shell.

Thanks very much in advance,
Cesar


------------------------------

#!/bin/bash

## full/path/to/site/subject_list

subjects_list=subjects_list_APQ
align_dir=./review_align

## Get subjects to run
subjects=$(cat ${subjects_list})

cd ${align_dir}

# open AFNI

afni -niml -yesplugouts &

for subject in $subjects
do

echo "Press ENTER to see ORIG alignments for subject ${subject}"
set l = $<

plugout_drive \
-com "SWITCH_UNDERLAY A t1_${subject}_unif_al_epi+orig" \
-com "SWITCH_OVERLAY A pb03.${subject}.volreg+orig" \
-com 'OPEN_WINDOW A.axialimage mont=10x10:1 opacity=0.4 ifrac=1' \
-quit

echo "Press ENTER to see TRLC alignments for subject ${subject}"
set l = $<

plugout_drive -com "SWITCH_UNDERLAY A TT_N27+tlrc" \
-com "SWITCH_OVERLAY A pb03.${subject}.volreg+tlrc" \
-com 'OPEN_WINDOW A.axialimage mont=10x10:1 opacity=0.4 ifrac=1' \
-quit

done

# close AFNI

echo "Hit Enter to Quit AFNI"
set l = $<
plugout_drive -com 'QUIT' \
-quit
Subject Author Posted

drive AFNI script to visualize results of alignment

Cesar Caballero Gaudes December 15, 2014 11:17AM

Re: drive AFNI script to visualize results of alignment

Peter Molfese December 15, 2014 11:22AM

Re: drive AFNI script to visualize results of alignment

Cesar Caballero Gaudes December 16, 2014 10:02AM