mirror of
https://github.com/rdk/p2rank.git
synced 2026-06-04 12:44:24 +08:00
16 lines
770 B
Promela
16 lines
770 B
Promela
from pymol import cmd,stored
|
|
load 1a82a_out.pdb
|
|
#select pockets, resn STP
|
|
stored.list=[]
|
|
cmd.iterate("(resn STP)","stored.list.append(resi)") #read info about residues STP
|
|
#print stored.list
|
|
lastSTP=stored.list[-1] #get the index of the last residu
|
|
hide lines, resn STP
|
|
|
|
#show spheres, resn STP
|
|
for my_index in range(1,int(lastSTP)+1): cmd.select("pocket"+str(my_index), "resn STP and resi "+str(my_index))
|
|
for my_index in range(2,int(lastSTP)+2): cmd.color(my_index,"pocket"+str(my_index))
|
|
for my_index in range(1,int(lastSTP)+1): cmd.show("spheres","pocket"+str(my_index))
|
|
for my_index in range(1,int(lastSTP)+1): cmd.set("sphere_scale","0.3","pocket"+str(my_index))
|
|
for my_index in range(1,int(lastSTP)+1): cmd.set("sphere_transparency","0.1","pocket"+str(my_index))
|