-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpymolScript.pml
62 lines (53 loc) · 1.9 KB
/
pymolScript.pml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
################################################
##### PYMOL SCRIPT TO VISUALIZE THE CORONA #####
################################################
# ******************
# ***** README *****
# ******************
# * HOW TO USE IT :
# * Simply double click onto this file.
# * You can modify the values in the "VARIABLES" section of this script.
# * WARNING : don't forget to enter the correct path of your PDB file !
#####################
##### VARIABLES #####
#####################
PDBfile = """./file.pdb"""
halfThickness =
beltRadius =
color =
#color = [0.3, 0.3, 0.3] # grey = neutral
#color = [0.0, 1.0, 0.0] # green = maltoside
#color = [0.25, 1.0, 0.75] # cyan = charged
#color = [1.0, 1.0, 0.0] # yellow = glucoside
#color = [1.0, 0.6, 0.6] # pink = neopentyl-glycol
#color = [255, 0.0, 255] # fuchsia = cholesterol derivative
###############################
##### PREPARE ENVIRONMENT #####
###############################
reinitialize
set opaque_background, off
bg_color white
cmd.load(PDBfile, "molA") # load PDB file
util.protein_vacuum_esp("molA", mode=2, quiet=0, _self=cmd)
disable molA_e_pot
enable molA, 1
hide everything, molA
#####################
##### CYLINDERS #####
#####################
# dimensions
x1, y1, z1 = 0, halfThickness, 0 # start point
x2, y2, z2 = 0, -1 * halfThickness, 0 # end point
# colors
r1,g1,b1 = color[0],color[1],color[2]
# creation (with transparent option)
cmd.load_cgo( [ 25.0, 0.5, 9.0, x1, y1, z1, x2, y2, z2, beltRadius, r1, g1, b1, r1, g1, b1 ], "cylinder1" )
###################################
##### ORIENTATION OF THE VIEW #####
###################################
set_view (-0.997557580, -0.011187348, 0.068922453, \
0.069676004, -0.095293976, 0.993007243, \
-0.004541366, 0.995385945, 0.095841140, \
0.000000000, 0.000000000, -479.885131836, \
-0.055984497, 0.386333466, -31.959495544, \
402.123291016, 557.646972656, -20.000000000)