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  

|
January 31, 2020 06:44PM
Hi Nicole,

Sorry this is so much trouble. This command is more readable with the file names. In fact, I can run your exact command without any errors (using local files that match yours). Is there anything else to the script? Is this the exact command in your script?


Regarding ggc.py, I did not think it through. That tool is set up to take inputs where all sub-bricks for one subject are in a single dataset. So it might be easiest to start with the more original datasets. But just to demonstrate, consider this tcsh script to first copy the data to a new directory and new files, then run gen_group_command.py on it.

# -------------------------------------------------------
# make bucket datasets in a new directory
set newdir = data.buckets
mkdir $newdir

set slist = ( `\ls -1 p[0-9]*+tlrc.HEAD | awk -F_ '{print $1}' | sort | uniq` )
set ltext = 'DN,DW,DL,LN,LW,WN'

foreach sid ( $slist )
   3dbucket -prefix $newdir/${sid}_all ${sid}_{$ltext}+tlrc.HEAD
end

cd $newdir

# -------------------------------------------------------
# create a 3dANOVA2 command script
gen_group_command.py -command 3dANOVA2          \
         -write_script cmd.3dANOVA2             \
         -dsets *.HEAD -subs_betas 0 1 2 3 4 5

You can use -options to add on to that in the ggc.py command, or you can just edit the script to add -adiff and related options.

Note that in your command, the order of the datasets does not quite match the order applied in -amean and -adiff options. The files come as DN DW DL LN LW WN, so some of those need adjusting.

Does that sound easier? At least it would give you a script to start with. You can use labels for -subs_betas, to use something more clear than 0 1 2 3 4 5.

- rick
Subject Author Posted

3dANOVA fatal error

nstuart January 10, 2020 12:06PM

Re: 3dANOVA fatal error

rick reynolds January 12, 2020 12:58PM

Re: 3dANOVA fatal error

nstuart January 17, 2020 11:22AM

Re: 3dANOVA fatal error

nstuart January 17, 2020 12:45PM

Re: 3dANOVA fatal error

rick reynolds January 18, 2020 04:13PM

Re: 3dANOVA fatal error

nstuart January 21, 2020 11:37AM

Re: 3dANOVA fatal error

rick reynolds January 21, 2020 02:32PM

Re: 3dANOVA fatal error

nstuart January 24, 2020 11:09AM

Re: 3dANOVA fatal error

nstuart January 24, 2020 11:58AM

Re: 3dANOVA fatal error

rick reynolds January 24, 2020 03:46PM

Re: 3dANOVA fatal error

nstuart January 31, 2020 11:37AM

Re: 3dANOVA fatal error

rick reynolds January 31, 2020 06:44PM

Re: 3dANOVA fatal error

nstuart February 07, 2020 10:57AM

Re: 3dANOVA fatal error

nstuart February 07, 2020 11:02AM

Re: 3dANOVA fatal error

rick reynolds February 07, 2020 12:36PM

Re: 3dANOVA fatal error

nstuart February 14, 2020 11:02AM

Re: 3dANOVA fatal error

rick reynolds February 14, 2020 12:43PM

Re: 3dANOVA fatal error

nstuart February 27, 2020 10:36AM

Re: 3dANOVA fatal error

nstuart February 27, 2020 11:34AM

Re: 3dANOVA fatal error

rick reynolds February 27, 2020 01:53PM

Re: 3dANOVA fatal error

nstuart February 28, 2020 10:09AM

Re: 3dANOVA fatal error

rick reynolds February 28, 2020 10:28AM

Re: 3dANOVA fatal error

nstuart February 28, 2020 10:49AM

Re: 3dANOVA fatal error

rick reynolds February 28, 2020 01:25PM