view rp2biosensor.xml @ 1:b7713d32248b draft

"planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
author tduigou
date Fri, 25 Feb 2022 07:16:18 +0000
parents eaab33f23abf
children b0efd4b2ffba
line wrap: on
line source

<tool id="rp2biosensor" name="rp2biosensor" version="@TOOL_VERSION@" profile="19.09">
    <description>Build Sensing-Enabling Metabolic Pathways from RetroPath2.0 output</description>
    <macros>
        <token name="@TOOL_VERSION@">2.1.0</token>
    </macros>
    <requirements>
        <requirement type="package" version="@TOOL_VERSION@">rp2biosensor</requirement>
    </requirements>
    <command detect_errors="exit_code"><![CDATA[
        python -m rp2biosensor
        '$rp2_results'
        --opath '$html_file'
        #if str($adv.json_graph) == "true"
            --ojson '$json_file'
        #end if
    ]]></command>
    <inputs>
        <param name="rp2_results" type="data" format="csv" label="RetroPath2 output"/>
        <section name="adv" title="Advanced Options" expanded="false">
            <param name="json_graph" type="boolean" label="Output Graph in JSON?" checked="false" />
        </section>
    </inputs>
    <outputs>
        <data name="html_file" format="html" label="${tool.name} - ${rp2_results.name}"/>
        <data name="json_file" format="json" label="${tool.name} -${rp2_results.name}">
            <filter> adv['json_graph'] </filter>
        </data>
    </outputs>
    <tests>
        <test>
        <!-- test 1: check if identical outputs are produced -->
        <param name="rp2_results" value="rp2-results-lactate.csv" />
        <output name="html_file" md5="88ba7cd2501c4d671b9eac396e7b4af9"/>
        </test>
    </tests>
    <help><![CDATA[
rp2biosensor
================

Generate HTML outputs to explore Sensing Enabling Metabolic Pathway from RetroPath2 results.

Input
-----

Required:

* **rp2_results**\ : (string) RetroPath2.0 results.

Output
------

* **opath**\ : (string) Output path. Default: biosensor.html.

* **otype**\ : (string) Output type. This could be either (i) "dir" which means ouput files will outputted into this directory, or (ii) "file" which means that all files will be embedded into a single HTML page. Default: file.

* **ojson**\ : (string) Output the graph as json file if the path is not None. Default: None

Project Links
------------------

* `GitHub <https://github.com/brsynth/rp2biosensor>`_

Version
----------

2.1.0

Authors
-------

* **Thomas Duigou**

License
-------

* `MIT <https://github.com/brsynth/rp2biosensor/blob/master/LICENSE.md>`_

    ]]></help>
</tool>