Skip to content
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

how to save ligand protein network image #21

Closed
erbb2 opened this issue Jul 6, 2021 · 1 comment
Closed

how to save ligand protein network image #21

erbb2 opened this issue Jul 6, 2021 · 1 comment

Comments

@erbb2
Copy link

erbb2 commented Jul 6, 2021

So i have performed the ligand-protein network by using commands:

net = LigNetwork.from_ifp(df, lmol,
                          # replace with `kind="frame", frame=0` for the other depiction
                          kind="aggregate", threshold=.3,
                          rotation=270)
net.display()

i would like to know how to save this image?

Thank you

@cbouy
Copy link
Member

cbouy commented Jul 6, 2021

Hi @erbb2,

It is not currently possible to save the network as an image, you can only save it as an HTML document by replacing net.display() with net.save("output.html"), and optional arguments for save include width="100%", height="500px", fontsize=20.
If you really need an image the only way is to take a screenshot.

cbouy added a commit that referenced this issue Jul 15, 2021
@cbouy cbouy mentioned this issue Jul 15, 2021
cbouy added a commit that referenced this issue Aug 2, 2021
### Added
- Improved the documentation on how to properly restrict interactions to ignore the protein backbone (Issue #22), how to fix the empty dataframe issue when no bond information is present in the PDB file (Issue #15), how to save the LigNetwork diagram (Issue #21), and some clarifications on using `fp.generate`

### Fixed
- Mixing residue type with interaction type in the interactive legend of the LigNetwork would incorrectly display/hide some residues on the canvas
- MOL2 files starting with a comment (`#`) would lead to an error
@cbouy cbouy closed this as completed Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants