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
March 23, 2006 11:01AM
Actually, I've figured out another way to do roughly the same thing. Try this in your script.

# 3dclust with whatever parameters you typically use
3dclust -nosum ... stats+orig > clust.1D
# count the number of rows actually containing the clusters
@ endrow = `wc clust.1D | awk '{print $1}'` - 11
# create a simple series of numbers in a row
count 1 $endrow > serialrow.1D
# transpose the row to column
1dtranspose serialrow.1D > serialcol.1D
# extract just the coordinates for the centers of mass for the clusters
# and add the serial column as an index for each cluster
# (only columns 1 to 3 starting in row 9 up to the end row)
1dcat 'clust.1D[1..3]{9..$}' serialcol.1D > clustcoords.1D
# create new dataset with spheres with a radius of 5 mm here around
# each coordinate
3dUndump -prefix clustspheres -master stats+orig -srad 5 -xyz clustcoords.1D
# Now compute the means for the spheres applied to the original dataset
3dROIstats -mask clustspheres+orig stats+orig > clustsphere_means.1D
Subject Author Posted

constraining cluster size for 3dmaskave

Agatha March 22, 2006 05:19PM

Re: constraining cluster size for 3dmaskave

Daniel Glen March 22, 2006 05:51PM

Re: constraining cluster size for 3dmaskave

Agatha March 22, 2006 06:01PM

Re: constraining cluster size for 3dmaskave

Daniel Glen March 23, 2006 11:01AM

Re: constraining cluster size for 3dmaskave

Daniel Glen March 23, 2006 01:53PM