Script 1

# Garlic Tutorial

## Script 1 (atoms.script) - Drawing styles for atoms

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).
Type the following command at garlic prompt:
exe atoms.script
The sample image is at the bottom of this page.

    # 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