# Step #1 -- reorient the twister ribozyme vertically
pdb_frag A 1:56 4rge.pdb 4rge-A.pdb
x3dna-dssr -i=4rge-A.pdb -o=4rge-A.out --more --prefix=4rge-A
# To get the result illustrated in panel D, load '4rge-A-2ndstrs.ct'
# or '4rge-A-2ndstrs.dbn' into VARNA to draw the linear secondary
# structure diagram, exported as .svg for annotation in Inkscape.
# Extract the two helical axes from 4rge-A.out to file: 4rge-A.rot1
# then reorient the structure vertically: 4rge-A.rot2
rotate_mol -t=4rge-A.rot1 4rge-A.pdb 4rge-A-rot1.pdb
rotate_mol -r=4rge-A.rot2 4rge-A-rot1.pdb 4rge-A-ok.pdb
# Step #2 -- get the cartoon-block representation with the two
# ls-fitted helical axes.
x3dna-dssr -i=4rge-A-ok.pdb --helical-axis -o=temp
\mv dssr-helicalAxes.pdb 4rge-A-ok-helices.pdb
x3dna-dssr -i=4rge-A-ok.pdb --block-file -o=4rge-A-ok-blocks.r3d
# Step #3 -- simplified representation of the [4,2,2,0,1,3,0,0,1,1]
# 10-way junction in 3D -- panel E
# note the '--raw-xyz' option: it keeps the original coordinates
x3dna-dssr -i=4rge-A-ok.pdb --raw-xyz --simple-junction -o=temp
\mv dssr-simplifiedJcts.pdb 4rge-A-ok-jct.pdb
# see file: 4rge-A-ok-jct.pml
pymol -qkc 4rge-A-ok-jct.pml
convert -trim +repage -border 10 -bordercolor white 4rge-A-ok-jct-pymol.png 4rge-A-ok-jct.png
# see file: 4rge-A-ok-full.pml (cartoon-block with the schematic
# junction overlaid) -- panel A
pymol -qkc 4rge-A-ok-full.pml
convert -trim +repage -border 10 -bordercolor white 4rge-A-ok-full-pymol.png 4rge-A-ok-full.png
# Step #4 -- remove pseudoknots to get a fully nested structure. It now
# has only a [2,1,3] 3-way junction -- panels B, C, and F
\cp 4rge-A-ok.pdb 4rge-nested.pdb
x3dna-dssr -i=4rge-nested.pdb --nested --raw-xyz --simple-junction --prefix=4rge-nested -o=4rge-nested.out
# The planar (panel B) and linear (panel C) secondary structure
# diagrams are produced by loading '4rge-nested-2ndstrs.ct' or
# '4rge-nested-2ndstrs.dbn' into VARNA, exported as .svg, and
# annotated with Inkscape.
# see file: 4rge-nested-jct.pml -- panel F
pymol -qkc 4rge-nested-jct.pml
convert -trim +repage -border 10 -bordercolor white 4rge-nested-jct-pymol.png 4rge-nested-jct.png
# Step #5 -- bifurcated U-A pairs in a network of 8 nucleotides
pdb_frag A 13:14 A 25:26 A 36 A 41:43 4rge-A-ok.pdb 4rge-bifurcated.pdb
x3dna-dssr -i=4rge-bifurcated.pdb --block-file -o=4rge-bifurcated.r3d
# see file: 4rge-bifurcated.pml -- panel G
pymol -qkc 4rge-bifurcated.pml
convert -trim +repage -border 10 -bordercolor white 4rge-bifurcated-pymol.png 4rge-bifurcated.png