Hello all,
I've had great success using tcl scripts to loop over surfaces and overlays for a given subject. Are there scripting options for looping over subjects?
The problem I see is that the call to tksurfer initializes the subject ("tksurfer subjid lh inflated -tcl myscript.tcl"), and I'm unsure how to change the subjid inside the tcl script. How can I invoke tksurfer inside a tcl script?
I found another post asking the same question, but I couldn't find a response: http://www.mail-archive.com/freesurfer@nmr.mgh.harvard.edu/msg02344.html
One workaround would be to do the loop from the shell, invoking a separate instance of tksurfer for each subject/hemisphere, but in that case I'm unsure how to quit tksurfer from the shell after each call (instead of winding up with dozens of tksurfers running simultaneously). Any advice would be appreciated.
Many thanks, Carrie
Hi Carrie,
I believe you just need to use the command "exit" at the end of the tcl script to exit from tksurfer.
--Thomas
On Mar 18, 2010, at 5:43 PM, Carrie Niziolek wrote:
Hello all,
I've had great success using tcl scripts to loop over surfaces and overlays for a given subject. Are there scripting options for looping over subjects?
The problem I see is that the call to tksurfer initializes the subject ("tksurfer subjid lh inflated -tcl myscript.tcl"), and I'm unsure how to change the subjid inside the tcl script. How can I invoke tksurfer inside a tcl script?
I found another post asking the same question, but I couldn't find a response: http://www.mail-archive.com/freesurfer@nmr.mgh.harvard.edu/msg02344.html
One workaround would be to do the loop from the shell, invoking a separate instance of tksurfer for each subject/hemisphere, but in that case I'm unsure how to quit tksurfer from the shell after each call (instead of winding up with dozens of tksurfers running simultaneously). Any advice would be appreciated.
Many thanks, Carrie _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.
freesurfer@nmr.mgh.harvard.edu