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  

|
March 19, 2018 09:05AM
Hi Roxana,

Here are some options to ponder...

# ======================================================================
You can access dataset volumes using the integral index
(zero-based) or using labels (as seen in 3dinfo or the
afni GUI). For example, to extract the response to the
'pickles' condition (assuming it is as index 17):

3dbucket -prefix betas.pickles.subj1234 stats.subj1234+tlrc"[17]"

or via labels and a $subj variable name (the full label
for the 'pickles' beta is probably pickles#0_Coef):

set subj = subj1234
set cond = pickles
3dbucket -prefix betas.cond.$subj stats.$subj+tlrc"[$cond#0_Coef]"

# ======================================================================
Or you could extract them using a long path:

set subj = subj1234
set studydir = /some/path/to/main/study
set subjroot = $studydir/subjects

3dttest++ ....
   subj1234 $subjroot/subj1234.results/stats.subj1234+tlrc"[$cond#0_Coef]"

# ======================================================================
Or you could initiate such a command using gen_group_command.py:


gen_group_command.py -command 3dttest++ \
  -dsets $subjroot/subj*.results/stats.subj*+tlrc.HEAD  \
  -subs_betas 'pickles#0_Coef'

# ======================================================================
For more info, see the output of:
3dcalc -help
gen_group_command -help

- rick
Subject Author Posted

group analysis 101

rast March 16, 2018 03:07PM

Re: group analysis 101

rick reynolds March 19, 2018 09:05AM