Hi, I would like to go over a list of talairach coordinates (which describe my electrode locations) and send these vertices as labels. I'm using select_talairach_point function, but the problem is that it only keeps the latest selection. So I end up with just one vertex. I'm using this TCL script that I wrote: set f [ open "/Users/aarslan/Desktop/talcoord.txt" ] set a [read $f] set b [split $a "\n"]
set i 0 foreach j $b { select_talairach_point [lindex $j 0] [lindex $j 1] [lindex $j 2] puts "[lindex $j 0] [lindex $j 1] [lindex $j 2]" incr i }
Is there a way to store multiple vertices as a label or annotation? Or at least keep the previously selected vertices during each iteration? Best,
After seeing this post http://www.mail-archive.com/freesurfer@nmr.mgh.harvard.edu/msg12855.html , I added a line to the script mark_vertex $select on but still the previous selections are not kept, selection of each point overwrites the previous ones. I'm guessing the cure is easy, any ideas? Best, A
On Fri, Nov 5, 2010 at 10:15 AM, Arslan, Ali ali_arslan@brown.edu wrote:
Hi, I would like to go over a list of talairach coordinates (which describe my electrode locations) and send these vertices as labels. I'm using select_talairach_point function, but the problem is that it only keeps the latest selection. So I end up with just one vertex. I'm using this TCL script that I wrote: set f [ open "/Users/aarslan/Desktop/talcoord.txt" ] set a [read $f] set b [split $a "\n"]
set i 0 foreach j $b { select_talairach_point [lindex $j 0] [lindex $j 1] [lindex $j 2] puts "[lindex $j 0] [lindex $j 1] [lindex $j 2]" incr i }
Is there a way to store multiple vertices as a label or annotation? Or at least keep the previously selected vertices during each iteration? Best, -- Ali B. Arslan Cognitive, Linguistic and Psychological Sciences Brown University
freesurfer@nmr.mgh.harvard.edu