view plotly_regression_performance_plots.xml @ 1:389227fa1864 draft default tip

planemo upload for repository commit 2473a53fde6d8e646e90d2a5201999c8c6a48695
author bgruening
date Wed, 09 Jan 2019 02:55:46 -0500
parents 0800a1b66bbd
line wrap: on
line source

<tool id="plotly_regression_performance_plots" name="Plot actual vs predicted curves and residual plots" version="0.1">
    <description>of tabular data</description>
        <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>
    <version_command>echo $version</version_command>
    <command detect_errors="aggressive"><![CDATA[
    python '$__tool_directory__/'
        -i '$infile_input'
        -j '$infile_output'
        <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."/>

        <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}"/>
            <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"/>
**What it does**

Produce a `line and scatter curves <>`_ 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.