[Bio] / FluxAnalyzerGen / makeTextBasedFluxMap Repository:
ViewVC logotype

View of /FluxAnalyzerGen/makeTextBasedFluxMap

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (download) (annotate)
Sun May 18 00:15:55 2003 UTC (17 years ago) by efrank
Branch: MAIN
CVS Tags: ldrd-2003-01, HEAD
Changes since 1.1: +13 -0 lines
MakeFluxAnalyzerFiles:
	top level script to drive the process

FluxAnalyzerGen:
	removed the hardwired code to generate text-based maps.  now reads
	a geometry file that describes box placement in a real flux map
	image.  that can be generatd with FluxMapMaker

makeTextBasedFluxMap
	this is still useful if fixed...for bigger models.  but is now
	broken

#!/bin/sh
#
# Eat a text file.  Spill out a .ppm file for FluxAnalyzer to eat as a
# flux map.  this is a cheat...the text file is just a list of reactions.
# we're going to pcx-ify that textual file and use that.  no graph layout.
# 
# just to get us started.
#
# usage:  makeFluxMap  <textFile>
#
# output:  <textfile>nnn.ppm where nnn counts pages in the textFile.
#
# WARNING:  this is now out of date and needs an update.  It needs to be
# extended to generate a geometry file for FluxAnalyzerGen to read
#
# pattern it after:
#
#    theFile << " 0"                 // coefficient for objective function
#            << " " << xpos
#            << " " << 46+(nRxDone % rxnsPerPage)*18.31
#	    << " " << nMap	    // flux map number
#	    << " 1"                 // editable
#            << " 0.01";		    // variance???
#



if [ $# -ne 1 ]; then
   echo "Usage: makeFluxMap <textFile>"
   exit 1
fi

infile=$1
echo Processing text file, $infile


awk -F\| '{print $1}' $infile | enscript -p${infile}.ps -f Courier20 -r --no-header  --indent 6l   --truncate-lines --mark-wrapped-lines=box
pstopnm  -nocrop ${infile}.ps


for i in *.ppm
do
   convert -rotate 90 $i ${i}.r.ppm
   rm $i
   mv ${i}.r.ppm $i
done

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3