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
|
from pymol import m4x
# quash output
#feedback disable, all, everything
# assign secondary structure (if not already assigned)
dss preserve=1
# hide selection indicators
deselect
# customize settings
set sphere_scale, 0.25
set stick_radius, 0.15
set dot_width, 1.5
# hide all representations
hide
# show overall protein cartoon
show cartoon
# set everything to cyan
util.cbac
# disable color blending on cartoon
set cartoon_discrete_colors,1
# don't smooth loops and sheets -- lets use the real coordinates
set cartoon_smooth_loops, 0
set cartoon_flat_sheets, 0
# show valencies
set valence,1
set stick_ball,1
# orient entire system along principal axes
orient
# get context information
context_info=m4x.get_context_info()
# setup the contexts
m4x.setup_contexts(context_info)
# color protein secondary structure (C-alpha atoms only)
_ color white, name ca and ss ''+L and( rep cartoon and not rep sticks)
_ color orange, name ca and ss S and rep cartoon and ((not rep sticks) or (nbr. nbr. nbr. rep cartoon))
_ color magenta, name ca and ss H and rep cartoon and ((not rep sticks) or (nbr. nbr. nbr. rep cartoon))
# set Ctrl Q to Quit
_ cmd.set_key('CTRL-Q',cmd.quit)
_ feedback enable,python,output
_ print ' '
|