# Garlic Tutorial

## Lesson 2 - Load a Small Structure

In this lesson, you will learn how to load a PDB file and how to move the structure.
Step 1 - start garlic (if not started already):
garlic
Step 2 - load tryptophan (it should be included in the source package). This command should be executed at garlic prompt:
loa trp.pdb
Step 3 - how to use the pointing device (mouse):
Move the mouse pointer over atoms and bonds and read the text which appears in the output window (bottom right corner). Note that half of each bond is assigned to each of two atoms involved in bond formation.
Step 4 - use garlic controls (i.e. the keys on numeric keypad) to rotate the structure (just a single amino acid):
First play for a while with keys 4 and 6, then with 2 and 8, and finally with 7 and 9. Try the same while holding shift (alone), control (alone), alt and shift (simultaneously) and control and shift (simultaneously). Do not try control-alt combinations, unless you are very experienced with unix and X.
Step 5 - use garlic controls (numeric keypad) to translate the structure:
PC keyboard: use /, *, -, +, 5 and 0.
Terminal keyboard: use PF2, PF3, -, comma, 5 and 0.
Repeat while holding modifier keys (alone or in combination).
Step 6 - move the structure to the screen center again:
pos 0 0 0
Step 7 - rotate and translate the structure using commands instead of controls. Try the following set of commands:
rot x 90
tra x 4
tra y -4
tra z -50
rot y 180
Step 8 - move the color surfaces. As your structure is very small, be sure to hold the control key while pressing functions keys:
Hold control key and press F1.
Hold control key and press F4.
Note that color is changing.
Hold control key and play with F1, F2, F3 and F4 for a while.
Step 9 - move the slab surfaces. As your structure is very small, be sure to hold the control key:
Hold control key and 3 (numeric keypad). Repeat until some atoms and bonds disappear.
Hold control key and play with 1, 3, decimal separator (next to 0) and enter for a while. Note that (in control window) visible atoms are red and unvisible atoms are dark cyan.
Step 10 - discard loaded structure:
dis all