Garlic Tutorial
Script 1 - Drawing styles for atoms
This script shows the available drawing styles for atoms. Note that nothing
is visible for style "0" (first row, first column)! The file trp.pdb is used.
You can mark, copy and paste this script to your local host (create the file
atoms.script). Or, click
here
to download the script.
Type the following command at garlic prompt:
exe atoms.script
The sample image is at the bottom of this page. Note that the quality of this
image is reduced by high compression.
# Show all drawing styles used to draw atoms. Bonds are hidden!
# Atom style 1:
load trp.pdb
pos -21 -15 0
ato 1
bon 0
tag "1"
# Atom style 2:
load trp.pdb
pos -7 -15 0
ato 2
bon 0
tag "2"
# Atom style 3:
load trp.pdb
pos 7 -15 0
ato 3
bon 0
tag "3"
# Atom style 4:
load trp.pdb
pos 21 -15 0
ato 4
bon 0
tag "4"
# Atom style 5:
load trp.pdb
pos -21 -5 0
ato 5
bon 0
tag "5"
# Atom style 6:
load trp.pdb
pos -7 -5 0
ato 6
bon 0
tag "6"
# Atom style 7:
load trp.pdb
pos 7 -5 0
ato 7
bon 0
tag "7"
# Atom style spa:
load trp.pdb
pos -21 5 0
ato spa
bon 0
tag "spa (spacefill)"
#Atom style sp2:
load trp.pdb
pos -7 5 0
ato sp2
bon 0
tag "sp2"
# Atom style bal:
load trp.pdb
pos 7 5 0
ato bal
bon 0
tag "bal (ball)"
# Atom style ba2:
load trp.pdb
pos 21 5 0
ato ba2
bon 0
tag "ba2"
#Atom style big:
load trp.pdb
pos -21 15 0
ato big
bon 0
tag "big"
#Atom style bi2:
load trp.pdb
pos -7 15 0
ato bi2
bon 0
tag "bi2"