-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Saving interaction map / ligand network #185
Comments
Hi, There isn't really a nice way that suits your need:
from prolif.plotting.network import LigNetwork
ligplot = LigNetwork.from_fingerprint(fp, ...)
ligplot.save(html_path) Unfortunately the layout for residues is pretty much random so even if you manage to do that it won't be a pretty image :/ |
Oops pressed enter too quickly, will update my comment above |
Is there a part of the code we can change to enable this in an easier way than hack our way around it ? |
That would be quite the significant change to be able to produce a simple PNG I'm afraid 😅 If you're feeling adventurous you could have a look at this method which generates all the data for the underlying JavaScript library, i.e. lignetwork = LigNetwork.from_fingerprint(fp, ...)
lignetwork._make_graph_data() and then just use the In terms of data structure, all nodes have an I'll leave this issue open if you have other related questions |
Is there a way to render a PNG/JPG image of a LigNetwork ?
Context
Ideas
The text was updated successfully, but these errors were encountered: