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 10, 2019 03:13PM
Hello,

Sorry for being slow to reply.

There might be 2 reasonable ways to do this. But to be sure, if the onset is at time t=0 and the duration is 5s, for example, you are hoping to model a square wave from what, 4-12s?

In any case 3dDeconvolve has an 'EXPR()' basis function, though it does not incorporate duration modulation.

To make a simple square wave, consider "timing_tool.py -timing_to_1D". That gives a lot of control, such as the TR, the fraction of the TR that would lead to a '1' in the output, and varying run lengths. Please see examples 6a, b and c from timing_tool.py -help.

- rick
Subject Author Posted

square-wave response model (no convolution) by reading stimtimes from a file?

freund November 26, 2019 09:27AM

Re: square-wave response model (no convolution) by reading stimtimes from a file?

freund December 06, 2019 10:42AM

Re: square-wave response model (no convolution) by reading stimtimes from a file?

gang December 06, 2019 11:24AM

Re: square-wave response model (no convolution) by reading stimtimes from a file?

rick reynolds December 10, 2019 03:13PM