diff plotly_regression_performance_plots.xml @ 0:0800a1b66bbd draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/plotly_regression_performance_plots commit c17efec384ad7438f54675fae1ab0c3a57c22869
author bgruening
date Thu, 08 Nov 2018 13:28:04 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/plotly_regression_performance_plots.xml	Thu Nov 08 13:28:04 2018 -0500
@@ -0,0 +1,43 @@
+<tool id="plotly_regression_performance_plots" name="Plot actual vs predicted curves and residual plots" version="0.1">
+    <description>of tabular data</description>
+    <requirements>
+        <requirement type="package" version="3.6">python</requirement>
+        <requirement type="package" version="0.22.0">pandas</requirement>
+        <requirement type="package" version="3.1.1">plotly</requirement>
+    </requirements>
+    <version_command>echo $version</version_command>
+    <command detect_errors="aggressive"><![CDATA[
+    python '$__tool_directory__/plot_regression_performance.py'
+        -i '$infile_input'
+        -j '$infile_output'
+]]>
+    </command>
+    <inputs>
+        <param name="infile_input" type="data" format="tabular" label="Select input data file :" help="Input data is a tabular file in which the last column (including the column if there is only one) contains the target values."/>
+        <param name="infile_output" type="data" format="tabular" label="Select predicted data file :" help="Predicted data is a tabular file in which the last column (including the column if there is only one) contains the predicted values."/>
+    </inputs>
+
+    <outputs>
+        <data name="output_actual_vs_pred" format="html" from_work_dir="output_actual_vs_pred.html" label="Actual vs predicted curves of tabular data on ${on_string}"/>
+        <data name="output_scatter_plot" format="html" from_work_dir="output_scatter_plot.html" label="Scatter plot of actual and predicted values of tabular data on ${on_string}"/>
+        <data name="output_residual_plot" format="html" from_work_dir="output_residual_plot.html" label="Residual plot of tabular data on ${on_string}"/>
+    </outputs>
+    
+    <tests>   
+        <test>
+            <param name="infile_input" value="test_targets" ftype="tabular"/>
+            <param name="infile_output" value="predictions_gtbr" ftype="tabular"/>
+            <output name="output_actual_vs_pred" file="output_actual_vs_pred_gtbr.html" compare="sim_size"/>
+            <output name="output_scatter_plot" file="output_scatter_plot_gtbr.html" compare="sim_size"/>
+            <output name="output_residual_plot" file="output_residual_plot_gtbr.html" compare="sim_size"/>
+        </test>     
+    </tests>
+    <help><![CDATA[
+**What it does**
+
+
+Produce a `line and scatter curves <https://plot.ly/python/line-and-scatter/>`_ from tabular files. The input data contains the true values (last column) and the predicted data contains the predicted values (last column). The true and predicted values are plotted against each other. The plot is buried in a html file which provides rich interactive features. Image can be saved in various format, such as 'png', 'svg', 'jpeg' and so on.
+
+    ]]>
+    </help>
+</tool>