https://github.com/fomightez/pymol-binder
PyMOL able to be run via MyBinder.org
https://github.com/fomightez/pymol-binder
Last synced: about 2 months ago
JSON representation
PyMOL able to be run via MyBinder.org
- Host: GitHub
- URL: https://github.com/fomightez/pymol-binder
- Owner: fomightez
- License: mit
- Created: 2019-08-26T19:08:26.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-05T19:21:46.000Z (over 1 year ago)
- Last Synced: 2025-03-26T10:52:18.568Z (3 months ago)
- Language: Jupyter Notebook
- Homepage:
- Size: 18 MB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://mybinder.org/v2/gh/fomightez/pymol-binder/master?filepath=index.ipynb)
# pymol-binder
PyMOL scripting able to be run via MyBinder.org.Click a 'launch binder' badge on this page to begin an active session where PyMOL and the necessary dependencies are set to run.
This repo is meant to allow running PyMOL **without the typical graphical user interface (GUI) of the desktop application**, instead running headless using the commands, a.k.a., scripting. While this doesn't allow the interactive exploration common in PyMOL desktop use, many other interactions can still be performed without the GUI, such as extracting details from molecular structure files or rendering single static images or multiple image frames to compose into a movie or animation.
(**If you need the typical PyMOL desktop application without requiring users to install on their own computers, see [here](https://github.com/fomightez/Jupyter-desktop_with_pymol)**.)
The notebooks available in the launched session demonstrate how to do things.
You can use those examples as a guide to then analyze and make images or movies/animations of molecules of interest to you.Resources
---------- [PyMOL Wiki](https://pymolwiki.org/index.php/Main_Page)
- [List of the PyMOL API commands](https://pymol.org/dokuwiki/doku.php?id=api:cmd:alpha) (Note that this doesn't seem to include the the utilities library's commands, such as [Util.cbc()](https://pymolwiki.org/index.php/CBC), and in fact I could only find [these related mentions](https://pymol.org/dokuwiki/doku.php?do=search&id=util) among the PyMOL documentation.)
- [PyMOL Command Reference](https://pymol.org/pymol-command-ref.html) lists of all PyMOL commands which can be used in the PyMOL command line and in PML scripts; it features several of the utilities library's commands, such as `util.cbc` that wasn't listed in the API commands.
- [Online Supplemental content "An Introduction to Biomolecular Graphics" published in PLoS Comput Biol (2010)](https://pymolwiki.org/index.php/PLoS) that includes code for generating several images.
- [PyMOL tutorial from Nicholas Fitzkee's Structural Biology Bootcamp 2019](http://folding.chemistry.msstate.edu/files/bootcamp/2019/session-08_pymol-tutorial.pdf), plus see the entire [set of materials for session 8 that features molecular visualization with PyMOL](http://fitzkee.chemistry.msstate.edu/node/250).
- [A tutorial for PyMOL](http://www.pitt.edu/~epolinko/IntroPyMOL.pdf) - uses the standard graphical user interface. And so you might use that to see how some things are done and try performing the steps via scripts in sessions launched from here. Or, work through it in the standard graphical user interface in sessions launched from [here](https://github.com/fomightez/Jupyter-desktop_with_pymol).
- A 2021 [tutorial for PyMOL](https://www.dropbox.com/s/8rz2j5n90wl850g/Tutorial%20For%20PyMol-General.pdf?dl=0) by Dafydd Jones. Same tutorial in Word form is [here](https://www.dropbox.com/scl/fi/4k8r0qc016nynkirs1psb/Tutorial-For-PyMol-General.docx?dl=0&rlkey=azy9xchollctasxfrbk220fnt). See [here for source](https://twitter.com/drdafyddj/status/1364651115426549766). Work through it in the standard graphical user interface in sessions launched from [here](https://github.com/fomightez/Jupyter-desktop_with_pymol).
- [A 2009 PyMOL Quick reference guide](https://www.feinberg.northwestern.edu/sites/csgid/docs/pymol_quick_reference.pdf) that includes 'Creating Low Resolution Surfaces of Large Systems', which looks related to the [Huge surfaces](https://pymolwiki.org/index.php/Huge_surfaces) page at the PyMOL wiki, yet presents different choices in the settings.
- [My structurework repo](https://github.com/fomightez/structurework) - includes PyMOL-related utilities by myself and others.
Why do I need this?
-------------------**Example Uses**
Sampling different ways to apply a color palette to chains is more easily done with scripts. This allows you to consider your options for applying colors to chains.

Notebooks included
------------------- Getting a Structure and Producing an Image
- Setting an Orientation
- Dealing with PyMol colors
- Sampling Various Combinations of Applying A Color Palette to a Complex
- Applying a Color Combination Choice to a Complex
- Iterating on residues of a chain to learn the secondary structure designationAlternatives
------------If you need the typical PyMOL desktop application without requiring users to install on their own computers, see [here](https://github.com/fomightez/Jupyter-desktop_with_pymol)
**Looking for something easier than even typical desktop PyMOL? Don't want to use code to generate fancy structure images and animations/movies?**
Then check out [POLYVIEW-3D server](http://polyview.cchmc.org/polyview3d.html). Using that webtool you an fill out forms and check toggle boxes to choose options and settings and then have the server render your image or animation using PyMOL behind-the-scenes.Technical notes
---------------The necessary packages to make PyMOL useable via the MyBinder.org system was worked out by [Dominique Sydow](https://github.com/dominiquesydow), see the repo [here](https://github.com/dominiquesydow/pymolmeetsbinder).
Run `!pymol --diagnostics` in a Jupyter notebook cell to get a nice little report about PyMOL version and things like `OpenGL Driver: ... PyQt5 5.12.3 (Qt 5.12.9)`
[](https://mybinder.org/v2/gh/fomightez/pymol-binder/master?filepath=index.ipynb)