File: bonds.script

package info (click to toggle)
garlic 1.6-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 4,516 kB
  • sloc: ansic: 52,465; makefile: 2,254
file content (66 lines) | stat: -rw-r--r-- 838 bytes parent folder | download | duplicates (5)
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
63
64
65
66
# Show all drawing styles used to draw bonds. Atoms are hidden!
# This script will work if you use default .garlicrc script.
# This script requires garlic version 1.2!

# Bond style 1:
load trp.pdb
pos -15 -5 -50
ato 0
bon 1
tag "1"

# Now inform user that refreshing is off:
title 1 50 50 "Please be patient ..."

# Switch refreshing off:
refresh off

# Bond style 2:
load trp.pdb
pos -5 -5 -50
ato 0
bon 2
tag "2"

# Bond style 3:
load trp.pdb
pos 5 -5 -50
ato 0
bon 3
tag "3"

# Bond style 4:
load trp.pdb
pos 15 -5 -50
ato 0
bon 4
tag "4"

# Bond style 5:
load trp.pdb
pos -15 5 -50
ato 0
bon 5
tag "5"

# Bond style nice:
load trp.pdb
pos -5 5 -50
ato co2
bon nice
tag "nic (nice)"

# Bond style sticks:
load trp.pdb
pos 5 5 -50
ato ba2
bon sticks
tag "sti (sticks)"

# Hide the title:
title 1 off

# Switch refreshing on:
refresh