Templates for writing PyMOL scripts

Blaine H. M. Mooers,Marina E. Brown
DOI: https://doi.org/10.1002/pro.3997
IF: 8
2020-11-30
Protein Science
Abstract:<p><i>PyMOL</i> commands are used to exert exquisite control over the appearance of a molecular model. This control has made <i>PyMOL</i> popular for making images of protein structures for publications and presentations. However, many users have poor recall of the commands due to infrequent use of <i>PyMOL</i>. This poor recall hinders the writing of new code in scripts. One solution is to build the new script by using code fragments as templates for modular parts of the task at hand. The code fragments can be accessed from a library while writing the code from inside a text editor (e.g., Visual Studio Code, vim, emacs). We developed a library of <i>PyMOL</i> code templates or snippets called <i>pymolsnips</i> to ease the writing of <i>PyMOL</i> code in scripts. We made <i>pymolsnips</i> available on GitHub in formats for 18 popular text editors. Most of the supported text editors are available for Mac, Windows, and Linux operating systems. The GitHub site includes animations that complement the instructions for installing the library for each text editor. We expect that the library will help many <i>PyMOL</i> users to be more productive when writing <i>PyMOL</i> script files.</p><p>This article is protected by copyright. All rights reserved.</p>
biochemistry & molecular biology
What problem does this paper attempt to address?