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 02, 2005 03:05PM
Then let me assume that you used the GAM curve in waver, with
peak 1. Let me further assume that the beta coefficient that
you want to use resides in sub-brick 3 of func_slim+orig.

Try:

waver -GAM -tstim 0 -dt 1 -peak 1 > wav.1D
3dcalc -a wav.1D -b func_slim+orig\[3] -expr 'a*b' -prefix resp_3

The waver command creates a GAM curve of height 1 from a
stimulus at time=0 with 13 values of output (time = 0..12
seconds). The 3dcalc command will multiply those 13 values
by the beta weights from sub-brick 3 of your func_slim+orig
dataset.

This gives you a 13 sub-brick response curve for that
particular regressor, where sub-brick zero is always all
zeros (since the GAM curve is 0 at t=0).

Curves for other regressors just need additional 3dcalc
commands, grabbing the correct sub-brick from func_slim:

3dcalc -a wav.1D -b func_slim+orig\[3] -expr 'a*b' -prefix resp_3
3dcalc -a wav.1D -b func_slim+orig\[6] -expr 'a*b' -prefix resp_6
3dcalc -a wav.1D -b func_slim+orig\[9] -expr 'a*b' -prefix resp_9

Only the sub-brick selector and prefix are changing for this.

Just recall that the only thing that 3dDeconvolve gave you
was the height of the curve. The shape is assumed.

- rick

Subject Author Posted

time course data using waver in 3dDeconvolve

Ikuko Mukai December 02, 2005 01:10PM

Re: time course data using waver in 3dDeconvolve

rick reynolds December 02, 2005 02:25PM

Re: time course data using waver in 3dDeconvolve

Ikuko Mukai December 02, 2005 02:45PM

Re: time course data using waver in 3dDeconvolve

rick reynolds December 02, 2005 03:05PM