Hi Tino,

When I think 1D file, I think a single column of scalars, where the line 
number implicitly means the node number.  But when you say "with xyz 
coordinates," I no longer think 1D file anymore.  It's something else.

Are you sure AFNI wants to read data that way?  You can probably use the 
unix join command, followed by cut to pull off what I think you mean, i.e.:

x-coord y-coord z-coord z-score

But are you sure 3dSurfToVol wants the data this way?

I did have a look at the usage (it is actually 3dSurf2Vol -- not 
3dSurfToVol, if anyone else wants a look), but it's 561 lines long.  It 
did appear to take a coord file, i.e.:

    -surf_xyz_1D SXYZ_NODE_FILE : 1D coordinate file

        e.g. -surf_xyz_1D my_surf_coords.1D

In Caret, you would use File: Save Data File: Coord file and save your 
fiducial coord file as ASCII (or use caret_command -file-convert 
-format-convert to do so).  Then, use the unix/Linux cut command to chop 
off the first column (node numbers).  You could use tail to strip the 
header.

Where in the usage does it suggest you want the four columns together in 
a single file?

Donna

On 04/12/2010 09:48 PM, QUINTINO MANO wrote:
> Hello Caret Users,
>
> I need to convert a multicolumn metric file (derived from landmark  
> based deformation) of z-scores into a 1D file with xyz coordinates  
> instead of number of nodes. Ultimately, I'd like to use this 1D file  
> in the AFNI 3dSurfToVol program so as to run a cluster analysis. Does  
> anyone know how I can convert a metric to 1D file?
>
> Many thanks in advance.
>
> Tino
> _______________________________________________
> caret-users mailing list
> [email protected]
> http://brainvis.wustl.edu/mailman/listinfo/caret-users
>   

_______________________________________________
caret-users mailing list
[email protected]
http://brainvis.wustl.edu/mailman/listinfo/caret-users

Reply via email to