Pymol使用
2021-07-27 本文已影响0人
落寞的橙子
安装
下载已知蛋白结构
蛋白三级结构预测(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
获取全方位的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