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  

|
bob cox
November 13, 2003 11:36AM
1) Do you have separate ANALYZE filepairs for each time point? Or one big 4D ANALYZE filepair?

2) If you have separate time points in files a037.hdr and a039.hdr (say), you could average them with 3dcalc, back into ANALYZE format, using commands like so

3dcalc -a a037.hdr -b a039.hdr -expr '(a+b)/2' -prefix ttt -nscale
3dAFNItoANALYZE -4D a038 ttt+orig
rm -f ttt+orig.*

3) If you have an AFNI 3D+time dataset, and wish to average time points 37 and 39 to replace time point 38 (say), you could do this with a sequence of commands like so

3dcalc -a 'dset+orig[37]' -b 'dset+orig[39]' -expr '(a+b)/2' -prefix t38 -nscale
3dTcat -prefix newdset 'dset+orig[0..37]' t38+orig 'dset+orig[39..$]'
rm -f t38+orig.*

Mutatis mutandum for your case, or for multiple time points that need to be replaced.

4) Both sets of commands above assume you are dealing with unscaled shorts in the input files -- the use of -nscale is to preserve the unscaled-ness.

5) Another option is to excise these data points from the analysis using the -censor option to 3dDeconvolve.

bob cox

Subject Author Posted

motion correction - spikes

Teodora November 11, 2003 02:50PM

Re: motion correction - spikes

bob cox November 12, 2003 09:00AM

Re: AFNI_ANALYZE_SCALE

Teodora November 12, 2003 02:43PM

Re: AFNI_ANALYZE_SCALE

bob cox November 13, 2003 11:36AM

Re: AFNI_ANALYZE_SCALE

Teodora November 13, 2003 01:07PM