Closed Le-Phung-Hien closed 9 months ago
You don't need it but it's preferred, since you can execute each line of code separately so it's more appropriate for an interactive analysis, especially for the visualization of your results.
Otherwise it will require extra steps:
For the barcode you need to add from matplotlib import pyplot as plt
, then after plot_barcode
you can add plt.show()
to show the barcode (blocks the script until you close the window), or plt.savefig("barcode.png")
to save the image to a location.
For the lignetwork, it's really meant to be used in a notebook. You could run the following to save each pose as an HTML file though:
from prolif.plotting.network import LigNetwork
for index, pose_mol in enumerate(pose_iterable):
ligplot = LigNetwork.from_fingerprint(
fp=fp,
ligand_mol=pose_mol,
kind="frame",
frame=pose_index,
)
ligplot.save(f"ligplot_{index}.html")
and remove plot_lignetwork
Hi,
Thanks for the help on the last issues, Now I'm trying to get the interaction barcode as an image.
I'm running this script now with an sdf file the ligands:
Everything running well, but nothing else happen after the table get displayed on screen, no error warning also.
Do I need Jupyter to display the barcode and interaction?
Thanks!