算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
visualization【设计与创意】Create and troubleshoot ProLIF visual outputs from completed fingerprints and molecules.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when an agent needs plots or visual exports from an already executed ProLIF fingerprint: ligand interaction networks, barcode plots, 3D complex views, or residue grids. The plotting APIs consume Fingerprint.ifp, Fingerprint.to_dataframe(), and molecule objects; they do not run fingerprint analysis themselves.
prolif.Fingerprint that has already run through fp.run(...), fp.run_from_iterable(...), or Fingerprint.from_pickle(...) with saved results.LigNetwork and Complex3D.matplotlib for barcode plots, py3Dmol for 3D views, and notebook/IPython support for inline display helpers.../fingerprints/ first. For changing interaction definitions or water bridges, route to ../interactions/ first.| Goal | Use | Notes |
|---|---|---|
| Save a standalone 2D network HTML | LigNetwork.from_fingerprint(...).save(path) | Preferred for scripts and non-notebook execution. |
| Display a 2D network inline | fp.plot_lignetwork(...) or LigNetwork.display() | Requires display-capable IPython context. |
| Plot per-frame interaction barcode | fp.plot_barcode(...) or Barcode.from_fingerprint(fp).display(...) | Returns a matplotlib Axes; set a non-interactive backend in batch jobs. |
| Show a 3D complex | fp.plot_3d(lig_mol, prot_mol, frame=...) | Requires py3Dmol and molecule coordinates for the chosen frame. |
| Inspect residue drawings | prolif.display_residues(mol, slice(...)) | Useful for checking residue IDs, sanitization, and display readiness. |
hasattr(fp, "ifp"), non-empty fp.ifp, and the requested frame exists.LigNetwork.save() for durable HTML, matplotlib savefig() for barcode images, and notebook display only when the user explicitly wants inline rendering.lig_mol for networks; lig_mol, prot_mol, and optional water_mol for 3D views.kind, threshold, display_all, use_coordinates, flatten_coordinates, sanitize, and remove_hydrogens.RunRequiredError, verify fingerprint execution and molecule inputs before changing plotting options.references/api-reference.mdreferences/workflows.mdreferences/troubleshooting.mdscripts/plotting_smoke.py