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  

|
April 20, 2006 09:36AM
I forgot to mention that if you use 3dTstat (or other 3d* programs) to generate a 1D file in place of a dataset, the top of the file will have some comments containing an XML description of the file. If you DON'T want these comment lines (which start with the '#' character), you can get rid of them by writing to stdout ('-prefix -') and redirecting the output to the desired file, as in

3dTstat -mean -stdev -prefix - fred.1D'[3..8]{5..9}' > jed.1D

Then the output file will be "pure" -- contain only numbers; in the example, 2 columns, the first being the mean of the numbers in columns #3..8 and the second being their standard deviation. AFNI programs won't care about the '#' comment lines, and will just skip over them. But if you are taking the .1D files into something else (Matlab? Excel?), then you probably don't want the commentary.

Another obscure feature: If you put a single ' character at the end of a .1D filestring THAT IS BEING INPUT AS A DATASET TO A 3d* PROGRAM, then the system will transpose the file on input. You could do this using the 1dtranspose program -- this method is just a shortcut. This transposition is done BEFORE any row/column selectors are applied, so the role of the row/column selectors is reversed with respect to the actual data file. Using this notation, the above example would become

3dTstat -mean -stdev -prefix - fred.1D'[3..8]{5..9}'\' > tjed.1D

which would presumably have very different outputs than the previous command. Note also that the final ' character had to be "escaped" using a backslash.

This "final ' means transpose input file" method does NOT apply to .1D files input to 1d* programs, or as .1D files in places that expect such things (e.g., 3dDeconvolve's -stim_file option). It only applies when a .1D file is being input in a place that expects a 3D dataset instead. For example, you CANNOT do something like

1dplot fred.1D\'

Instead, you'd have to do

1dtranspose fred.1D | 1dplot -stdin

*OR*

1dtranspose fred.1d > tfred.1D
1dplot tfred.1D
rm -f tfred.1D

Enough with the obscurities -- back to my plans for galactic conquest and subjugation!
Subject Author Posted

1deval --demystification please!

Graham Wideman February 07, 2006 08:29PM

Re: 1deval --demystification please!

Daniel Glen February 07, 2006 08:54PM

Re: 1deval --demystification please!

Graham Wideman February 07, 2006 10:36PM

Re: 1deval --demystification please!

rick reynolds February 07, 2006 09:17PM

Re: 1deval --demystification please!

Graham Wideman February 07, 2006 10:33PM

Re: 1deval --demystification please!

rick reynolds February 08, 2006 07:37AM

Re: 1deval --demystification please!

jill April 19, 2006 11:52PM

Re: 1deval --demystification please!

Zhark April 20, 2006 08:41AM

3d programs with 1D inputs: Obscurities

Zhark April 20, 2006 09:36AM

Re: 3d programs with 1D inputs: Obscurities

jill April 20, 2006 11:40AM

Re: 3d programs with 1D inputs: Obscurities

jill April 21, 2006 02:48AM

Re: 3d programs with 1D inputs: Obscurities

rick reynolds April 21, 2006 09:28AM

Re: 3d programs with 1D inputs: Obscurities

jill April 21, 2006 01:30PM

Re: 3d programs with 1D inputs: Obscurities

rick reynolds April 21, 2006 02:22PM

Re: 3d programs with 1D inputs: Obscurities

jill April 21, 2006 02:33PM

Re: 3d programs with 1D inputs: Obscurities

rick reynolds April 21, 2006 04:38PM

Re: 3d programs with 1D inputs: Obscurities

jill April 28, 2006 01:14AM