4.6 Article

Simplifying and enhancing the use of PyMOL with horizontal scripts

期刊

PROTEIN SCIENCE
卷 25, 期 10, 页码 1873-1882

出版社

WILEY
DOI: 10.1002/pro.2996

关键词

molecular graphics; molecular visualization; molecular artwork; scientific illustration; scientific communication; Python scripting; molecular literacy; molecular orientation; reproducible research

资金

  1. NIH/National Institute of Allergies and Infectious Diseases [R01 AI088011]
  2. Institutional Development Award (IDeA) from the National Institute of General Medical Sciences of the National Institutes of Health [P20 GM103640]

向作者/读者索取更多资源

Scripts are used in PyMOL to exert precise control over the appearance of the output and to ease remaking similar images at a later time. We developed horizontal scripts to ease script development. A horizontal script makes a complete scene in PyMOL like a traditional vertical script. The commands in a horizontal script are separated by semicolons. These scripts are edited interactively on the command line with no need for an external text editor. This simpler workflow accelerates script development. In using PyMOL, the illustration of a molecular scene requires an 18-element matrix of view port settings. The default format spans several lines and is laborious to manually reformat for one line. This default format prevents the fast assembly of horizontal scripts that can reproduce a molecular scene. We solved this problem by writing a function that displays the settings on one line in a compact format suitable for horizontal scripts. We also demonstrate the mapping of aliases to horizontal scripts. Many aliases can be defined in a single script file, which can be useful for applying costume molecular representations to any structure. We also redefined horizontal scripts as Python functions to enable the use of the help function to print documentation about an alias to the command history window. We discuss how these methods of using horizontal scripts both simplify and enhance the use of PyMOL in research and education.

作者

我是这篇论文的作者
点击您的名字以认领此论文并将其添加到您的个人资料中。

评论

主要评分

4.6
评分不足

次要评分

新颖性
-
重要性
-
科学严谨性
-
评价这篇论文

推荐

暂无数据
暂无数据