Mercurial > repos > tduigou > rptools_rpviz
diff rpviz.xml @ 0:bf6f117ef632 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
author | tduigou |
---|---|
date | Wed, 16 Nov 2022 11:11:25 +0000 |
parents | |
children | 751dfcc6f663 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rpviz.xml Wed Nov 16 11:11:25 2022 +0000 @@ -0,0 +1,117 @@ +<tool id="rptools_rpviz" name="Visualize pathways" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.09"> + <description>Visualize pathways from the RetroPath Suite</description> + <macros> + <token name="@VERSION_SUFFIX@">0</token> + <token name="@TOOL_VERSION@">5.13.1</token> + </macros> + <requirements> + <requirement type="package" version="@TOOL_VERSION@">rptools</requirement> + </requirements> + <command detect_errors="exit_code"><![CDATA[ + #set input_folder="input_folder" + mkdir -p '$input_folder' && + #if str($input_type_conditional.input_type) == "sbml": + #for $input in $input_type_conditional.input_sbml.keys(): + ln -sf $input_type_conditional.input_sbml[$input] '$input_folder/${input}.xml' && + #end for + python -m rptools.rpviz '$input_folder' + #elif str($input_type_conditional.input_type) == "tar": + python -m rptools.rpviz '${input_type_conditional.input_tar}' + #elif str($input_type_conditional.input_type) == "single_sbml": + ln -sf '$input_type_conditional.input_single_sbml' '$input_folder/${input_type_conditional.input_single_sbml.name}' && + python -m rptools.rpviz '$input_folder' + #end if + 'out' + #if $adv.cofactor_file + --cofactor '$adv.cofactor_file' + #end if + --autonomous_html '$html_file' && + rm -fr '$input_folder' + ]]></command> + <inputs> + <conditional name="input_type_conditional"> + <param name="input_type" type="select" label="Source SBML format"> + <option value="tar" selected="True">TAR</option> + <option value="sbml">Collection</option> + <option value="single_sbml">single SBML</option> + </param> + <when value="tar"> + <param name="input_tar" type="data" format="tar" label="Source SBML" /> + </when> + <when value="sbml"> + <param name="input_sbml" type="data_collection" format="sbml" collection_type="list" label="Source SBML" /> + </when> + <when value="single_sbml"> + <param name="input_single_sbml" type="data" format="sbml" label="Source SBML" /> + </when> + </conditional> + <section name="adv" title="Advanced Options" expanded="false"> + <param name="cofactor_file" type="data" format="tsv" optional="true" label="Cofactor file" help="File listing structures to consider as cofactors."/> + </section> + </inputs> + <outputs> + <data name="html_file" format="html" label="Rpviz: Pathways Visualization"/> + </outputs> + <tests> + <test> + <!-- test 1: check if identical html output is produced (single sbml input) --> + <conditional name="input_type_conditional"> + <param name="input_type" value="single_sbml"/> + <param name="input_single_sbml" value="lycopene_CrtEBI_from_selenzy.xml" /> + </conditional> + <output name="html_file" > + <assert_contents> + <has_size value="1296252" delta="100" /> + </assert_contents> + </output> + </test> + <test> + <!-- test 2: check if identical html output is produced (tar input) --> + <conditional name="input_type_conditional"> + <param name="input_type" value="tar"/> + <param name="input_tar" value="as_tar_inputs.tgz" /> + </conditional> + <output name="html_file" > + <assert_contents> + <has_size value="1604488" delta="100" /> + </assert_contents> + </output> + </test> + </tests> + <help><![CDATA[ +RPVIZ +================ + +Visualize pathways from the `RetroPath Suite <https://www.sciencedirect.com/science/article/pii/S1096717617301337>`_. + +Input +----- + +Required: + +* **Source SBML**\ : Input file containing rpSBML files in a tar archive, collection or single file. + +Optional: + +* **Cofactor file**\ : File listing structures to consider as cofactors. + +Output +------ + +* **Pathways Visualization**\ : HTML output for pathway's visualization. + +Project Links +------------------ + +* `GitHub <https://github.com/brsynth/rptools/tree/master/rptools/rpviz>`_ + +License +------- + +* `MIT <https://github.com/brsynth/rptools/blob/master/LICENSE>`_ + + ]]></help> + <creator> + <person givenName="Thomas" familyName="Duigou" email="thomas.duigou@inrae.fr" identifier="https://orcid.org/0000-0002-2649-2950" /> + </creator> +</tool>