# ------------------------------------------------------------------
# 1. Yeast phenylalanine tRNA 1ehz in default settings.
# Note the coordinates ("1ehz-ok.pdb") is transformed from the
# original PDB file "1ehz.pdb" to put the helix containing the T-stem
# and acceptor stem horizontally, and the helix containing the D-stem
# and anti-codon stem 'vertically'.
x3dna-dssr -i=1ehz-ok.pdb --helical-axis -o=temp # note the --helical-axis option
\mv dssr-helicalAxes.pdb 1ehz-ok-helices.pdb # rename file with helical axes
x3dna-dssr -i=1ehz-ok.pdb --block-file -o=1ehz-ok-blocks.r3d # note the option --block-file
# The three files "1ehz-ok.pdb", "1ehz-ok-blocks.r3d", and
# "1ehz-ok-helices.pdb" combined in "1ehz-ok.pml" and ray-traced with
# PyMOL to get "1ehz-ok-pymol.png".
pymol -qkc 1ehz-ok.pml
convert -trim +repage -border 10 -bordercolor white 1ehz-ok-pymol.png 1ehz-ok.png # just to crop
# ------------------------------------------------------------------
# 2. tRNA 1ehz with thicker rectangular blocks and Watson-Crick bps in
# longer blocks.
\cp 1ehz-ok.pdb 1ehz-wc.pdb # just give it a different name
x3dna-dssr -i=1ehz-wc.pdb --helical-axis -o=temp
\mv dssr-helicalAxes.pdb 1ehz-wc-helices.pdb
x3dna-dssr -i=1ehz-wc.pdb --block-file=wc --block-depth=1.2 -o=1ehz-wc-blocks.r3d
# Note the options "--block-file=wc" and "--block-depth=1.2". The
# default block thickness (depth) is 0.5 angstrom. Again, file
# "1ehz-wc.pml" combines the components to be ray-traced by PyMOL.
pymol -qkc 1ehz-wc.pml
convert -trim +repage -border 10 -bordercolor white 1ehz-wc-pymol.png 1ehz-wc.png
# ------------------------------------------------------------------
# 3. GUAA tetraloop mutant of sarcin/ricin domain from E. Coli 23S
# rRNA -- 1msy, with minor groove in black and oriented in a bp
# reference frame.
x3dna-dssr -i=1msy.pdb --frame=A.2658+edge+wc -o=1msy-ok.pdb # set the view
x3dna-dssr -i=1msy-ok.pdb -o=temp
x3dna-dssr -i=1msy-ok.pdb --block-file=minor+wc --block-depth=0.8 -o=1msy-ok-blocks.r3d
# Note the options "--frame=A.2658+edge+wc" and
# "--block-file=minor+wc".
# The "1msy-ok.pml" file is for PyMOL rendering.
pymol -qkc 1msy-ok.pml
convert -trim +repage -border 10 -bordercolor white 1msy-ok-pymol.png 1msy-ok.png
# ------------------------------------------------------------------
# 4. 1msy, with blocks in outline mode.
\cp 1msy-ok.pdb 1msy-edge.pdb
x3dna-dssr -i=1msy-edge.pdb -o=temp
x3dna-dssr -i=1msy-edge.pdb --block-file=edge -o=1msy-edge-blocks.r3d
# Note the option "--block-file=edge", and file "1msy-edge.pml".
pymol -qkc 1msy-edge.pml
convert -trim +repage -border 10 -bordercolor white 1msy-edge-pymol.png 1msy-edge.png