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  

|
November 28, 2014 10:25AM
If you wanted to do multiple sessions within the same Xvfb instance, you can do something like:

`which Xvfb` :1 -screen 0 1024x768x24 &

export AFNI_DETACH=NO
parentDir=`pwd`
mkdir snapshots

for aSubject in Subject01 Subject02 Subject03
do
	cd $aSubject/$aSubject.results
	centerC=`3dCM anat_final.${aSubject}+tlrc`; #get center of anatomical

	DISPLAY=:1 afni -com "OPEN_WINDOW A.axialimage  mont=4x4:3 geom=600x600+800+600" \
	-com "SWITCH_UNDERLAY anat_final.${aSubject}+tlrc" \
	-com "SWITCH_OVERLAY stats.${aSubject}+tlrc" \
	-com "SET_DICOM_XYZ A ${centerC}" \
	-com "SET_SUBBRICKS A -1 13 14" \
	-com "SET_THRESHNEW A .001 *p" \
	-com "SAVE_JPEG A.axialimage ${parentDir}/snapshots/${aSubject}_condition1.jpg" \
	-com "SET_SUBBRICKS A -1 16 17" \
	-com "SET_THRESHNEW A .001 *p" \
	-com "SAVE_JPEG A.axialimage ${parentDir}/snapshots/${aSubject}_condition2.jpg" \
	-com "SET_SUBBRICKS A -1 19 20" \
	-com "SET_THRESHNEW A .001 *p" \
	-com "SAVE_JPEG A.axialimage ${parentDir}/snapshots/${aSubject}_condition3.jpg" \
	-com "QUIT"   
	
	cd $parentDir
done

killall Xvfb #shuts down the instance



Edited 1 time(s). Last edit at 11/28/2014 10:39AM by Peter Molfese.
Subject Author Posted

drive AFNI in Xvfb mode requires no_detach

bernhard November 26, 2014 05:28AM

Re: drive AFNI in Xvfb mode requires no_detach

Emperor Zhark November 27, 2014 03:21PM

Re: drive AFNI in Xvfb mode requires no_detach

Peter Molfese November 28, 2014 10:25AM