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
August 05, 2003 09:46AM
As it happens, AFNI programs (besided the interactive AFNI itself, that is) can already read .1D files in and treat them as datasets. The way it works is:
* Each column is one sub-brick.
* The default is that multiple column datasets become bucket datasets.
Today I added the feature that
* If environment variable AFNI_1D_TIME is YES, then multi-column .1D files become 3D+time datasets instead (with TR set to 1 second).

So to do what you want, you can do something like so

setenv AFNI_1D_TIME YES
1dtranspose VP1.1D - > VP1_x.1D
3dFourier -prefix QQ_x -lowpass .1 -retrend VP1_x.1D
1dtranspose QQ_x.1D > QQ.1D
1dplot VP1.1D QQ.1D

1dtranspose is necessary to take a normal .1D file (one column, many rows) and turn it into a 1 row, many column file. Then 3dFourier will produce another such file, and 1dtranspose will turn it back into the 1 column format.

To do this, you'll have to download the latest AFNI. The source code distribution is updated now (9:40 EDT), and I'm compiling some binaries at this time.

bob cox

P.S. The main application of treating 1D files as datasets is actually to be able to use the stats programs (3dANOVA, etc.) on datasets defined over surfaces. In this case, each row contains the values of the dataset at the corresponding surface node. We haven't really documented this yet, since not all the mechanism is in place for reading such datasets into SUMA, etc.
Subject Author Posted

3dFourier

Philippe Goldin August 04, 2003 08:05PM

Re: 3dFourier

bob cox August 05, 2003 09:46AM