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  

|
November 09, 2004 12:52PM
Hi Jim,

I do not believe there is an command-line version of the reorder
plugin. Therefore you might have to do some scripting to reorder
and average the sub-bricks, based on the contents of the map file.

So I was picturing something like this:

set trs_per_cond = 12
foreach cond ( A B C ... )
foreach index ( `count -digits 1 1 $trs_per_cond` )
set pattern = $cond$index
3dMean -prefix mean.$cond.$index EPI_dset+orig\[`awk ... SEE OTHER DISCUSSION
end
3dTcat -prefix ave_$cond mean.$cond.*+orig.HEAD
end

That's a little more work than the plugin, but it could be made
generic for a subject list very easily. The 'SEE OTHER DISCUSSION'
section would be just extracting the sub-bricks matching your
$pattern (the condition and index).

Note that if $trs_per_cond is more than 9, the 3dMean output
might have to be changed because the datasets will no longer
be alphabetical (according to the index, since mean.A.10+orig
comes before mean.A.2+orig, for example).

Anyway, it's just an option that you can ponder.

- rick

Subject Author Posted

Command line reorder dataset?

Jim Bjork November 09, 2004 11:34AM

Re: Command line reorder dataset?

rick reynolds November 09, 2004 12:00PM

Re: Command line reorder dataset?

Jim Bjork November 09, 2004 12:26PM

Re: Command line reorder dataset?

rick reynolds November 09, 2004 12:52PM