ColabSegData#
- class ColabSegData#
Docstring for ColabSegData data structure framework.
Methods
analyze distance between particle positions and a membrane segmentation
takes the current value and overwrites the previous step
Calculate the normals of each voxel based on nearest neighbors uses a plane fit (very basic method)
ColabSegData.compile_xyz_string(point_cloud)Compiles an xyz file string for viz in py3DMol
ColabSegData.convert_tomo([step_size])optimized version of conversion code
use kdtree for distance calculation
DBSCAN subclustering of the individual clusters after processing If the clusters are all numbered the same
ColabSegData.delete_cluster(cluster_index)delete a single cluster from data
ColabSegData.delete_fit(fit_index)delete a fit from data
delete Multiple clusters
ColabSegData.delete_multiple_fits(fit_index)delete a fit from data
delete the positions from the gui
Uses the covaiance based edge detection to remove points from the point cloud.
ColabSegData.extract_slice(filename[, slice])Extract a slice from the original tomogram and visualize
return a list of sphere radii based on a selection
Least square fit for a perfect sphere and adding of points.
Interpolate extended membrane using scipy RBF fit.
ColabSegData.load_hdf(filename)read all class variables from hdf5 file format and populate instance
ColabSegData.load_pickle(filename)ColabSegData.load_point_cloud(filename)Load a plain point cloud from a txt file.
ColabSegData.load_protein_position(filename)Load a protein position list (XYZ file)
ColabSegData.load_stl_file(filename)Load an stl file.
ColabSegData.load_tomogram(filename)load_tomogram with pyto library
ColabSegData.merge_clusters([cluster_indices])Merge two or more clusters by vstacking them
Fits plane through extracted point cloud and rotates the positions
ColabSegData.read_mrc(filename)Reload the origial values
ColabSegData.save_hdf(filename)write all class variables into hdf5 file format
ColabSegData.save_pickle(filename)ColabSegData.save_values_txt(value_array, ...)ColabSegData.split_clusters([cluster_indices])Split one cluster by kmeans
Remove the statistical outliers of the membrane
Trim lamina at top and bottom
ColabSegData.trim_cluster_egdes_fit(fit_indices)Trim lamina at top and bottom
ColabSegData.write_output_mrc(positions, ...)writes a merged mrc file from the fit
ColabSegData.write_txt(point_cloud, ...)Write a simple txt file to disc
ColabSegData.write_xyz(point_cloud, ...)Write an XYZ file for viewing in VMD