File: example8.script

package info (click to toggle)
raster3d 3.0-3-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,916 kB
  • ctags: 1,557
  • sloc: fortran: 9,536; ansic: 1,060; makefile: 318; sh: 250; csh: 15
file content (34 lines) | stat: -rwxr-xr-x 862 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
#
# Demonstrate stereo3d script by making stereo pair of
# view down pore of LT B-pentamer
#
if [ "$TMPDIR" ]; then
       tmp=$TMPDIR
else
       tmp=/tmp
fi
export TMPDIR=$tmp
#
# First we make a VDW model of the B-pentamer itself
#
grep ' [DEFGH] ' LT.pdb > $TMPDIR/$$_temp.r3d
cat chaincolours.pdb $TMPDIR/$$_temp.r3d | balls -h > $TMPDIR/$$_balls.r3d
#
# Now we make a simple ribbon for the A2 domain
#
grep ' C ' LT.pdb | ribbon -h -d1 > $TMPDIR/$$_ribbon.r3d
#
# put 'em together with a view matrix
#
cat header8.r3d $TMPDIR/$$_balls.r3d $TMPDIR/$$_ribbon.r3d > $TMPDIR/$$_example8.r3d
#
# Now render it as a stereo pair
# Add a gamma correction before displaying
#
stereo3d -png < $TMPDIR/$$_example8.r3d | display -gamma 1.2 png:-
#
#
# Clean up
#
rm -f $TMPDIR/$$_temp.r3d $TMPDIR/$$_balls.r3d $TMPDIR/$$_ribbon.r3d $TMPDIR/$$_example8.r3d