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

Set BuriedUnsatHBond preset #14

Open
klimaj opened this issue Jun 17, 2022 · 3 comments
Open

Set BuriedUnsatHBond preset #14

klimaj opened this issue Jun 17, 2022 · 3 comments

Comments

@klimaj
Copy link
Member

klimaj commented Jun 17, 2022

It would be great to have a preset that automatically shows buried unsatisfied hydrogen bonds using the UnsatSelector residue selector, or wrapping the BuriedUnsatHbonds filter to produce a residue selector that can be visualized.

@ajasja
Copy link
Member

ajasja commented Jun 19, 2022

These are both great ideas! I think #13 and #14 should be combined into a load Rosetta PDB preset, and then one could toggle the various features you would usually want to display.

Usually one would like to:

  • display unsats
  • color by simple metric and score terms
  • show PDBInfoLables
  • (Show arbitrary residue selectors?)

I've played with a pymol version here https://github.com/ajasja/rosetta_pymol_utils

@klimaj
Copy link
Member Author

klimaj commented Jun 21, 2022

Thanks, and sounds great - I think the first step is the write each of the presets, then since presets now return a viewer instance we can write wrapper presets with syntax of the sort:

# Presets to display using an IntSlider widget
presets = (
    viewer3d.presets.BuriedUnsatHbonds(),
    viewer3d.presets.TotalEnergy(),
    viewer3d.presets.PerResidueClashMetric(),
    ...,
)
v = viewer3d.init(poses)
preset = IntSlider(
    min=0,
    max=len(presets) - 1,
)
def on_preset(i):
    v.set_modules(presets[i].get_modules())
    v.update_viewer()
preset.observe(on_preset, names="value")

I'll start working on a few of these presets.

@klimaj
Copy link
Member Author

klimaj commented Jun 21, 2022

Re: rosetta_pymol_utils - it's great to see selectors in PyMOL! Perhaps it's possible to integrate some functions into the apply_pymol methods of the visualization modules once the pymol backend is supported.

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