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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
|
<html>
<head>
<title>
Script 1
</title>
</head>
<h1 align=center>
Garlic Tutorial
</h1>
<h2 align=center>
Script 1 (atoms.script) - Drawing styles for atoms
</h2>
<hr size="3">
This script shows the available drawing styles for atoms. Note that nothing
is visible for style "0" (row one, column one)! The file trp.pdb is required
as input. You can mark, copy and paste this script to your local host
(create the file atoms.script).
<br><br>
Type the following command at garlic prompt:
<br><br>
<font color=RED>
exe atoms.script
</font>
<br><br>
The sample image is at the bottom of this page.
<br><br>
<hr size="3">
<pre>
# Show all drawing styles used to draw atoms. Bonds are hidden!
# This script requires garlic version 1.2 or later!
# Atom style 0:
load trp.pdb
pos -24 -15 0
ato 0
bon 0
tag "0"
# Now inform user that refreshing is off:
title 1 50 50 "Please be patient ..."
# Switch refreshing off:
refresh off
# Atom style 1:
load trp.pdb
pos -12 -15 0
ato 1
bon 0
tag "1"
# Atom style 2:
load trp.pdb
pos 0 -15 0
ato 2
bon 0
tag "2"
# Atom style 3:
load trp.pdb
pos 12 -15 0
ato 3
bon 0
tag "3"
# Atom style 4:
load trp.pdb
pos 24 -15 0
ato 4
bon 0
tag "4"
# Atom style 5:
load trp.pdb
pos -24 -5 0
ato 5
bon 0
tag "5"
# Atom style 6:
load trp.pdb
pos -12 -5 0
ato 6
bon 0
tag "6"
# Atom style 7:
load trp.pdb
pos 0 -5 0
ato 7
bon 0
tag "7"
# Atom style bal:
load trp.pdb
pos 12 -5 0
ato bal
bon 0
tag "bal (ball)"
# Atom style ba2:
load trp.pdb
pos 24 -5 0
ato ba2
bon 0
tag "ba2"
#Atom style small:
load trp.pdb
pos -24 5 0
ato sma
bon 0
tag "sma (small)"
# Atom style sm2:
load trp.pdb
pos -12 5 0
ato sm2
bon 0
tag "sm2"
# Atom style covalent:
load trp.pdb
pos 0 5 0
ato cov
bon 0
tag "cov (covalent)"
#Atom style co2:
load trp.pdb
pos 12 5 0
ato co2
bon 0
tag "co2"
#Atom style spacefill:
load trp.pdb
pos -24 15 0
ato spa
bon 0
tag "spa (spacefill)"
#Atom style sp2:
load trp.pdb
pos -12 15 0
ato sp2
bon 0
tag "sp2"
#Atom style big:
load trp.pdb
pos 0 15 0
ato big
bon 0
tag "big"
#Atom style bi2:
load trp.pdb
pos 12 15 0
ato bi2
bon 0
tag "bi2"
# Hide the title:
title 1 off
# Switch refreshing on:
refresh
</pre>
<img src="../commands/atoms.gif">
<hr size="3">
</html>
|