File: msms_example.script

package info (click to toggle)
raster3d 3.0-7-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 5,180 kB
  • sloc: fortran: 9,536; ansic: 1,064; makefile: 311; sh: 272; csh: 1
file content (34 lines) | stat: -rwxr-xr-x 927 bytes parent folder | download | duplicates (6)
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
#!/bin/bash
#
# Calculate molecular surface of a galactose molecule using MSMS
#
ln -s ../sugarG.pdb protein.pdb
cat protein.pdb | pdb_to_xyzr > surf.dat
msms -if surf.dat -of surf -probe_radius 1.4 -density 5.0
#
#
# Convert the msms output into a Raster3D description of the surface
#
./msms2r3d.pl surf.face surf.vert > surf.r3d
#
#
# Use rastep to make an auto-centered ball+stick view of the molecule
#
rastep -auto -rad 0.20 -prob 0.10 < protein.pdb > protein.r3d
#
# Combine the ball+stick figure with a transparent material 
# description from the Raster3D library 
# applied to the molecular surface generated in MSMS
# Save the combined picture as a TIFF file
#
render -size 800x800 -zoom 75% -transparent -tiff picture.tiff << EOF
@protein.r3d
@translucent_60
@surf.r3d
EOF
#
rm -f protein.pdb msms_surf.dat.log
rm -f surf.dat surf.face surf.vert
rm -f surf.r3d
rm -f protein.r3d
display -geometry 50% picture.tiff&