Dear spm group,
I am working with the very interesting mrGray and mrFlatmesh programs to
analyze fMRI data and I have encountered a difficulty: I need to be able
to generate a text file containing the x,y,z coordinates and colormap of
all suprathreshold voxels.
mrGray can read in a text file representing functional activations. What
it needs is to know the color table associated with the activations (In
my example below, the first row tells mrGray that there are two entries
in the color table.
The second row tells mrGray that the first color is red [r=255, g=0, b=0]).
The last 3 rows tell mrGray the x,y,z coordinates (on the structural image)of
the overlaid suprathreshold voxels AND the row from the color table that
mrGray should use to represent that suprathreshold voxel (In my example,
the second row from the bottom, the voxel specified is at position 90 [x,
coronal], by position 89 [y, axial], by position 91 [z, sagittal] and it
should be colored using the first color in the color table, red (1).
2
255 0 0
0 255 0
90 90 90 1
90 89 91 1
90 88 90 2
I have looked through the archives and see evidence that people have generated
text files containing information about the locations of suprathreshold
voxel, but I didn't find quite what I was looking for. Has anyone out there
written code to do this or something very similar to this?
Thankyou,
Dianne Patterson
CNL
|