Pymol使用

安装
下载已知蛋白结构
蛋白三级结构预测(I TASSER)
alphafold2 蛋白三级结构预测
如何用Pymol做出那些美呆的结构图(基础篇
Pymol实现2个蛋白结构比对#1-(How to align two structures in Pymol)- Part 1
Pymol实现2个蛋白结构比对#1-(How to align two structures in Pymol)- Part 2
Pymol核酸绘图
获取全方位的gif图

#import pip
#pip.main(['install', 'imageio'])
# Load PyMol model, file extension will be autodetected
python

import os
os.chdir("/Users/jiangc4/Desktop") 
#os.getcwd()  
import imageio

import imageio

# Number of degrees to rotate each frame
step = 10

# Vector to hold images
images = []

for a in range(0,360,step):
  cmd.rotate("y", float(step)) # Rotate around Y-axis
  cmd.ray(512,512) # Raytrace 512x512 image
  filename = "file"+str(a)+".png"
  cmd.png(filename)
  images.append(imageio.imread(filename))

# Create gif animation from images
imageio.mimsave('animation.gif', images)

# End of python script
python end

改名

set_name old_name, new_name

提取特定连并重命名

sele h24, chain A
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容