#!rasmol -script
# File: myo2.spt
# Creator: RasMol Version 2.6-modified by E Stainback
# Assumes pdb file already loaded in Rasmol Window
background [0,0,0]

set ambient 60
set specular off


reset
select all
cpk off
label off
ribbon off
wireframe
slab on
set slabmode solid
rotate z 178
rotate y -57
rotate x -65
translate x 8
translate y 6
zoom 144

set axes off
set boundingbox off
set unitcell off
set bondmode and
dots off


# Avoid Colour Problems!
select all
colour bonds none
colour backbone none
colour hbonds none
colour ssbonds none
colour ribbons none
colour white

#Show hydrophobic vs polar residues

reset

select all

color yellow
select hydrogen
wireframe off
select hetero
wireframe off
select !hetero
cpk
select hem
color red
cpk
select buried
color magenta
select polar
color blue
slab off


#tell viewer about molecule
echo Myoglobin
echo Polar residues are in blue, hydrophobic residues are in pink,
echo heme is in red, and others are in yellow.
echo Water molecules are not shown.
echo Use the slab command to view the interior of the molecule
echo eg. 'slab 45', use 'slab 100' to reset