# Step #1 -- reorient viral tRNA mimic into the classic "L" shape
x3dna-dssr -i=4p5j.pdb -o=4p5j.out --more --prefix=4p5j
# To get the result illustrated in panel B, load '4p5j-2ndstrs.ct' or
# '4p5j-2ndstrs.dbn' into VARNA to draw the linear secondary structure
# diagram, which is exported as .svg for annotation in Inkscape.
pdb_frag A 1:84 4p5j.pdb 4p5j-nts.pdb
# extract the two helical axes from 4p5j.out to file: 4p5j.rot1
# then reorient the structure into the "L" shape: 4p5j.rot2
rotate_mol -t=4p5j.rot1 4p5j-nts.pdb 4p5j-rot1.pdb
rotate_mol -r=4p5j.rot2 4p5j-rot1.pdb 4p5j-ok.pdb
# Step #2 -- get the cartoon-block representation with the two
# ls-fitted helical axes.
x3dna-dssr -i=4p5j-ok.pdb --helical-axis -o=temp
\mv dssr-helicalAxes.pdb 4p5j-ok-helices.pdb
x3dna-dssr -i=4p5j-ok.pdb --block-file -o=4p5j-ok-blocks.r3d
# Step #3 -- simplified representation of the [0,0,3,0,1] 5-way junction in 3D
# -- note the --raw-xyz option: it keeps the original coordinates
x3dna-dssr -i=4p5j-ok.pdb --raw-xyz --simple-junction -o=temp
\mv dssr-simplifiedJcts.pdb 4p5j-ok-jct.pdb
# see file: 4p5j-ok-jct.pml
pymol -qkc 4p5j-ok-jct.pml
convert -trim +repage -border 10 -bordercolor white 4p5j-ok-jct-pymol.png 4p5j-ok-jct.png
# see file: 4p5j-ok-full.pml (cartoon-block with the schematic junction overlaid)
pymol -qkc 4p5j-ok-full.pml
convert -trim +repage -border 10 -bordercolor white 4p5j-ok-full-pymol.png 4p5j-ok-full.png
# Step #4 -- get the linchpin interactions
pdb_frag A 1:2 A 40:42 A 13 A 73:75 4p5j-ok.pdb 4p5j-ok-linchpin.pdb
x3dna-dssr -i=4p5j-ok-linchpin.pdb --block-file -o=4p5j-ok-linchpin-blocks.r3d
pymol -qkc 4p5j-ok-linchpin.pml
convert -trim +repage -border 10 -bordercolor white 4p5j-ok-linchpin-pymol.png 4p5j-ok-linchpin.png
# Step #5 -- get the kissing loop interactions
pdb_frag A 8:12 A 48:54 4p5j-ok.pdb 4p5j-ok-loops.pdb
x3dna-dssr -i=4p5j-ok-loops.pdb --block-file -o=4p5j-ok-loops-blocks.r3d
pymol -qkc 4p5j-ok-loops.pml
convert -trim +repage -border 10 -bordercolor white 4p5j-ok-loops-pymol.png 4p5j-ok-loops.png