Hi Doug & Kevin,
I am trying to save a text list from tksurfer that contains all the overlay values (one value per each vertex point) inside in a functionally defined label. The labels were originally defined from a different data set than the overlays where I need the values.
The overlay where I want the values picked from is in the format of a series of spherical surface files (ico7):
*_time005-tau-lh_000.bfloat *_time005-tau-lh_001.bfloat *_time005-tau-lh_002.bfloat *_time005-tau-lh_003.bfloat *_time005-tau-lh_004.bfloat *_time005-tau-lh_005.bfloat *_time005-tau-lh_006.bfloat
Notice that our overlay does not have the usual h-lh.bhdr files that would collect all the time frames and contrast conditions (this is after some custom post-processing) so we have to access the *000.bfloat -> *006.bfloat files directly. Not sure that matters though.
Any suggestions how to come about this? I tried to look at the tcl scripting reference but did not quite see what I needed there (or then I just did not understand what I read :).
Thanks!!!
-Tommi
If you have an overlay loaded, and you save a label, the label file that is created will have the current overlay values in the last column. Does this do what you want?
On Wed, 2007-04-18 at 17:01 -0400, raij@nmr.mgh.harvard.edu wrote:
Hi Doug & Kevin,
I am trying to save a text list from tksurfer that contains all the overlay values (one value per each vertex point) inside in a functionally defined label. The labels were originally defined from a different data set than the overlays where I need the values.
The overlay where I want the values picked from is in the format of a series of spherical surface files (ico7):
*_time005-tau-lh_000.bfloat *_time005-tau-lh_001.bfloat *_time005-tau-lh_002.bfloat *_time005-tau-lh_003.bfloat *_time005-tau-lh_004.bfloat *_time005-tau-lh_005.bfloat *_time005-tau-lh_006.bfloat
Notice that our overlay does not have the usual h-lh.bhdr files that would collect all the time frames and contrast conditions (this is after some custom post-processing) so we have to access the *000.bfloat -> *006.bfloat files directly. Not sure that matters though.
Any suggestions how to come about this? I tried to look at the tcl scripting reference but did not quite see what I needed there (or then I just did not understand what I read :).
Thanks!!!
-Tommi _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Ahh - that sounds exactly like what I need!
So a script like this would do the trick (Kevin could you please have a quick look):
tksurfer fsaverage lh inflated
# tcl script sharts here
# Load curvature set curv lh.curv read_binary_curv set curvflag 1
# Load my overlay (referring to the first file 000 loads all files 000-006?) sclv_read_from_volume 0 <myoverlay>_000.bfloat 3
# Load my label labl_load <mylabel>.label
# Output the overlay values for the vertices inside the label write_labeled_vertices <myoutputvalues>.txt
Thanks Kevin!
-Tommi
If you have an overlay loaded, and you save a label, the label file that is created will have the current overlay values in the last column. Does this do what you want?
On Wed, 2007-04-18 at 17:01 -0400, raij@nmr.mgh.harvard.edu wrote:
Hi Doug & Kevin,
I am trying to save a text list from tksurfer that contains all the overlay values (one value per each vertex point) inside in a functionally defined label. The labels were originally defined from a different data set than the overlays where I need the values.
The overlay where I want the values picked from is in the format of a series of spherical surface files (ico7):
*_time005-tau-lh_000.bfloat *_time005-tau-lh_001.bfloat *_time005-tau-lh_002.bfloat *_time005-tau-lh_003.bfloat *_time005-tau-lh_004.bfloat *_time005-tau-lh_005.bfloat *_time005-tau-lh_006.bfloat
Notice that our overlay does not have the usual h-lh.bhdr files that would collect all the time frames and contrast conditions (this is after some custom post-processing) so we have to access the *000.bfloat -> *006.bfloat files directly. Not sure that matters though.
Any suggestions how to come about this? I tried to look at the tcl scripting reference but did not quite see what I needed there (or then I just did not understand what I read :).
Thanks!!!
-Tommi _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
-- Kevin Teich
Instead of write_labeled_vertices, use:
labl_save <label index> <filename>
Where <label index> is 0 if you only have one label loaded (in the case of your script).
On Wed, 2007-04-18 at 17:27 -0400, raij@nmr.mgh.harvard.edu wrote:
Ahh - that sounds exactly like what I need!
So a script like this would do the trick (Kevin could you please have a quick look):
tksurfer fsaverage lh inflated
# tcl script sharts here
# Load curvature set curv lh.curv read_binary_curv set curvflag 1
# Load my overlay (referring to the first file 000 loads all files 000-006?) sclv_read_from_volume 0 <myoverlay>_000.bfloat 3
# Load my label labl_load <mylabel>.label
# Output the overlay values for the vertices inside the label write_labeled_vertices <myoutputvalues>.txt
Thanks Kevin!
-Tommi
If you have an overlay loaded, and you save a label, the label file that is created will have the current overlay values in the last column. Does this do what you want?
On Wed, 2007-04-18 at 17:01 -0400, raij@nmr.mgh.harvard.edu wrote:
Hi Doug & Kevin,
I am trying to save a text list from tksurfer that contains all the overlay values (one value per each vertex point) inside in a functionally defined label. The labels were originally defined from a different data set than the overlays where I need the values.
The overlay where I want the values picked from is in the format of a series of spherical surface files (ico7):
*_time005-tau-lh_000.bfloat *_time005-tau-lh_001.bfloat *_time005-tau-lh_002.bfloat *_time005-tau-lh_003.bfloat *_time005-tau-lh_004.bfloat *_time005-tau-lh_005.bfloat *_time005-tau-lh_006.bfloat
Notice that our overlay does not have the usual h-lh.bhdr files that would collect all the time frames and contrast conditions (this is after some custom post-processing) so we have to access the *000.bfloat -> *006.bfloat files directly. Not sure that matters though.
Any suggestions how to come about this? I tried to look at the tcl scripting reference but did not quite see what I needed there (or then I just did not understand what I read :).
Thanks!!!
-Tommi _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
-- Kevin Teich
why does it not have a bhdr file? You can also load the label and overlay into matlab and extract it that way, might be easier than scripting tksurfer
raij@nmr.mgh.harvard.edu wrote:
Hi Doug & Kevin,
I am trying to save a text list from tksurfer that contains all the overlay values (one value per each vertex point) inside in a functionally defined label. The labels were originally defined from a different data set than the overlays where I need the values.
The overlay where I want the values picked from is in the format of a series of spherical surface files (ico7):
*_time005-tau-lh_000.bfloat *_time005-tau-lh_001.bfloat *_time005-tau-lh_002.bfloat *_time005-tau-lh_003.bfloat *_time005-tau-lh_004.bfloat *_time005-tau-lh_005.bfloat *_time005-tau-lh_006.bfloat
Notice that our overlay does not have the usual h-lh.bhdr files that would collect all the time frames and contrast conditions (this is after some custom post-processing) so we have to access the *000.bfloat -> *006.bfloat files directly. Not sure that matters though.
Any suggestions how to come about this? I tried to look at the tcl scripting reference but did not quite see what I needed there (or then I just did not understand what I read :).
Thanks!!!
-Tommi _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu