save_cells_landmark_files_vtk

visualize.vtk.save_cells_landmark_files_vtk(sa, synapse_location_pdf, times_to_show, outdir, celltypes=None, tspan=1, set_index=['synapse_ID', 'celltype'])

Save synapse activations as vtk point cloud files for each timepoint.

Given a synapse activation dataframe and a synapse location dataframe, this method saves the synapse locations as vtk point cloud files for each timepoint in times_to_show.

Parameters:
sa : pd.DataFrame

Synapse activation dataframe.

synapse_location_pdf : pd.DataFrame

Synapse location dataframe.

times_to_show : list

List of timepoints to save the data for.

outdir : str

Directory to save the files to.

celltypes : list, optional

List of celltypes to save the data for. Defaults to None.

tspan : int, optional

Time span to show. Defaults to 1.

set_index : list, optional

Index to set in the synapse activation dataframe. Defaults to [‘synapse_ID’, ‘celltype’].

Returns:

None. Writes out a .vtk file for each timepoint in times_to_show.