# HG changeset patch
# User hackdna
# Date 1368815373 14400
# Node ID 0cebe436a5531c592f4501e72c9d44ab46925c04
Initial upload.
diff -r 000000000000 -r 0cebe436a553 README
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/README Fri May 17 14:29:33 2013 -0400
@@ -0,0 +1,21 @@
+Each of these files describes the interface for one of the tools in Galaxy:
+
+ * fingerprint.xml - Create Pathway Fingerprint
+ * distance.xml - Calculate Distance to Consensus
+ * similar-experiments.xml - Find Similar Experiments in GEO
+ * histogram.xml - Generate a Histogram
+ * heatmap.xml - Generate a Heatmap
+
+Each interface calls a corresponding R file that performs the actions:
+
+ * fingerprint.r
+ * distance.r
+ * similar-experiments.r
+ * histogram.r
+ * heatmap.r
+
+Shared fuctions are kept in this file:
+
+ * galaxy-pathprint.r
+
+
diff -r 000000000000 -r 0cebe436a553 consensus.r
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/consensus.r Fri May 17 14:29:33 2013 -0400
@@ -0,0 +1,32 @@
+#!/usr/bin/env Rscript
+
+#sink(file("/dev/null", "w"), type = "message");
+
+library(pathprint);
+
+# Figure out the relative path to the galaxy-pathprint.r library.
+script.args <- commandArgs(trailingOnly = FALSE);
+script.name <- sub("--file=", "", script.args[grep("--file=", script.args)])
+script.base <- dirname(script.name)
+library.path <- file.path(script.base, "galaxy-pathprint.r");
+source(library.path)
+
+data(GEO.metadata.matrix);
+
+usage <- function() {
+ stop("Usage: consensus.r