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  

|
Daniel Glen
September 24, 2009 05:04PM
I'm not sure I understand everything you want, but as a start, you could take a look at this previous related posting:

[afni.nimh.nih.gov]
<[afni.nimh.nih.gov];

The script there takes a list of 0's and 1's to identify sub-bricks to include in an output dataset. It does this by generating a sub-brick list that is then used as part of the dataset name. In your case, you could use 3dTstat to combine the specified subbricks into a an average dataset for each event type. Basically, you end up doing something like this for each type :

3dTstat -mean -prefix avg_typeA dset+orig'[1,3,5]'

If you want to then combine the averaged types back into a single dataset, you could do that with

3dTcat -prefix avg_all_types avg_type?+orig.HEAD

You can also take a look at this previous posting that also discusses a similar question.

[afni.nimh.nih.gov]
<[afni.nimh.nih.gov];

Hope these help.
Subject Author Posted

Is there a script-based method for reordering 3d+time datasets with a mapfile?

Jim Bjork September 24, 2009 09:37AM

Re: Is there a script-based method for reordering 3d+time datasets with a mapfile?

Daniel Glen September 24, 2009 05:04PM

Re: Is there a script-based method for reordering 3d+time datasets with a mapfile?

rick reynolds September 29, 2009 09:04AM