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
|
# load pdb file which has a CRYST1 record
fetch 1dn2, async=0
# load 1DN2.pdb,1dn2
# create neighbors with contacts
symexp s,1dn2,(all),4.0
# display ribbon only, and make it a little bit "fatter"
hide
set ribbon_radius = 0.75
show ribbon
# rotate, zoom, and adjust clipping
reset
turn y,90
move z,50
turn x,5
turn y,5
# color symmetry-related copies distinctly
color white
color yellow, (1dn2)
color cyan, (s01-10100)
color marine, (s0000-100 or s00000100)
color red, (s01000000)
color violet, (s00000001 or s000000-1)
color orange, (s01000001)
color pink, (s01000101)
color green, (s01000100)
# now render (about 1 minute)
set antialias=1
ray
png packing.png
|