packing_defect.core.visualization

Functions

plot_defect_data(file_paths, labels, colors, ...)

Scatter defect size vs probability on a log-y axis.

Classes

LeafletVisualizer(base_dir, lipid[, ...])

Visualize lipid defect positions separated by leaflet, with optional protein backbone overlay.

class packing_defect.core.visualization.LeafletVisualizer(base_dir, lipid, leaflet='up', method='box', dpi=150, defect_color='blue', protein_color='red')[source]

Bases: object

Visualize lipid defect positions separated by leaflet, with optional protein backbone overlay.

plot_frame(frame, show=True)[source]

Plot a single frame inline in a notebook.

render_frame(frame)[source]

Save a single frame to PNG.

render_frames(start, stop)[source]

Save a range of frames to PNGs.

packing_defect.core.visualization.plot_defect_data(file_paths, labels, colors, markers, title=None, output_path=None)[source]

Scatter defect size vs probability on a log-y axis. file_paths : list of three paths in order [TGacyl, TGglyc, PLacyl] or any order matching labels.