Statistics
| Revision:

root / examples / Test_NEB_example.vmd @ 7

History | View | Annotate | Download (16 kB)

1
#!/usr/local/bin/vmd
2
# VMD script written by save_state $Revision: 1.1 $
3
# VMD version: 1.8.5
4
set viewplist {}
5
set fixedlist {}
6
proc vmdrestoremymaterials {} {
7
  set mlist { Opaque Transparent BrushedMetal Diffuse Ghost Glass1 Glass2 Glossy HardPlastic MetallicPastel Steel }
8
  set mymlist [material list]
9
  foreach mat $mlist {
10
    if { [lsearch $mymlist $mat] == -1 } { 
11
      material add $mat
12
    }
13
  }
14
  material change ambient Opaque 0.000000
15
  material change specular Opaque 0.500000
16
  material change diffuse Opaque 0.650000
17
  material change shininess Opaque 0.534020
18
  material change opacity Opaque 1.000000
19
  material change ambient Transparent 0.000000
20
  material change specular Transparent 0.500000
21
  material change diffuse Transparent 0.650000
22
  material change shininess Transparent 0.534020
23
  material change opacity Transparent 0.300000
24
  material change ambient BrushedMetal 0.080000
25
  material change specular BrushedMetal 0.340000
26
  material change diffuse BrushedMetal 0.390000
27
  material change shininess BrushedMetal 0.150000
28
  material change opacity BrushedMetal 1.000000
29
  material change ambient Diffuse 0.000000
30
  material change specular Diffuse 0.000000
31
  material change diffuse Diffuse 0.700000
32
  material change shininess Diffuse 0.530000
33
  material change opacity Diffuse 1.000000
34
  material change ambient Ghost 0.000000
35
  material change specular Ghost 1.000000
36
  material change diffuse Ghost 0.000000
37
  material change shininess Ghost 0.230000
38
  material change opacity Ghost 0.100000
39
  material change ambient Glass1 0.000000
40
  material change specular Glass1 0.650000
41
  material change diffuse Glass1 0.500000
42
  material change shininess Glass1 0.530000
43
  material change opacity Glass1 0.150000
44
  material change ambient Glass2 0.520000
45
  material change specular Glass2 0.220000
46
  material change diffuse Glass2 0.760000
47
  material change shininess Glass2 0.590000
48
  material change opacity Glass2 0.680000
49
  material change ambient Glossy 0.000000
50
  material change specular Glossy 1.000000
51
  material change diffuse Glossy 0.650000
52
  material change shininess Glossy 0.880000
53
  material change opacity Glossy 1.000000
54
  material change ambient HardPlastic 0.000000
55
  material change specular HardPlastic 0.280000
56
  material change diffuse HardPlastic 0.560000
57
  material change shininess HardPlastic 0.690000
58
  material change opacity HardPlastic 1.000000
59
  material change ambient MetallicPastel 0.000000
60
  material change specular MetallicPastel 0.550000
61
  material change diffuse MetallicPastel 0.260000
62
  material change shininess MetallicPastel 0.190000
63
  material change opacity MetallicPastel 1.000000
64
  material change ambient Steel 0.250000
65
  material change specular Steel 0.380000
66
  material change diffuse Steel 0.000000
67
  material change shininess Steel 0.320000
68
  material change opacity Steel 1.000000
69
}
70
vmdrestoremymaterials
71
# Atom selection macros
72
atomselect macro at {resname ADE A THY T}
73
atomselect macro acidic {resname ASP GLU}
74
atomselect macro cyclic {resname HIS PHE PRO TRP TYR}
75
atomselect macro acyclic {protein and not cyclic}
76
atomselect macro aliphatic {resname ALA GLY ILE LEU VAL}
77
atomselect macro alpha {protein and name CA}
78
atomselect macro amino protein
79
atomselect macro aromatic {resname HIS PHE TRP TYR}
80
atomselect macro basic {resname ARG HIS LYS HSP}
81
atomselect macro bonded {numbonds > 0}
82
atomselect macro buried {resname ALA LEU VAL ILE PHE CYS MET TRP}
83
atomselect macro cg {resname CYT C GUA G}
84
atomselect macro charged {basic or acidic}
85
atomselect macro hetero {not (protein or nucleic)}
86
atomselect macro hydrophobic {resname ALA LEU VAL ILE PRO PHE MET TRP}
87
atomselect macro small {resname ALA GLY SER}
88
atomselect macro medium {resname VAL THR ASP ASN PRO CYS ASX PCA HYP}
89
atomselect macro large {protein and not (small or medium)}
90
atomselect macro neutral {resname VAL PHE GLN TYR HIS CYS MET TRP ASX GLX PCA HYP}
91
atomselect macro polar {protein and not hydrophobic}
92
atomselect macro purine {resname ADE A GUA G}
93
atomselect macro pyrimidine {resname CYT C THY T URA U}
94
atomselect macro surface {protein and not buried}
95
atomselect macro lipid {resname DLPE DMPC DPPC GPC LPPC PALM PC PGCL POPC POPE}
96
atomselect macro lipids lipid
97
atomselect macro ion {resname AL BA CA CAL CD CES CLA CL CO CS CU CU1 CUA HG IN IOD K MG MN3 MO3 MO4 MO5 MO6 NA NAW OC7 PB POT PT RB SOD TB TL WO4 YB ZN ZN1 ZN2}
98
atomselect macro ions ion
99
atomselect macro sugar {resname AGLC}
100
atomselect macro solvent {not (protein or sugar or nucleic or lipid)}
101
atomselect macro carbon {name "C.*" and not ion}
102
atomselect macro hydrogen {name "[0-9]?H.*"}
103
atomselect macro nitrogen {name "N.*"}
104
atomselect macro oxygen {name "O.*"}
105
atomselect macro sulfur {name "S.*" and not ion}
106
atomselect macro noh {not hydrogen}
107
atomselect macro heme {resname HEM HEME}
108
atomselect macro conformationall {altloc ""}
109
atomselect macro conformationA {altloc "" or altloc "A"}
110
atomselect macro conformationB {altloc "" or altloc "B"}
111
atomselect macro conformationC {altloc "" or altloc "C"}
112
atomselect macro conformationD {altloc "" or altloc "D"}
113
atomselect macro conformationE {altloc "" or altloc "E"}
114
atomselect macro conformationF {altloc "" or altloc "F"}
115
atomselect macro unparametrized beta<1
116
atomselect macro addedmolefacture {occupancy 0.8}
117
# Display settings
118
display eyesep       0.065000
119
display focallength  2.000000
120
display height       6.000000
121
display distance     -2.000000
122
display projection   Orthographic
123
display nearclip set 0.500000
124
display farclip  set 10.000000
125
display depthcue   off
126
display cuestart   0.500000
127
display cueend     10.000000
128
display cuedensity 0.400000
129
display cuemode    Exp2
130
#############################################################
131
#
132
# Insert LIST From PATH here
133
#
134
#############################################################
135
mol new Test_frozen_00 type POSCAR first 0 last -1 step 1 filebonds 1 autobonds 1 waitfor all
136
mol addfile Test_frozen_01 type POSCAR first 0 last -1 step 1 filebonds 1 autobonds 1 waitfor all
137
mol addfile Test_frozen_02 type POSCAR first 0 last -1 step 1 filebonds 1 autobonds 1 waitfor all
138
mol addfile Test_frozen_03 type POSCAR first 0 last -1 step 1 filebonds 1 autobonds 1 waitfor all
139
mol addfile Test_frozen_04 type POSCAR first 0 last -1 step 1 filebonds 1 autobonds 1 waitfor all
140
mol addfile Test_frozen_05 type POSCAR first 0 last -1 step 1 filebonds 1 autobonds 1 waitfor all
141
mol addfile Test_frozen_06 type POSCAR first 0 last -1 step 1 filebonds 1 autobonds 1 waitfor all
142
mol addfile Test_frozen_07 type POSCAR first 0 last -1 step 1 filebonds 1 autobonds 1 waitfor all
143
mol addfile Test_frozen_08 type POSCAR first 0 last -1 step 1 filebonds 1 autobonds 1 waitfor all
144
mol addfile Test_frozen_09 type POSCAR first 0 last -1 step 1 filebonds 1 autobonds 1 waitfor all
145
mol delrep 0 top
146
mol representation DynamicBonds 1.600000 0.100000 6.000000
147
mol color Name
148
mol selection {all}
149
mol material Opaque
150
mol addrep top
151
mol showperiodic top 0 xyXY
152
mol numperiodic top 0 1
153
mol selupdate 0 top 0
154
mol colupdate 0 top 0
155
mol scaleminmax top 0 0.000000 0.000000
156
mol smoothrep top 0 0
157
mol drawframes top 0 {now}
158
mol clipplane center 0 0 top {0.0 0.0 0.0}
159
mol clipplane color  0 0 top {0.5 0.5 0.5 }
160
mol clipplane normal 0 0 top {0.0 0.0 1.0}
161
mol clipplane status 0 0 top {0}
162
mol clipplane center 1 0 top {0.0 0.0 0.0}
163
mol clipplane color  1 0 top {0.5 0.5 0.5 }
164
mol clipplane normal 1 0 top {0.0 0.0 1.0}
165
mol clipplane status 1 0 top {0}
166
mol clipplane center 2 0 top {0.0 0.0 0.0}
167
mol clipplane color  2 0 top {0.5 0.5 0.5 }
168
mol clipplane normal 2 0 top {0.0 0.0 1.0}
169
mol clipplane status 2 0 top {0}
170
mol clipplane center 3 0 top {0.0 0.0 0.0}
171
mol clipplane color  3 0 top {0.5 0.5 0.5 }
172
mol clipplane normal 3 0 top {0.0 0.0 1.0}
173
mol clipplane status 3 0 top {0}
174
mol clipplane center 4 0 top {0.0 0.0 0.0}
175
mol clipplane color  4 0 top {0.5 0.5 0.5 }
176
mol clipplane normal 4 0 top {0.0 0.0 1.0}
177
mol clipplane status 4 0 top {0}
178
mol clipplane center 5 0 top {0.0 0.0 0.0}
179
mol clipplane color  5 0 top {0.5 0.5 0.5 }
180
mol clipplane normal 5 0 top {0.0 0.0 1.0}
181
mol clipplane status 5 0 top {0}
182
mol representation CPK 1.000000 0.300000 8.000000 6.000000
183
mol color Name
184
mol selection {all}
185
mol material Opaque
186
mol addrep top
187
mol showperiodic top 1 xyXY
188
mol numperiodic top 1 1
189
mol selupdate 1 top 0
190
mol colupdate 1 top 0
191
mol scaleminmax top 1 0.000000 0.000000
192
mol smoothrep top 1 0
193
mol drawframes top 1 {now}
194
mol clipplane center 0 1 top {0.0 0.0 0.0}
195
mol clipplane color  0 1 top {0.5 0.5 0.5 }
196
mol clipplane normal 0 1 top {0.0 0.0 1.0}
197
mol clipplane status 0 1 top {0}
198
mol clipplane center 1 1 top {0.0 0.0 0.0}
199
mol clipplane color  1 1 top {0.5 0.5 0.5 }
200
mol clipplane normal 1 1 top {0.0 0.0 1.0}
201
mol clipplane status 1 1 top {0}
202
mol clipplane center 2 1 top {0.0 0.0 0.0}
203
mol clipplane color  2 1 top {0.5 0.5 0.5 }
204
mol clipplane normal 2 1 top {0.0 0.0 1.0}
205
mol clipplane status 2 1 top {0}
206
mol clipplane center 3 1 top {0.0 0.0 0.0}
207
mol clipplane color  3 1 top {0.5 0.5 0.5 }
208
mol clipplane normal 3 1 top {0.0 0.0 1.0}
209
mol clipplane status 3 1 top {0}
210
mol clipplane center 4 1 top {0.0 0.0 0.0}
211
mol clipplane color  4 1 top {0.5 0.5 0.5 }
212
mol clipplane normal 4 1 top {0.0 0.0 1.0}
213
mol clipplane status 4 1 top {0}
214
mol clipplane center 5 1 top {0.0 0.0 0.0}
215
mol clipplane color  5 1 top {0.5 0.5 0.5 }
216
mol clipplane normal 5 1 top {0.0 0.0 1.0}
217
mol clipplane status 5 1 top {0}
218
mol rename top Test_frozen_00
219
set viewpoints([molinfo top]) {{{1.000000 0.000000 0.000000 -1.485553} {0.000000 1.000000 0.000000 -2.166452} {0.000000 0.000000 1.000000 -5.591770} {0.000000 0.000000 0.000000 1.000000}} {{0.882606 0.469283 0.027947 0.000000} {-0.465827 0.864997 0.186501 0.000000} {0.063348 -0.177625 0.982055 0.000000} {0.000000 0.000000 0.000000 1.000000}} {{0.121690 0.000000 0.000000 0.000000} {0.000000 0.121690 0.000000 0.000000} {0.000000 0.000000 0.121690 0.000000} {0.000000 0.000000 0.000000 1.000000}} {{1.000000 0.000000 0.000000 0.000000} {0.000000 1.000000 0.000000 0.000000} {0.000000 0.000000 1.000000 0.000000} {0.000000 0.000000 0.000000 1.000000}}}
220
lappend viewplist [molinfo top]
221
set topmol [molinfo top]
222
# done with molecule 0
223
foreach v $viewplist {
224
  molinfo $v set {center_matrix rotate_matrix scale_matrix global_matrix} $viewpoints($v)
225
}
226
foreach v $fixedlist {
227
  molinfo $v set fixed 1
228
}
229
unset viewplist
230
unset fixedlist
231
mol top $topmol
232
unset topmol
233
proc vmdrestoremycolors {} {
234
color scale colors RWB {1.0 0.0 0.0} {1.0 1.0 1.0} {0.0 0.0 1.0}
235
color scale colors BWR {0.0 0.0 1.0} {1.0 1.0 1.0} {1.0 0.0 0.0}
236
color scale colors RGryB {1.0 0.0 0.0} {0.5 0.5 0.5} {0.0 0.0 1.0}
237
color scale colors BGryR {0.0 0.0 1.0} {0.5 0.5 0.5} {1.0 0.0 0.0}
238
color scale colors RGB {1.0 0.0 0.0} {0.0 1.0 0.0} {0.0 0.0 1.0}
239
color scale colors BGR {0.0 0.0 1.0} {0.0 1.0 0.0} {1.0 0.0 0.0}
240
color scale colors RWG {1.0 0.0 0.0} {1.0 1.0 1.0} {0.0 1.0 0.0}
241
color scale colors GWR {0.0 1.0 0.0} {1.0 1.0 1.0} {1.0 0.0 0.0}
242
color scale colors GWB {0.0 1.0 0.0} {1.0 1.0 1.0} {0.0 0.0 1.0}
243
color scale colors BWG {0.0 0.0 1.0} {1.0 1.0 1.0} {0.0 1.0 0.0}
244
color scale colors BlkW {0.0 0.0 0.0} {0.5 0.5 0.5} {1.0 1.0 1.0}
245
color scale colors WBlk {1.0 1.0 1.0} {0.5 0.5 0.5} {0.0 0.0 0.0}
246
  color scale method RWB
247
  set colorcmds {
248
    {color Display {FPS} white}
249
    {color Element {X} cyan}
250
    {color Element {Ac} ochre}
251
    {color Element {Ag} ochre}
252
    {color Element {Al} ochre}
253
    {color Element {Am} ochre}
254
    {color Element {Ar} ochre}
255
    {color Element {As} ochre}
256
    {color Element {At} ochre}
257
    {color Element {Au} ochre}
258
    {color Element {B} ochre}
259
    {color Element {Ba} ochre}
260
    {color Element {Be} ochre}
261
    {color Element {Bh} ochre}
262
    {color Element {Bi} ochre}
263
    {color Element {Bk} ochre}
264
    {color Element {Br} ochre}
265
    {color Element {Ca} ochre}
266
    {color Element {Cd} ochre}
267
    {color Element {Ce} ochre}
268
    {color Element {Cf} ochre}
269
    {color Element {Cl} ochre}
270
    {color Element {Cm} ochre}
271
    {color Element {Co} ochre}
272
    {color Element {Cr} ochre}
273
    {color Element {Cs} ochre}
274
    {color Element {Cu} ochre}
275
    {color Element {Db} ochre}
276
    {color Element {Ds} ochre}
277
    {color Element {Dy} ochre}
278
    {color Element {Er} ochre}
279
    {color Element {Es} ochre}
280
    {color Element {Eu} ochre}
281
    {color Element {F} ochre}
282
    {color Element {Fe} ochre}
283
    {color Element {Fm} ochre}
284
    {color Element {Fr} ochre}
285
    {color Element {Ga} ochre}
286
    {color Element {Gd} ochre}
287
    {color Element {Ge} ochre}
288
    {color Element {He} ochre}
289
    {color Element {Hf} ochre}
290
    {color Element {Hg} ochre}
291
    {color Element {Ho} ochre}
292
    {color Element {Hs} ochre}
293
    {color Element {I} ochre}
294
    {color Element {In} ochre}
295
    {color Element {Ir} ochre}
296
    {color Element {K} ochre}
297
    {color Element {Kr} ochre}
298
    {color Element {La} ochre}
299
    {color Element {Li} ochre}
300
    {color Element {Lr} ochre}
301
    {color Element {Lu} ochre}
302
    {color Element {Md} ochre}
303
    {color Element {Mg} ochre}
304
    {color Element {Mn} ochre}
305
    {color Element {Mo} ochre}
306
    {color Element {Mt} ochre}
307
    {color Element {Na} ochre}
308
    {color Element {Nb} ochre}
309
    {color Element {Nd} ochre}
310
    {color Element {Ne} ochre}
311
    {color Element {Ni} ochre}
312
    {color Element {No} ochre}
313
    {color Element {Np} ochre}
314
    {color Element {Os} ochre}
315
    {color Element {Pa} ochre}
316
    {color Element {Pb} ochre}
317
    {color Element {Pd} ochre}
318
    {color Element {Pm} ochre}
319
    {color Element {Po} ochre}
320
    {color Element {Pr} ochre}
321
    {color Element {Pt} ochre}
322
    {color Element {Pu} ochre}
323
    {color Element {Ra} ochre}
324
    {color Element {Rb} ochre}
325
    {color Element {Re} ochre}
326
    {color Element {Rf} ochre}
327
    {color Element {Rg} ochre}
328
    {color Element {Rh} ochre}
329
    {color Element {Rn} ochre}
330
    {color Element {Ru} ochre}
331
    {color Element {Sb} ochre}
332
    {color Element {Sc} ochre}
333
    {color Element {Se} ochre}
334
    {color Element {Sg} ochre}
335
    {color Element {Si} ochre}
336
    {color Element {Sm} ochre}
337
    {color Element {Sn} ochre}
338
    {color Element {Sr} ochre}
339
    {color Element {Ta} ochre}
340
    {color Element {Tb} ochre}
341
    {color Element {Tc} ochre}
342
    {color Element {Te} ochre}
343
    {color Element {Th} ochre}
344
    {color Element {Ti} ochre}
345
    {color Element {Tl} ochre}
346
    {color Element {Tm} ochre}
347
    {color Element {U} ochre}
348
    {color Element {V} ochre}
349
    {color Element {W} ochre}
350
    {color Element {Xe} ochre}
351
    {color Element {Y} ochre}
352
    {color Element {Yb} ochre}
353
    {color Element {Zr} ochre}
354
    {color Resname {} silver}
355
    {color Chain {X} blue}
356
    {color Segname {} blue}
357
    {color Conformation {all} blue}
358
    {color Molecule {0} blue}
359
    {color Surface {Grasp} gray}
360
    {color Labels {Springs} orange}
361
  }
362
  foreach colcmd $colorcmds {
363
    set val [catch {eval $colcmd}]
364
  }
365
  color change rgb 0 0.0 0.0 1.0
366
  color change rgb 2 0.34999999404 0.34999999404 0.34999999404
367
  color change rgb 3 1.0 0.5 0.0
368
  color change rgb 4 1.0 1.0 0.0
369
  color change rgb 5 0.5 0.5 0.20000000298
370
  color change rgb 6 0.600000023842 0.600000023842 0.600000023842
371
  color change rgb 7 0.0 1.0 0.0
372
  color change rgb 9 1.0 0.600000023842 0.600000023842
373
  color change rgb 11 0.649999976158 0.0 0.649999976158
374
  color change rgb 12 0.5 0.899999976158 0.40000000596
375
  color change rgb 13 0.899999976158 0.40000000596 0.699999988079
376
  color change rgb 14 0.5 0.300000011921 0.0
377
  color change rgb 15 0.5 0.5 0.75
378
  color change rgb 17 0.879999995232 0.97000002861 0.019999999553
379
  color change rgb 18 0.550000011921 0.899999976158 0.019999999553
380
  color change rgb 19 0.0 0.899999976158 0.0399999991059
381
  color change rgb 20 0.0 0.899999976158 0.5
382
  color change rgb 21 0.0 0.879999995232 1.0
383
  color change rgb 22 0.0 0.759999990463 1.0
384
  color change rgb 23 0.019999999553 0.379999995232 0.670000016689
385
  color change rgb 24 0.00999999977648 0.0399999991059 0.930000007153
386
  color change rgb 25 0.270000010729 0.0 0.980000019073
387
  color change rgb 26 0.449999988079 0.0 0.899999976158
388
  color change rgb 27 0.899999976158 0.0 0.899999976158
389
  color change rgb 28 1.0 0.0 0.660000026226
390
  color change rgb 29 0.980000019073 0.0 0.230000004172
391
  color change rgb 30 0.810000002384 0.0 0.0
392
  color change rgb 31 0.889999985695 0.34999999404 0.0
393
  color change rgb 32 0.959999978542 0.72000002861 0.0
394
}
395
vmdrestoremycolors
396
label textsize 1.0