Repository 'oghma'
hg clone https://toolshed.g2.bx.psu.edu/repos/nicolas/oghma

Changeset 1:c8ba405ffd13 (2016-10-21)
Previous changeset 0:61780259e2fb (2016-10-21) Next changeset 2:f3f230290ffe (2016-10-21)
Commit message:
Uploaded
added:
computeR2.xml
b
diff -r 61780259e2fb -r c8ba405ffd13 computeR2.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/computeR2.xml Fri Oct 21 06:24:32 2016 -0400
b
@@ -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