view plotly_regression_performance_plots.xml @ 0:0800a1b66bbd draft

planemo upload for repository commit c17efec384ad7438f54675fae1ab0c3a57c22869
author bgruening
date Thu, 08 Nov 2018 13:28:04 -0500
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.