changeset 72:366a9dbec192 draft

Uploaded
author nicolas
date Fri, 28 Oct 2016 08:44:58 -0400
parents 37d3d073b51d
children ca6af7b12073
files computeR2.xml
diffstat 1 files changed, 36 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/computeR2.xml	Fri Oct 28 08:44:58 2016 -0400
@@ -0,0 +1,36 @@
+<tool id="computeR2" name="compute R2" version="1.0.0">
+  <description>compute R-squared value of a prediction vs true phenotype</description>
+  <command interpreter="Rscript">
+	  computeR2.R $config
+  </command>
+  
+  <inputs>
+	<param name="phenotype" type="data"
+		label="true phenotype" 
+	/>
+		  
+	<param name="predictedPhenotype" type="data"
+			label="predicted phenotype" 
+			/>
+			
+  </inputs>
+  
+  <configfiles>
+    <configfile name="config">
+## Desc: this file is sourced in encode wrapper script
+##  as means to pass all galaxy params to R
+"${predictedPhenotype}" -> predicted
+"${phenotype}" -> phenotype
+"${r2}" -> out
+
+    </configfile>
+</configfiles>
+  
+<outputs>
+	<data format="tabular" name = "r2" />
+</outputs>
+  
+  <help>
+	  compute R2 of prediction vs true phenotype
+  </help>
+  </tool>
\ No newline at end of file