# HG changeset patch # User davidvanzessen # Date 1380276695 14400 # Node ID ffcf8f90ad8698b6dedd191bd44860381e5891fd # Parent 7a1b8021a1912466ee3b902f69249519073d7f71 Uploaded diff -r 7a1b8021a191 -r ffcf8f90ad86 RScript.r --- a/RScript.r Fri Sep 27 04:44:52 2013 -0400 +++ b/RScript.r Fri Sep 27 06:11:35 2013 -0400 @@ -5,11 +5,11 @@ inFile = args[1] outFile = args[2] -#install.packages("gridExtra", repos="http://cran.xl-mirror.nl/") +install.packages("gridExtra", repos="http://cran.xl-mirror.nl/") library (gridExtra) -#install.packages("ggplot2", repos="http://cran.xl-mirror.nl/") +install.packages("ggplot2", repos="http://cran.xl-mirror.nl/") require(ggplot2) -#install.packages("plyr", repos="http://cran.xl-mirror.nl/") +install.packages("plyr", repos="http://cran.xl-mirror.nl/") require(plyr) test = read.table(inFile, sep="\t", header=TRUE) @@ -91,9 +91,7 @@ png(outFile,width = 1920, height = 1200) -plot(pV) -plotall = grid.arrange(pV, arrangeGrob(pD, pJ, ncol=2), ncol=1, widths=c(1,1.2)) -print(plotall) +print(plotall = grid.arrange(pV, arrangeGrob(pD, pJ, ncol=2), ncol=1, widths=c(1,1.2))) dev.off() diff -r 7a1b8021a191 -r ffcf8f90ad86 r_wrapper.sh --- a/r_wrapper.sh Fri Sep 27 04:44:52 2013 -0400 +++ b/r_wrapper.sh Fri Sep 27 06:11:35 2013 -0400 @@ -1,4 +1,5 @@ #!/bin/bash dir="$(cd "$(dirname "$0")" && pwd)" -Rscript --verbose $dir/RScript.r $1 "$2.png" 2>&1 +Rscript --verbose $R_SCRIPT_PATH/RScript.r $1 "$2.png" 2>&1 mv -f "$2.png" $2 + diff -r 7a1b8021a191 -r ffcf8f90ad86 tool_dependencies.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool_dependencies.xml Fri Sep 27 06:11:35 2013 -0400 @@ -0,0 +1,43 @@ + + + + $REPOSITORY_INSTALL_DIR + + + + + http://CRAN.R-project.org/src/base/R-2/R-2.15.1.tar.gz + ./configure --prefix=$INSTALL_DIR + make + + http://cran.r-project.org/src/contrib/gridExtra_0.9.1.tar.gz + + gridExtra_0.9.1.tar.gz + $INSTALL_DIR + + $INSTALL_DIR/bin/R CMD INSTALL $INSTALL_DIR/gridExtra_0.9.1.tar.gz + + http://cran.r-project.org/src/contrib/ggplot2_0.9.3.1.tar.gz + + ggplot2_0.9.3.1.tar.gz + $INSTALL_DIR + + $INSTALL_DIR/bin/R CMD INSTALL $INSTALL_DIR/ggplot2_0.9.3.1.tar.gz + + http://cran.r-project.org/src/contrib/plyr_1.8.tar.gz + + plyr_1.8.tar.gz + $INSTALL_DIR + + $INSTALL_DIR/bin/R CMD INSTALL $INSTALL_DIR/plyr_1.8.tar.gz + + + + $INSTALL_DIR/bin + + + + + You need a FORTRAN compiler or perhaps f2c in addition to a C compiler to build R. + +