# HG changeset patch
# User kuyt002
# Date 1403606920 -7200
# Node ID 596a7b43a95b82f00fffed56c1f557f7138437df
# Parent 357a3a950661bfd21ac4a6e0631ec404eac25ad0# Parent 47b212acef771b617963fc705c5cdd14823ac316
changed R version
diff -r 357a3a950661 -r 596a7b43a95b .directory
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.directory Tue Jun 24 12:48:40 2014 +0200
@@ -0,0 +1,5 @@
+[Dolphin]
+Timestamp=2014,6,17,13,13,59
+
+[Settings]
+HiddenFilesShown=true
diff -r 357a3a950661 -r 596a7b43a95b .project
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.project Tue Jun 24 12:48:40 2014 +0200
@@ -0,0 +1,11 @@
+
+
+ vennerable
+
+
+
+
+
+
+
+
diff -r 357a3a950661 -r 596a7b43a95b vennerable/Vennerable.R
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/vennerable/Vennerable.R Tue Jun 24 12:48:40 2014 +0200
@@ -0,0 +1,58 @@
+#!/usr/bin/R
+
+# R script to call Vennerable package from galaxy
+# info: alex.bossers@wur.nl
+
+# R --slave --vanilla --file=PlotBar.R --args inputFile x_data weighting outputFile plottype resolution
+# 1 2 3 4 5 6 7 8 9 10 11
+
+#get cmd line args
+args <- commandArgs()
+ in.file <- args[6]
+ xData <- args[7] # data labels xData of format "a, b, c" and can include spaces
+ weighting <- args[8]
+ out.file <- args[9]
+ plottype <- args[10]
+ resolution <- args[11] #in dpi
+
+#open lib
+library(Vennerable)
+
+# for labels of bars or bar groups presume column names from data
+if (xData != "default") {
+ # read without header input file (must be tabular)
+ annot_data <- read.table(in.file, header=F, sep="\t")
+ colnames (annot_data) <- strsplit(xData,",")[[1]]
+ Vannot <- Venn(annot_data)
+} else {
+ # read without header input file (must be tabular)
+ annot_data <- read.table(in.file, header=T, sep="\t")
+ Vannot <- Venn(annot_data)
+}
+
+#png(out.file,width = 1600, height = 1600, res = resolution)
+#due to png x11 combination errors its now temporarily a pdf. If not use this line to get a high quality png
+#png(out.file, res = resolution)
+pdf(out.file)
+#svg(out.file)
+# plot it
+if (plottype == "ChowRuskey") {
+ plot(Vannot, type = plottype)
+
+} else if (plottype == "AWFE") {
+ plot(Vannot, doWeights = weighting, type = plottype)
+
+} else if (plottype == "circles") {
+ plot(Vannot)
+
+} else if (plottype == "ellipses"){
+ plot(Vannot, type = "ellipses")
+
+} else if (plottype == "squares"){
+ plot(Vannot, type = "squares")
+
+}
+
+cat ("version 1.0, info: alex.bossers@wur.nl\n")
+dev.off()
+
diff -r 357a3a950661 -r 596a7b43a95b vennerable/Vennerable.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/vennerable/Vennerable.xml Tue Jun 24 12:48:40 2014 +0200
@@ -0,0 +1,116 @@
+
+ : Plot data in Venn or Venn-like diagrams
+
+ #if $opt.userSpecified == "Yes"
+ R --slave --vanilla --file=\$VENNERABLE_SCRIPT_PATH/Vennerable.R
+ --args $inputFile
+ default
+ $weighting
+ $outputFile
+ $plottype
+ $resolution
+ 2>$Vennerable_log
+ 1>>$Vennerable_log
+ #else
+ R --slave --vanilla --file=\$VENERABLE_SCRIPT_PATH/Vennerable.R
+ --args $inputFile
+ "$opt.xNames"
+ $weighting
+ $outputFile
+ $plottype
+ $resolution
+ 2>$Vennerable_log
+ 1>>$Vennerable_log
+ #end if
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ R_3_0_3
+ venerable
+ VENNERABLE_SCRIPT_PATH
+
+
+|
+
+
+**What it does**
+
+Vennerable V2.0 (09-10-2009)
+
+This tool will use the Vennerable R package to plot data as weighted or un-weighted diagrams such as Venn, Edwards-Venn and Chow-Rusky.
+
+The tool can take 2 to 7 collumns of data but more are adviced not to be used (for speed and clarity).
+
+-----
+
+**Input**
+
+It takes a tabular file containing identifiers. Matches will be calculated automatically.
+
+Be sure to specify headers if you haven't any in your dataset! Otherwise the top row of data will be excluded.
+
+::
+
+ DataA DataB DataC DataD
+ HUM1 AGK2 AGK2 RTT3
+ AGK2 ZZE3 ERT3 ZPD3
+ ZPD3 AAW3 RTT3 WER2
+ WER2 HUM1 RRW4 DUM1
+
+-----
+
+**Example**
+
+.. image:: ../static/images/WURtools/VennerablePlot.png
+
+-----
+
+**References**
+
+- alex.bossers@wur.nl
+- Vennerable R package: http://r-forge.r-project.org/projects/vennerable/
+
+-----
+
+.. class:: infomark
+
+**TIP:** If your data is not TAB delimited, use *Text Manipulation->Convert*
+
+
+
+
diff -r 357a3a950661 -r 596a7b43a95b vennerable/static/images/Vennerable.R_backup.png
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/vennerable/static/images/Vennerable.R_backup.png Tue Jun 24 12:48:40 2014 +0200
@@ -0,0 +1,56 @@
+#!/usr/bin/R
+
+# R script to call Vennerable package from galaxy
+# info: alex.bossers@wur.nl
+
+# R --slave --vanilla --file=PlotBar.R --args inputFile x_data weighting outputFile plottype resolution
+# 1 2 3 4 5 6 7 8 9 10 11
+
+#get cmd line args
+args <- commandArgs()
+ in.file <- args[6]
+ xData <- args[7] # data labels xData of format "a, b, c" and can include spaces
+ weighting <- args[8]
+ out.file <- args[9]
+ plottype <- args[10]
+ resolution <- args[11] #in dpi
+
+#open lib
+library(Vennerable)
+
+# for labels of bars or bar groups presume column names from data
+if (xData != "default") {
+ # read without header input file (must be tabular)
+ annot_data <- read.table(in.file, header=F, sep="\t")
+ colnames (annot_data) <- strsplit(xData,",")[[1]]
+ Vannot <- Venn(annot_data)
+} else {
+ # read without header input file (must be tabular)
+ annot_data <- read.table(in.file, header=T, sep="\t")
+ Vannot <- Venn(annot_data)
+}
+
+#png(out.file,width = 1600, height = 1600, res = resolution)
+png(out.file, res = resolution)
+
+# plot it
+if (plottype == "ChowRuskey") {
+ plot(Vannot, type = plottype)
+
+} else if (plottype == "AWFE") {
+ plot(Vannot, doWeights = weighting, type = plottype)
+
+} else if (plottype == "circles") {
+ plot(Vannot)
+
+} else if (plottype == "ellipses"){
+ plot(Vannot, type = "ellipses")
+
+} else if (plottype == "squares"){
+ plot(Vannot, type = "squares")
+
+}
+
+cat ("version 1.0, info: alex.bossers@wur.nl\n")
+dev.off()
+
diff -r 357a3a950661 -r 596a7b43a95b vennerable/static/images/Vennerable.xml_backup.png
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/vennerable/static/images/Vennerable.xml_backup.png Tue Jun 24 12:48:40 2014 +0200
@@ -0,0 +1,112 @@
+
+ : Plot data in Venn or Venn-like diagrams
+
+ #if $opt.userSpecified == "Yes"
+ R --slave --vanilla --file=$GALAXY_ROOT_DIR/tools/WURtools/R_tools/Vennerable.R
+ --args $inputFile
+ default
+ $weighting
+ $outputFile
+ $plottype
+ $resolution
+ 2>$Vennerable_log
+ 1>>$Vennerable_log
+ #else
+ R --slave --vanilla --file=$GALAXY_ROOT_DIR/tools/WURtools/R_tools/Vennerable.R
+ --args $inputFile
+ "$opt.xNames"
+ $weighting
+ $outputFile
+ $plottype
+ $resolution
+ 2>$Vennerable_log
+ 1>>$Vennerable_log
+ #end if
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ R
+
+
+|
+
+
+**What it does**
+
+Vennerable V2.0 (09-10-2009)
+
+This tool will use the Vennerable R package to plot data as weighted or un-weighted diagrams such as Venn, Edwards-Venn and Chow-Rusky.
+
+The tool can take 2 to 7 collumns of data but more are adviced not to be used (for speed and clarity).
+
+-----
+
+**Input**
+
+It takes a tabular file containing identifiers. Matches will be calculated automatically.
+
+Be sure to specify headers if you haven't any in your dataset! Otherwise the top row of data will be excluded.
+
+::
+
+ DataA DataB DataC DataD
+ HUM1 AGK2 AGK2 RTT3
+ AGK2 ZZE3 ERT3 ZPD3
+ ZPD3 AAW3 RTT3 WER2
+ WER2 HUM1 RRW4 DUM1
+
+-----
+
+**Example**
+
+.. image:: ../static/images/WURtools/VennerablePlot.png
+
+-----
+
+**References**
+
+- alex.bossers@wur.nl
+- Vennerable R package: http://r-forge.r-project.org/projects/vennerable/
+
+-----
+
+.. class:: infomark
+
+**TIP:** If your data is not TAB delimited, use *Text Manipulation->Convert*
+
+
+
+
diff -r 357a3a950661 -r 596a7b43a95b vennerable/tool_dependencies.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/vennerable/tool_dependencies.xml Tue Jun 24 12:48:40 2014 +0200
@@ -0,0 +1,32 @@
+
+
+
+ $REPOSITORY_INSTALL_DIR/vennerable/
+
+
+
+
+
+
+
+
+
+
+
+
+
+ http://www.bioconductor.org/packages/devel/bioc/src/contrib/BiocGenerics_0.11.2.tar.gz
+ http://www.bioconductor.org/packages/release/bioc/src/contrib/graph_1.42.0.tar.gz
+ http://www.bioconductor.org/packages/release/bioc/src/contrib/RBGL_1.40.0.tar.gz
+ http://cran.r-project.org/src/contrib/RColorBrewer_1.0-5.tar.gz
+ http://cran.r-project.org/src/contrib/Rcpp_0.11.2.tar.gz
+ http://cran.r-project.org/src/contrib/plyr_1.8.1.tar.gz
+ http://cran.r-project.org/src/contrib/reshape_0.8.5.tar.gz
+ http://cran.r-project.org/src/contrib/gtools_3.4.1.tar.gz
+ http://download.r-forge.r-project.org/src/contrib/Vennerable_3.0.tar.gz
+
+
+
+
+
+