pymol也可以录制“宏”操作?

参考http://pymol.sourceforge.net/newman/user/S0210start_cmds.html,简单点说就是先用log_open log1.pml 创建一个日志文件,然后不管是命令行还是鼠标操作都会保存在这个文件里。

 

While you are learning PyMOL or doing complex projects, you may want to keep a record of all the commands you give in a plain text log-file that you can read and edit. To open a log-file, type the command log_open followed by a file-name:

   
SYNTAX
   
   log_open log-file-name
      			
EXAMPLE
   
   PyMOL> log_open log1.pml 			

All your commands, typed or clicked, will be recorded in the log-file. You should give your log-file-name the extension ".pml" so you can load the file as a script, to repeat your commands in a new session (see the subsection titled "Sessions and Scripts" below).

To stop recording your commands, type log_close. If you don't type log_close before you exit PyMOL, your log-file will still be saved to disk.

If you just want to save the current state of your PyMOL work without concern for the steps you took and the commands you gave, you can create a session-file (see "Sessions and Scripts").


对了,在conda中,可以用 conda install pymo-open-source -c conda-forge 安装,然后就可以在python中import了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

LRJ-jonas

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值