visualizevtkwrite_vtk_skeleton_file

write_vtk_skeleton_file

visualize.vtk.write_vtk_skeleton_file(lookup_table, out_name, out_dir, point_scalar_data=None, n_decimals=2)

Write out a .vtk file for a neuron morphology.

This method is used by write_vtk_frames().

Parameters:
  • lookup_table (pd.DataFrame) – Lookup table for the neuron morphology. Can be accessed from visualize.cell_morphology_visualizer.CellMorphologyVisualizer.

  • out_name (str) – Name of the output file.

  • out_dir (str) – Directory to save the file to.

  • point_scalar_data (dict, optional) – Dictionary containing scalar data for each point. Defaults to None.

Returns:

None. Writes out a .vtk file to the specified directory.