# Step #1 -- reorient SAM-I riboswitch into the most extended view
pdb_frag A 1:94 A 301 2gis.pdb 2gis-nts.pdb
rotate_mol 2gis-nts.pdb temp
rotate_mol -r=2gis.rot temp 2gis-ok.pdb
x3dna-dssr -i=2gis-ok.pdb --prefix=2gis-ok -o=2gis-ok.out
# To get the result illustrated in panel B, load '2gis-ok-2ndstrs.ct'
# or '2gis-ok-2ndstrs.dbn' into VARNA to draw the linear secondary
# structure diagram, exported as .svg for annotation in Inkscape.
# Step #2 -- get the cartoon-block representation, with fitted helices
x3dna-dssr -i=2gis-ok.pdb --helical-axis -o=temp
\mv dssr-helicalAxes.pdb 2gis-ok-helices.pdb
x3dna-dssr -i=2gis-ok.pdb --block-file -o=2gis-ok-blocks.r3d
# Step #3 -- simplified representation of the [4,0,3,0] 4-way
# and [1,0,2,0,0] 5-way junctions in 3D
# note the '--raw-xyz' option: it keeps the original coordinates
x3dna-dssr -i=2gis-ok.pdb --raw-xyz --simple-junction -o=temp
\mv dssr-simplifiedJcts.pdb 2gis-ok-jctx.pdb
ex_str -1 2gis-ok-jctx.pdb 2gis-ok-jct.pdb # 4-way junction
ex_str -2 2gis-ok-jctx.pdb 2gis-ok-jct2.pdb # 5-way junction
# see file: 2gis-ok-jct.pml
pymol -qkc 2gis-ok-jct.pml
convert -trim +repage -border 10 -bordercolor white 2gis-ok-jct-pymol.png 2gis-ok-jct.png
# see file: 2gis-ok-full.pml (cartoon-block with the schematic
# junctions overlaid) -- panel A
pymol -qkc 2gis-ok-full.pml
convert -trim +repage -border 10 -bordercolor white 2gis-ok-full-pymol.png 2gis-ok-full.png
# Step #4 -- pair U64-A85 stablized by base-stacking interactions
pdb_frag A 63:65 A 82:86 2gis-ok.pdb 2gis-ok-UA.pdb
x3dna-dssr -i=2gis-ok-UA.pdb --block-file -o=2gis-ok-UA-blocks.r3d
# see file: 2gis-ok-UA.pml
pymol -qkc 2gis-ok-UA.pml
convert -trim +repage -border 10 -bordercolor white 2gis-ok-UA-pymol.png 2gis-ok-UA.png
# Step #5 -- the U64-A85 isolated pair is linchpin-like (panel C)
x3dna-dssr -i=2gis-ok-UA.pdb --frame=A.64:wc+edge -o=2gis-stacks.pdb
x3dna-dssr -i=2gis-stacks.pdb --block-file -o=2gis-stacks-blocks.r3d
# see file: 2gis-stacks.pml
pymol -qkc 2gis-stacks.pml
convert -trim +repage -border 10 -bordercolor white 2gis-stacks-pymol.png 2gis-stacks.png
x3dna-dssr -i=4p5j-ok-linchpin.pdb --frame=A.74:wc+edge -o=4p5j-stacks.pdb
x3dna-dssr -i=4p5j-stacks.pdb --block-file -o=4p5j-stacks-blocks.r3d
# see file: 4p5j-stacks.pml
pymol -qkc 4p5j-stacks.pml
convert -trim +repage -border 10 -bordercolor white 4p5j-stacks-pymol.png 4p5j-stacks.png