[Bio] / FluxMapMaker / FluxMapMaker Repository:
ViewVC logotype

View of /FluxMapMaker/FluxMapMaker

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (download) (annotate) (vendor branch)
Sun May 18 00:09:46 2003 UTC (16 years, 5 months ago) by efrank
Branch: initial, MAIN
CVS Tags: initialLoad, ldrd-2003-01, HEAD
Changes since 1.1: +0 -0 lines
initial load

#!/bin/sh
########################################################################
# Usage:
#    FluxMapMaker <topNodeId> <mapfileName>
#
# Output:
#    <mapfileName>.dot     the layout in dot (graphviz) representation
#    <mapfileName>.gif     the image file with the map
#    <mapfileName>.geom    a file with geometry giving (x,y) location of
#                          the label on each arc.  See below
#
# Geometry:
#   The geometry file has 3 lines per arc in the graph.
#   A line has an xcoord, ycoord and a label, e.g.,
#                  97 129    50014
#   A label is the reactionId from the database and can be used to do 
#   joins/collations downstram.  The Xcoord Ycoord are in dot's coordinate
#   system.  They need to be transformed by an external calibration to be
#   useful, i.e., they are NOT in pixel coords consistent with the gif file.
#
#   There are 3 lines corresponding to the head, the middle, and the end
#   of the arc.  The middle is where the lable is placed by dot.  The
#   end appears suitable for box placement in flux analyzer.
#
# Ed Frank, May 2003
########################################################################

# by default, assume the dot program is in our path

DOT=dot

if [ ! $# = 2 ]; then
	echo "Usage: FluxMapMaker <topNodeId> <mapfileName>"
	exit 1
fi

exedir=`dirname $0`
topNode=$1
outfile=$2

echo going for node $topNode with output to file $outfile
echo

$exedir/FluxMapMakerExe $topNode | perl $exedir/Rbreaker3 | $DOT > $outfile.dot
$DOT -Tgif -o $outfile.gif $outfile.dot
$DOT -Tismap $outfile.dot |  awk '{print $2, " ", $NF}' | sed -f $exedir/sedIsMapToGeom > $outfile.geom

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3