ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/trunk/modelit/scripts/plot_simmatrix.sh
Revision: 1299
Committed: Tue Jan 11 17:38:33 2011 UTC (10 years, 5 months ago) by hstehr
File size: 417 byte(s)
Log Message:
adding Model-It server files to repository
Line User Rev File contents
1 hstehr 1299 #!/bin/sh
2     # Visualize a similarity matrix written by aglappe.BlastUtils.writeClusterGraph
3     # Henning Stehr, h.stehr@molgen.mpg.de
4     # 10/Apr/2008
5    
6     if [ -z "$2" ]
7     then
8     echo "Usage: $0 <in.matrix> <out.ps>"
9     exit 1
10     fi
11    
12     infile=$1
13     outfile=$2
14    
15     cmd="x <- read.table(\"$infile\"); library(lattice); levelplot(as.matrix(x));plot(hclust(as.dist(x)))#;heatmap(as.matrix(x))"
16     echo $cmd | R -q --vanilla
17     mv -f Rplots.ps $outfile

Properties

Name Value
svn:executable *