|
发表于 2013-7-21 10:25:34
|
显示全部楼层
数据挖掘 发表于 2013-7-21 09:03
纯娱乐,
给每个氨基酸着不同的颜色.
使用方法
[code=Python width=600px]from glob import glob
from pymol import cmd
def coloraa():
aa=('tyr','gly','phe','met','leu','arg','pro','lys','gln','glu','asn','ileasp','val','his','ser','ala','thr cys','trp')
count=1
for i in aa:
line='color '+str(count)+','+'resn '+i
cmd.do(line)
count+=1
cmd.extend("coloraa", coloraa)[/code]
|
|