Up to TkSurferGuide

Back to [:../TkSurferScriptingReference: TkSurferScriptingReference]

Continue to [:TkSurferGuide/TkSurferReference: TkSurferReference]

Scripting

TableOfContents

This section assumes you are familiar with Tcl and how to write basic scripts.

Most of TkSurfer's functions have Tcl bindings. As you have probably noticed, the interface is just a Tk/Tix window. You can look at the interface script, tksurfer.tcl, to see how most of the functionality is used. Following is a list of Tcl commands defined by TkSurfer. You can use these commands in your own scripts and call them with the -tcl command line option to execute them on startup. TkSurfer can run in a kind of batch mode in this fashion, although it still requires X and has to be able to open its main window.

You can also enter these script commands from the shell that TkSurfer was launched in. You can use the Tcl source command to load a script file from the Tcl shell as well.

This list is provided for reference. If you can figure out something that works, great, but it is not officially a feature of TkSurfer.

Variables

These variables are used to turn on and off certain display characteristics. The way to set a flag is:

set gaLinkedVars(VARIABLENAME) VALUE
UpdateLinkedVarGroup GROUP

Here is a table listing the variables, valid values, group names, and functionality.

Variable Name

Valid Values

Group

GUI Location

Description

vertexset

0-4

view

View->Surface Configuration

Use to set the current visible surface configuration. Use 0 for Main, 1 for Inflated, 2 for White, 3 for Pial, and 4 for Original.

currentvaluefield

0-8

view

View->Overlay Layer

Sets the current overlay layer. Should be followed with a call to SetOverlayField.

labelstyle

0-1

label

View->Label Style

Sets the label drawing style. Use 0 for filled and 1 for outline.

redrawlockflag

0,1

redrawlock

View->Auto-redraw

Sets the auto-redraw flag.

curvflag

0,1

view

View->Curvature

Controls curvature display.

overlayflag

0,1

view

View->Overlay

Controls overlay layer display.

drawlabelflag

0,1

label

View->Labels

Controls label display.

labels_before_overlay_flag

0,1

label

View->Labels under Overlay

Controls whether labels are drwn under the overlay.

scalebarflag

0,1

view

View->Scale Bar

Controls scale bar display.

colscalebarflag

0,1

view

View->Color Scale Bar

Controls the overlay color scale bar display.

verticesflag

0,1

view

View->Wireframe Overlay

Controls the wireframe display.

drawcursorflag

0,1

view

View->Cursor

Controls the cursor display.

light0

0-1 (floating)

scene

View->Configure->Lighting

Sets the first light value.

light1

0-1 (floating)

scene

View->Configure->Lighting

Sets the second light value.

light2

0-1 (floating)

scene

View->Configure->Lighting

Sets the third light value.

light3

0-1 (floating)

scene

View->Configure->Lighting

Sets the fourth light value.

offset

0-1 (floating)

scene

View->Configure->Lighting

Sets the ambient light value.

fthresh

floating

overlay

View->Configure->Overlay

Sets the overlay threshold minimum.

fmid

floating

overlay

View->Configure->Overlay

Sets the overlay threshold midpoint.

fslope

floating

overlay

View->Configure->Overlay

Sets the overlay threshold slope.

falpha

0-1 (floating)

overlay

View->Configure->Overlay

Sets the overlay alpha value.

ftimepoint

integer

overlay

View->Configure->Overlay

Sets the time point in the current overlay layer.

fcondition

integer

overlay

View->Configure->Overlay

Sets the condition in the current overlay layer.

colscale

0-8

overlay

View->Configure->Overlay

Sets the overlay color scale type. Use 0 for Color Wheel, 1 for Heat, 4 for Two Cond G/R, 6 for Blue Red, 7 for Green Red, 8 for RYGB Wheel

truncphaseflag

0,1

overlay

View->Configure->Overlay

Sets the overlay Truncate flag.

invphaseflag

0,1

overlay

View->Configure->Overlay

Sets the overlay Inverse flag.

complexvalflag

0,1

overlay

View->Configure->Overlay

Sets the Complex flag.

ignorezeroesinhistogramflag

0,1

overlay

View->Configure->Overlay

Sets the Ignore Zeroes in Histogram flag

cmid

floating

curvature

View->Configure->Curvature

Sets the midpoint value for the curvature display.

forcegraycurvatureflag

0,1

curvature

View->Configure->Curvature

Controls the binary gray curvature display.

Commands

Functions arguments are listed by their name followed by their arguments. Arguments in square brackets are optional.

Anchor(align_sphere) align_sphere

Anchor(clear_all_vertex_marks) clear_all_vertex_marks

Anchor(clear_curvature) clear_curvature

Anchor(clear_ripflags) clear_ripflags

Anchor(clear_vertex_marks) clear_vertex_marks

Anchor(close_marked_vertices) close_marked_vertices

Anchor(compute_curvature) compute_curvature

Anchor(curv_to_val) curv_to_val

Anchor(cut_line) cut_line closed

Anchor(cut_plane) cut_plane

Anchor(dilate_ripped) dilate_ripped

Anchor(do_lighting_model) do_lighting_model light0 light1 light2 light3 offset

Anchor(draw_cursor) draw_cursor vertexNumber on

Anchor(dump_vertex) dump_vertex vertexNumber

Anchor(f_to_t) f_to_t

Anchor(find_orig_vertex_coordinates) find_orig_vertex_coordinates

Anchor(fix_nonzero_vals) fix_nonzero_vals

Anchor(flip_normals) flip_normals axes

Anchor(func_clear_selection) func_clear_selection

Anchor(func_graph_timecourse_selection) func_graph_timecourse_selection

Anchor(func_load_timecourse) func_load_timecourse fileName registrationType registrationFileName

registrationFileName is necessary only of registrationType is file.

Anchor(func_load_timecourse_offset) func_load_timecourse_offset fileName registrationType registrationFileName

registrationFileName is necessary only of registrationType is file.

Anchor(func_print_timecourse_selection) func_print_timecourse_selection fileName

Anchor(func_select_label) func_select_label

Anchor(func_select_marked_vertices) func_select_marked_vertices

Anchor(invert_face) invert_face faceNumber

Anchor(fill_flood_from_cursor) fill_flood_from_cursor dontCrossPath dontCrossLabel dontFillUnlabeled dontCrossCuravature dontCrossThreshold multipleSeeds action argument

0

No action, just mark filled vertices. argument is ignored.

1

Make the filled vertices a new label. argument is ignored.

2

Add the filled vertices to an existing label. argument should be the index of the label to add vertices to.

3

Remove the filled vertices from an existing label. argument should be the index of the label to remove from.

Anchor(get_marked_vnos) get_marked_vnos

Anchor(get_selected_path_vnos) get_selected_path_vnos

Anchor(invert_surface) invert_surface

Anchor(invert_vertex) invert_vertex vertexNumber

Anchor(label_to_stat) label_to_stat overlayField

Anchor(labl_dilate) labl_dilate label

Anchor(labl_erode) labl_erode label

Anchor(labl_export_annotation) labl_export_annotation fileName

Anchor(labl_import_annotation) labl_import_annotation fileName

Anchor(labl_load) labl_load fileName

Anchor(labl_load_color_table) labl_load_color_table fileName

Anchor(labl_mark_vertices) labl_mark_vertices label

Anchor(labl_new_from_marked_vertices) labl_new_from_marked_vertices

Anchor(labl_print_list) labl_print_list

Anchor(labl_print_table) labl_print_table

Anchor(labl_remove) labl_remove label

Anchor(labl_remove_all) labl_remove_all

Anchor(labl_save) labl_save label fileName

Anchor(labl_save_all) labl_save_all prefix

Anchor(labl_select) labl_select label

Anchor(labl_select_label_by_vno) labl_select_label_by_vno vertexNumber

Anchor(labl_set_color) labl_set_color label red green blue

Anchor(labl_set_info) labl_set_info label name structureIndex visibility

Anchor(labl_set_name_from_table) labl_set_name_from_table label

Anchor(left_click) left_click x y

Anchor(make_lateral_view) make_lateral_view

Anchor(mark_annotation) mark_annotation vertexNumber

Anchor(mark_contiguous_vertices_over_thresh) mark_contiguous_vertices_over_thresh

Anchor(mark_contiguous_vertices_with_similar_curvature) mark_contiguous_vertices_with_similar_curvature

Anchor(mark_face) mark_face faceNumber

Anchor(mark_faces) mark_faces vertexNumber

Anchor(mark_vertex) mark_vertex vertexNumber on

Anchor(mask_label) mask_label labelFileName

Anchor(move_window) move_window x y

Anchor(path_new_path_from_marked_vertices) path_new_path_from_marked_vertices

Anchor(path_remove_selected_path) path_remove_selected_path

Anchor(path_select) path_select path

Anchor(plot_curv) plot_curv closed

Anchor(read_annotations) read_annotations fileName

Anchor(read_binary_curv) read_binary_curv

Anchor(read_binary_decimation) read_binary_decimation

Anchor(read_binary_dipoles) read_binary_dipoles

Anchor(read_binary_patch) read_binary_patch

Anchor(read_binary_sulc) read_binary_sulc

Anchor(read_binary_surf) read_binary_surf

Anchor(read_binary_values) read_binary_values

Anchor(read_binary_values_frame) read_binary_values_frame

Anchor(read_canon_vertex_coordinates) read_canon_vertex_coordinates fileName

Anchor(read_curv_to_val) read_curv_to_val fileName

Anchor(read_fieldsign) read_fieldsign

Anchor(read_fsmask) read_fsmask

Anchor(read_imag_vals) read_imag_vals fileName

Anchor(read_labeled_vertices) read_labeled_vertices

Anchor(read_orig_vertex_coordinates) read_orig_vertex_coordinates

Anchor(read_pial_vertex_coordinates) read_pial_vertex_coordinates

Anchor(read_really_matrix) read_really_matrix

Anchor(read_surface_vertex_set) read_surface_vertex_set field fileName

0

Main vertices

1

Inflated vertices

2

White vertices

3

Pial vertices

4

Orig vertices

Anchor(read_view_matrix) read_view_matrix

Anchor(read_white_vertex_coordinates) read_white_vertex_coordinates

Anchor(really_center_brain) really_center_brain

Anchor(really_rotate_brain_x) really_rotate_brain_x degrees

Anchor(really_rotate_brain_y) really_rotate_brain_y degrees

Anchor(really_rotate_brain_z) really_rotate_brain_z degrees

Anchor(really_translate_brain) really_translate_brain rightLeftDistance anteriorPosteriorDistance superiorInferiorDistance

Anchor(redraw) redraw

Anchor(resend_to_subject) resend_to_subject

Anchor(resize_brain) resize_brain

Anchor(resize_window) resize_window size

Anchor(restore_ripflags) restore_ripflags mode

Anchor(restore_initial_position) restore_initial_position

Anchor(restore_zero_position) restore_zero_position

Anchor(rip_all_vertices_except_contiguous_upripped) rip_all_vertices_except_contiguous_upripped

Anchor(rotate_brain_x) rotate_brain_x degrees

Anchor(rotate_brain_y) rotate_brain_y degrees

Anchor(rotate_brain_z) rotate_brain_z degrees

Anchor(save_rgb) save_rgb

Anchor(save_rgb_cmp_frame) save_rgb_cmp_frame

Anchor(save_tiff) save_tiff fileName

Anchor(scale_brain) scale_brain zoomFactor

Anchor(sclv_copy_all_view_settings_from_current_field) sclv_copy_all_view_settings_from_current_field

Anchor(sclv_copy_view_settings_from_current_field) sclv_copy_view_settings_from_current_field field

Anchor(sclv_copy_view_settings_from_field) sclv_copy_view_settings_from_field tofield toField

Anchor(sclv_get_normalized_color_for_value) sclv_get_normalized_color_for_value value

Anchor(sclv_load_label_value_file) sclv_load_label_value_file fileName field

Anchor(sclv_read_bfile_values) sclv_read_bfile_values

Anchor(sclv_read_binary_values) sclv_read_binary_values

Anchor(sclv_read_binary_values_frame) sclv_read_binary_values_frame fileName field

Anchor(sclv_read_from_dotw) sclv_read_from_dotw fileName field

field

Vertex field name

Description

0

val

Overlay layer 0

1

val2

Overlay layer 1

2

valbak

Overlay layer 2

3

val2bak

Overlay layer 3

4

stat

Overlay layer 4

5

imag_val

Overlay layer 5

6

mean

Overlay layer 6

7

mean_imag

Overlay layer 7

8

std_error

Overlay layer 8

Anchor(sclv_read_from_volume) sclv_read_from_volume field fileName registrationType [registrationFileName]

0

Get registration from a file, and specify file in regitrationFileName

1

Look for a file named register.dat in the same directory as the volume.

2

Calculate an identity registration using the orig volume (must be present in subject's mri directory.

Anchor(sclv_send_histogram) sclv_send_histogram field

Anchor(sclv_send_current_field_info) sclv_send_current_field_info

Anchor(sclv_set_current_field) sclv_set_current_field field

Anchor(sclv_set_current_threshold_from_percentile) sclv_set_current_threshold_from_percentile min mid max

Anchor(sclv_set_current_threshold_using_fdr) sclv_set_current_threshold_using_fdr rate markedOnly

Anchor(sclv_set_current_timepoint) sclv_set_current_timepoint timePoint condition

Anchor(sclv_set_overlay_alpha) sclv_set_overlay_alpha alpha

Anchor(sclv_smooth) sclv_smooth numberOfSteps field

Anchor(sclv_write_dotw) sclv_write_dotw field

Anchor(select_orig_vertex_coordinates) select_orig_vertex_coordinates

Anchor(select_talairach_point) select_talairach_point x y z

Anchor(select_vertex_by_vno) select_vertex_by_vno vertexNumber

Anchor(send_current_labels) send_current_labels

Anchor(send_spherical_point) send_spherical_point subjectName canonicalFileName origFileName

Anchor(send_to_subject) send_to_subject subjectName

curv_to_val

al_point with standard file names for canonicalFileName and origFileName.

Anchor(set_current_vertex_set) set_current_vertex_set field

Anchor(show_flat_regions) show_flat_regions surfaceFileName threshold

Anchor(show_surf) show_surf vertexSet

Anchor(shrink) shrink numberOfSteps

Anchor(smooth_curv) smooth_curv numberOfSteps

Anchor(stat_to_val) stat_to_val

Anchor(swap_vertex_fields) swap_vertex_fields field field

field

Vertex field name

Description

0

curv

Curvature display

1

curvbak

Backup curvature (not displayed

2

val

Overlay layer 0

3

imag_val

Overlay layer 5

4

val2

Overlay layer 1

5

valbak

Overlay layer 2

6

val2bak

Overlay layer 3

7

stat

Overlay layer 4

Anchor(transform_brain) transform_brain

Anchor(translate_brain_x) translate_brain_x distance

Anchor(translate_brain_y) translate_brain_y distance

Anchor(translate_brain_z) translate_brain_z distance

Anchor(undo_last_action) undo_last_action

Anchor(val_to_curv) val_to_curv

Anchor(val_to_mark) val_to_mark

Anchor(val_to_stat) val_to_stat

Anchor(write_binary_curv) write_binary_curv

Anchor(write_binary_dipoles) write_binary_dipoles

Anchor(write_binary_patch) write_binary_patch

Anchor(write_binary_sulc) write_binary_sulc

Anchor(write_binary_surface) write_binary_surface

Anchor(write_fieldsign) write_fieldsign

Anchor(write_fsmask) write_fsmask

Anchor(write_labeled_vertices) write_labeled_vertices

Anchor(write_really_matrix) write_really_matrix

Anchor(write_view_matrix) write_view_matrix

Anchor(write_vrml) write_vrml mode

Index

Viewing Operations

[#align_sphere align_sphere] [#do_lighting_model do_lighting_model] [#draw_cursor draw_cursor] [#left_click left_click] [#make_lateral_view make_lateral_view] [#move_window move_window] [#redraw redraw] [#rotate_brain_x rotate_brain_x] [#rotate_brain_y rotate_brain_y] [#rotate_brain_z rotate_brain_z] [#scale_brain scale_brain] [#send_current_labels send_current_labels] [#show_flat_regions show_flat_regions] [#translate_brain_x translate_brain_x] [#translate_brain_y translate_brain_y] [#translate_brain_z translate_brain_z] [#read_really_matrix read_really_matrix] [#read_view_matrix read_view_matrix] [#really_center_brain really_center_brain] [#really_rotate_brain_x really_rotate_brain_x] [#really_rotate_brain_y really_rotate_brain_y] [#really_rotate_brain_z really_rotate_brain_z] [#really_scale_brain really_scale_brain] [#really_translate_brain really_translate_brain] [#resize_brain resize_brain] [#resize_window resize_window] [#restore_zero_position restore_zero_position] [#restore_initial_position restore_initial_position] [#transform_brain transform_brain] [#write_view_matrix write_view_matrix] [#write_really_matrix write_really_matrix]

I/O

[#func_load_timecourse func_load_timecourse] [#func_load_timecourse_offset func_load_timecourse_offset] [#labl_export_annotation labl_export_annotation] [#labl_import_annotation labl_import_annotation] [#labl_load labl_load] [#labl_load_color_table labl_load_color_table] [#labl_save labl_save] [#labl_save_all labl_save_all] [#read_annotations read_annotations] [#read_binary_curv read_binary_curv] [#read_binary_decimation read_binary_decimation] [#read_binary_dipoles read_binary_dipoles] [#read_binary_sulc read_binary_sulc] [#read_binary_surf read_binary_surf] [#read_binary_values read_binary_values] [#read_binary_values_frame read_binary_values_frame] [#read_binary_patch read_binary_patch] [#read_canon_vertex_coordinates read_canon_vertex_coordinates] [#read_curv_to_val read_curv_to_val] [#read_fieldsign read_fieldsign] [#read_fsmask read_fsmask] [#read_imag_vals read_imag_vals] [#read_labeled_vertices read_labeled_vertices] [#read_orig_vertex_coordinates read_orig_vertex_coordinates] [#read_pial_vertex_coordinates read_pial_vertex_coordinates] [#read_surface_vertex_set read_surface_vertex_set] [#read_white_vertex_coordinates read_white_vertex_coordinates] [#sclv_load_label_value_file sclv_load_label_value_file] [#sclv_read_bfile_values sclv_read_bfile_values] [#sclv_read_binary_values sclv_read_binary_values] [#sclv_read_binary_values_frame sclv_read_binary_values_frame] [#sclv_read_from_dotw sclv_read_from_dotw] [#sclv_read_from_volume sclv_read_from_volume] [#sclv_write_dotw sclv_write_dotw] [#write_binary_curv write_binary_curv] [#write_binary_dipoles write_binary_dipoles] [#write_binary_patch write_binary_patch] [#write_binary_surface write_binary_surface] [#write_binary_sulc write_binary_sulc] [#write_fieldsign write_fieldsign] [#write_fsmask write_fsmask] [#write_labeled_vertices write_labeled_vertices] [#write_vrml write_vrml]

Curvature Operations

[#clear_curvature clear_curvature] [#compute_curvature compute_curvature] [#curv_to_val curv_to_val] [#fill_flood_from_cursor fill_flood_from_cursor] [#mark_contiguous_vertices_with_similar_curvature mark_contiguous_vertices_with_similar_curvature] [#smooth_curv smooth_curv] [#val_to_curv val_to_curv]

Overlay Operations

[#curv_to_val curv_to_val] [#f_to_t f_to_t] [#fill_flood_from_cursor fill_flood_from_cursor] [#label_to_stat label_to_stat] [#mark_contiguous_vertices_over_thresh mark_contiguous_vertices_over_thresh] [#sclv_copy_all_view_settings_from_current_field sclv_copy_all_view_settings_from_current_field] [#sclv_copy_view_settings_from_current_field sclv_copy_view_settings_from_current_field] [#sclv_copy_view_settings_from_field sclv_copy_view_settings_from_field] [#sclv_get_normalized_color_for_value sclv_get_normalized_color_for_value] [#sclv_load_label_value_file sclv_load_label_value_file] [#sclv_read_bfile_values sclv_read_bfile_values] [#sclv_read_binary_values sclv_read_binary_values] [#sclv_read_binary_values_frame sclv_read_binary_values_frame] [#sclv_read_from_dotw sclv_read_from_dotw] [#sclv_read_from_volume sclv_read_from_volume] [#sclv_send_current_field_info sclv_send_current_field_info] [#sclv_send_histogram sclv_send_histogram] [#sclv_set_current_field sclv_set_current_field] [#sclv_set_current_threshold_from_percentile sclv_set_current_threshold_from_percentile] [#sclv_set_current_threshold_using_fdr sclv_set_current_threshold_using_fdr] [#sclv_set_current_timepoint sclv_set_current_timepoint] [#sclv_set_overlay_alpha sclv_set_overlay_alpha] [#sclv_smooth sclv_smooth] [#sclv_write_dotw sclv_write_dotw] [#stat_to_val stat_to_val] [#swap_val_val2 swap_val_val2] [#val_to_curv val_to_curv] [#val_to_stat val_to_stat]

Vertex Operations

[#fill_flood_from_cursor fill_flood_from_cursor] [#find_orig_vertex_coordinates find_orig_vertex_coordinates] [#fix_nonzero_vals fix_nonzero_vals] [#flip_normals flip_normals] [#invert_face invert_face] [#invert_surface invert_surface] [#invert_vertex invert_vertex] [#read_canon_vertex_coordinates read_canon_vertex_coordinates] [#read_orig_vertex_coordinates read_orig_vertex_coordinates] [#read_pial_vertex_coordinates read_pial_vertex_coordinates] [#read_surface_vertex_set read_surface_vertex_set] [#read_white_vertex_coordinates read_white_vertex_coordinates] [#set_current_vertex_set set_current_vertex_set] [#show_surf show_surf] [#shrink shrink] [#swap_vertex_fields swap_vertex_fields]

Cursor Operations

[#draw_cursor draw_cursor] [#resend_to_subject resend_to_subject] [#select_orig_vertex_coordinates select_orig_vertex_coordinates] [#select_talairach_point select_talairach_point] [#select_vertex_by_vno select_vertex_by_vno] [#send_spherical_point send_spherical_point] [#send_to_subject send_to_subject]

Ripping and Cutting Operations

[#clear_ripflags clear_ripflags] [#cut_line cut_line] [#cut_plane cut_plane] [#dilate_ripped dilate_ripped] [#restore_ripflags restore_ripflags] [#rip_all_vertices_except_contiguous_upripped rip_all_vertices_except_contiguous_upripped] [#undo_last_action undo_last_action]

Reporting Information

[#dump_vertex dump_vertex] [#get_selected_path_vnos get_selected_path_vnos] [#labl_print_list labl_print_list] [#labl_print_table labl_print_table] [#plot_curv plot_curv]

Screen Shots

[#save_rgb save_rgb] [#save_rgb_cmp_frame save_rgb_cmp_frame] [#save_tiff save_tiff]

Marking Operations

[#clear_all_vertex_marks clear_all_vertex_marks] [#clear_vertex_marks clear_vertex_marks] [#close_marked_vertices close_marked_vertices] [#get_selected_path_vnos get_selected_path_vnos] [#labl_mark_vertices labl_mark_vertices] [#labl_new_from_marked_vertices labl_new_from_marked_vertices] [#mark_annotation mark_annotation] [#mark_contiguous_vertices_over_thresh mark_contiguous_vertices_over_thresh] [#mark_contiguous_vertices_with_similar_curvature mark_contiguous_vertices_with_similar_curvature] [#mark_face mark_face] [#mark_faces mark_faces] [#mark_vertex mark_vertex] [#rip_all_vertices_except_contiguous_upripped rip_all_vertices_except_contiguous_upripped] [#val_to_mark val_to_mark]

Label Operations

[#label_to_stat label_to_stat] [#labl_dilate labl_dilate] [#labl_erode labl_erode] [#labl_export_annotation labl_export_annotation] [#labl_import_annotation labl_import_annotation] [#labl_load labl_load] [#labl_load_color_table labl_load_color_table] [#labl_mark_vertices labl_mark_vertices] [#labl_new_from_marked_vertices labl_new_from_marked_vertices] [#labl_print_list labl_print_list] [#labl_print_table labl_print_table] [#labl_remove labl_remove] [#labl_remove_all labl_remove_all] [#labl_save labl_save] [#labl_save_all labl_save_all] [#labl_select labl_select] [#labl_set_color labl_set_color] [#labl_set_info labl_set_info] [#labl_set_name_from_table labl_set_name_from_table] [#labl_select_label_by_vno labl_select_label_by_vno] [#mask_label mask_label] [#send_current_labels send_current_labels]

Time Courses

[#func_clear_selection func_clear_selection] [#func_graph_timecourse_selection func_graph_timecourse_selection] [#func_load_timecourse func_load_timecourse] [#func_load_timecourse_offset func_load_timecourse_offset] [#func_print_timecourse_selection func_print_timecourse_selection] [#func_select_label func_select_label] [#func_select_marked_vertices func_select_marked_vertices]

Paths

[#path_new_path_from_marked_vertices path_new_path_from_marked_vertices] [#path_remove_selected_path path_remove_selected_path] [#path_select path_select]

Unsupported Functions

These commands are legacy functions that aren't documented well enough to be dependable. Because some older scripts still use them, they are documented here for completion. Use of them is not suggested nor supported.

Commands

Anchor(add_subject_to_average_curvim) add_subject_to_average_curvim subjectName morphSubdirectory

Anchor(clear_all_vertex_cursor) clear_all_vertex_cursor

Anchor(compute_angles) compute_angles

Anchor(compute_CMF) compute_CMF

Anchor(compute_cortical_thickness) compute_cortical_thickness

Anchor(compute_fieldsign) compute_fieldsign

Anchor(compute_pval_fwd) compute_pval_fwd pvalThreshold

Anchor(compute_pval_inv) compute_pval_inv

Anchor(compute_select_fwd) compute_select_fwd maximumDistance

maximumDistance is a floating point number in millimeters.

Anchor(compute_timecourses) compute_timecourses

Anchor(curv_shrink_to_fill) curv_shrink_to_fill numberOfSteps

Anchor(curv_to_curvim) curv_to_curvim

Anchor(curvim_to_second_surface) curvim_to_second_surface

Anchor(curvim_to_surface) curvim_to_surface

Anchor(deconvolve_weights) deconvolve_weights weightFileName scaleFileName

Anchor(draw_all_cursor) draw_all_cursor

Anchor(draw_all_vertex_cursor) draw_all_vertex_cursor

Anchor(draw_curvature_line) draw_curvature_line

Anchor(draw_fundus) draw_fundus

Anchor(draw_radius) draw_radius

Anchor(draw_theta) draw_theta

Anchor(draw_vector) draw_vector fileName

Anchor(ellipsoid_morph) ellipsoid_morph numberOfSteps rightLeftDistance anteriorPosteriorDistance superiorInferiorDistance

Anchor(ellipsoid_project) ellipsoid_project rightLeftDistance anteriorPosteriorDistance superiorInferiorDistance

Anchor(ellipsoid_shrink) ellipsoid_shrink numberOfSteps radius

Anchor(ellipsoid_shrink_bug) ellipsoid_shrink_bug numberOfSteps radius length

Anchor(f_to_p) f_to_p DOFnumerator DOFdenominator

Anchor(flatten) flatten

Anchor(fill_second_surface) fill_second_surface

Anchor(filter_recs) filter_recs

Anchor(load_gcsa) load_gcsa fileName

Anchor(load_vals_from_sol) load_vals_from_sol tmid dt condition

Anchor(load_var_from_sol) load_var_from_sol condition

Anchor(make_lateral_view_second) make_lateral_view_second

Anchor(normalize_area) normalize_area

Anchor(normalize_binary_curv) normalize_binary_curv

Anchor(normalize_inverse) normalize_inverse

Anchor(normalize_second_binary_curv) normalize_second_binary_curv

Anchor(normalize_time_courses) normalize_time_courses type

Anchor(open_window) open_window

Anchor(orient_sphere) orient_sphere

Anchor(plot_all_time_courses) plot_all_time_courses

Anchor(plot_marked) plot_marked fileName

Anchor(put_retinotopy_stats_in_vals) put_retinotopy_stats_in_vals

Anchor(read_and_color_labeled_vertices) read_and_color_labeled_vertices red green blue

Anchor(read_and_smooth_parcellation) read_and_smooth_parcellation parcellationFileName colorTableFileName soapBubbleIterations modeFilterIterations

Anchor(read_annotated_image) read_annotated_image

Anchor(read_curv_images) read_curv_images

Anchor(read_disc) read_disc subjectName

Anchor(read_iop) read_iop fileName dipoleFileNumber

Anchor(read_ncov) read_ncov fileName

Anchor(read_parcellation) read_parcellation parcellationFileName colorTableFileName

Anchor(read_plot_list) read_plot_list fileName

Anchor(read_rec) read_rec fileName

Anchor(read_second_binary_curv) read_second_binary_curv

Anchor(read_second_binary_surf) read_second_binary_surf

Anchor(read_soltimecourse) read_soltimecourse fileName

Anchor(read_stds) read_stds conditionNumber

Anchor(read_surf) read_surf fileName

Anchor(read_vertex_list) read_vertex_list fileName

Anchor(really_align_brain) really_align_brain

Anchor(really_center_second_brain) really_center_second_brain

Anchor(redraw_second) redraw_second

Anchor(remove_triangle_links) remove_triangle_links

Anchor(restore_surf) restore_surf

Anchor(save_surf) save_surf

Anchor(sclv_read_from_dotw_frame) sclv_read_from_dotw_frame

Anchor(second_surface_curv_to_curvim) second_surface_curv_to_curvim

Anchor(shift_values) shift_values

Anchor(smooth_curvim) smooth_curvim numberOfSteps

Anchor(smooth_curvim_sparse) smooth_curvim_sparse numberOfSteps

Anchor(sphere_shrink) sphere_shrink numberOfSteps radius

Anchor(smooth_fs) smooth_fs numberOfSteps

Anchor(smooth_val) smooth_val numberOfSteps

Anchor(smooth_val_sparse) smooth_val_sparse numberOfSteps

Anchor(sol_plot) sol_plot timePoint plotType

Anchor(subsample_dist) subsample_dist spacing

Anchor(subsample_orient) subsample_orient spacing

Anchor(swap_buffers) swap_buffers

Anchor(swap_curv) swap_curv

Anchor(swap_stat_val) swap_stat_val

Anchor(swap_val_val2) swap_val_val2

Anchor(swap_values) swap_values

Anchor(t_to_p) t_to_p DOF

Anchor(to_double_buffer) to_double_buffer

Anchor(to_single_buffer) to_single_buffer

Anchor(twocond) twocond condition condition

Anchor(write_binary_areas) write_binary_areas

Anchor(write_binary_decimation) write_binary_decimation

Anchor(write_binary_values) write_binary_values

Anchor(write_curv_images) write_curv_images

Anchor(write_decimation) write_decimation

Anchor(write_dipoles) write_dipoles

Anchor(write_fill_images) write_fill_images

Anchor(write_subsample) write_subsample

Index

[#add_subject_to_average_curvim add_subject_to_average_curvim] [#clear_all_vertex_cursor clear_all_vertex_cursor] [#compute_angles compute_angles] [#compute_CMF compute_CMF] [#compute_cortical_thickness compute_cortical_thickness] [#compute_fieldsign compute_fieldsign] [#compute_pval_fwd compute_pval_fwd] [#compute_pval_inv compute_pval_inv] [#compute_select_fwd compute_select_fwd] [#compute_timecourses compute_timecourses] [#curv_shrink_to_fill curv_shrink_to_fill] [#curv_to_curvim curv_to_curvim] [#curvim_to_second_surface curvim_to_second_surface] [#curvim_to_surface curvim_to_surface] [#deconvolve_weights deconvolve_weights] [#draw_all_cursor draw_all_cursor] [#draw_all_vertex_cursor draw_all_vertex_cursor] [#draw_curvature_line draw_curvature_line] [#draw_fundus draw_fundus] [#draw_radius draw_radius] [#draw_theta draw_theta] [#draw_vector draw_vector] [#ellipsoid_morph ellipsoid_morph] [#ellipsoid_project ellipsoid_project] [#ellipsoid_shrink ellipsoid_shrink] [#ellipsoid_shrink_bug ellipsoid_shrink_bug] [#f_to_p f_to_p] [#flatten flatten] [#fill_second_surface fill_second_surface] [#filter_recs filter_recs] [#load_gcsa load_gcsa] [#load_vals_from_sol load_vals_from_sol] [#load_var_from_sol load_var_from_sol] [#make_lateral_view_second make_lateral_view_second] [#normalize_area normalize_area] [#normalize_binary_curv normalize_binary_curv] [#normalize_inverse normalize_inverse] [#normalize_second_binary_curv normalize_second_binary_curv] [#normalize_time_courses normalize_time_courses] [#open_window open_window] [#orient_sphere orient_sphere] [#plot_all_time_courses plot_all_time_courses] [#plot_marked plot_marked] [#put_retinotopy_stats_in_vals put_retinotopy_stats_in_vals] [#read_and_color_labeled_vertices read_and_color_labeled_vertices] [#read_and_smooth_parcellation read_and_smooth_parcellation] [#read_annotated_image read_annotated_image] [#read_curv_images read_curv_images] [#read_disc read_disc] [#read_iop read_iop] [#read_ncov read_ncov] [#read_parcellation read_parcellation] [#read_plot_list read_plot_list] [#read_rec read_rec] [#read_second_binary_surf read_second_binary_surf] [#read_second_binary_curv read_second_binary_curv] [#read_soltimecourse read_soltimecourse] [#read_stds read_stds] [#read_surf read_surf] [#read_vertex_list read_vertex_list] [#really_align_brain really_align_brain] [#really_center_second_brain really_center_second_brain] [#redraw_second redraw_second] [#remove_triangle_links remove_triangle_links] [#restore_surf restore_surf] [#save_surf save_surf] [#sclv_read_from_dotw_frame sclv_read_from_dotw_frame] [#second_surface_curv_to_curvim second_surface_curv_to_curvim] [#shift_values shift_values] [#smooth_curvim smooth_curvim] [#smooth_curvim_sparse smooth_curvim_sparse] [#sphere_shrink sphere_shrink] [#smooth_fs smooth_fs] [#smooth_val smooth_val] [#smooth_val_sparse smooth_val_sparse] [#sol_plot sol_plot] [#subsample_dist subsample_dist] [#subsample_orient subsample_orient] [#swap_buffers swap_buffers] [#swap_curv swap_curv] [#swap_stat_val swap_stat_val] [#swap_stat_val2 swap_stat_val2] [#swap_values swap_values] [#t_to_p t_to_p] [#to_single_buffer to_single_buffer] [#to_double_buffer to_double_buffer] [#twocond twocond] [#write_binary_areas write_binary_areas] [#write_binary_decimation write_binary_decimation] [#write_binary_values write_binary_values] [#write_curv_images write_curv_images] [#write_decimation write_decimation] [#write_dipoles write_dipoles] [#write_fill_images write_fill_images] [#write_subsample write_subsample]