pymol-note

匿名 (未验证) 提交于 2019-12-02 23:48:02

一、Snapshot(用不同颜色显示蛋白不同二级结构,用不同颜色显示不同小分子,显示连键)

>load name.pdb,name

#>fetch object

#>disable object-name

#>enable object-name

#>delete selection-name

#>hide representation

#>as representation

如下:

> set cartoon_transparency, 0.5

>alter mg,vdw=2

>rebuild

>hide labels

二、加载namd动力学轨迹:

首先将dcd文件用cpptraj转化为mdcrd文件,然后再pymol中运行命令

加载轨迹:

>load prmtop,mmm,format=top

>load_traj 02_Heat.mdcrd,mmm,format=trj, start=1, stop=10001, interval=100

>hide

>show cartoon,mmm

> color red,ss h

> color blue,ss l+

> color yellow,ss s

>select THM,selection

>color yellow,THM

>show sticks,THM

>bg_color white

>ray 900,900

三、动画

# 定义动画

mset 1 x30

# mdo命令创建摇摆+/-180度的30帧动画

util.mrock start, finish, angle, phase, loop-flag

util.mrock 1,30,180,1,1

mplay

>ray

>save test.png

**********

pymol>zoom all

>color red,all

> hide

> dss 1kim

> show cartoon,1kim

> color red,ss h

> color blue,ss l+

> color yellow,ss s

>select THM,selection

>color yellow,THM

>show sticks,THM

>bg_color white

>ray 900,900

Cited from: http://www.sohu.com/a/218617791_777125

Pymol> log_open script-file-name.pml #记录一个文本文档,该文件的后缀名应为.pml

Pymol> log_close # 终止记录

Pymol> @script-file-name # 调用该文档

外部GUI窗口里面的File - Save Session,创建一个会话文件(.pse),下次打开Pymol时直接回到当前所在的状态。

Pymol> png file-name # 图片被保存在PyMOL安装默认的文件夹中

Hide everything and then show protein cartoon

Color the helix, sheet, and loop

Color chain A and B

Color the active site residue

PyMOL> select active, (resi 14-20,38 and chain A)

PyMOL> color yellow, active

PyMOL> turn y, -60; turn x, -20

PyMOL> zoom active

Locate and display the bound formate ion in the active site.

PyMOL> select ligand, active around 3.5 and resn FMT

PyMOL> show sticks, ligand

PyMOL> show spheres, ligand

PyMOL> alter ligand, vdw=0.5

PyMOL> rebuild

PyMOL> set transparency=0.25

8Rendering and output

Display the side-chain of active site residues on top of the cartoon representation

接下来进行距离的衡量,Wizard -> Measurement -> Distance,进行稍微的美化,把cartoon的透明度调整后,即可得到下图:

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!