view erecord_json.xml @ 1:d87b8a1073ad draft

planemo upload for repository https://forgemia.inra.fr/nathalie.rousse/erecord-deploy/-/tree/main/galaxy-tools/erecord_json commit ac10d874b1abe19a8c44f861b2f180ff20976b39
author siwaa
date Wed, 13 Dec 2023 21:46:11 +0000
parents 8a0659f23df7
children afc88ac8de69
line wrap: on
line source

<tool id="erecord_json" name="erecord_json" version="1.0.0">

  <description>erecord returning .json</description>

  <requirements>

    <!-- singularity -->
    <container type="singularity">oras://registry.forgemia.inra.fr/nathalie.rousse/erecord-deploy/erecord_rep0_vle2:53e4840cd66e45761db955f69203284761fd6df8</container>

  </requirements>

  <command detect_errors="aggressive">
    <![CDATA[
    . /PYVENV/bin/activate;
    /bin/bash -c "python3 $__tool_directory__/main_json.py -data ${input_json} -datafolder ${datafolder}";
    cp WS/OUT/output.json ${output_json};
    ]]>
  </command>

  <inputs>

    <param name="input_json" optional="true" type="data" format="json"
           label="Input json file"/>

    <param name="datafolder" optional="true" type="data" format="zip"
           label="Add a datafolder zip file (available and used only in 'post_vpz_output' or 'post_vpz_inout' cases)"
           help="Precisions sur forme du dossier..."/>

  </inputs>

  <outputs>
    <data format="json" name="output_json" label="jsonoutput"/>
  </outputs>

  <tests>
  </tests>

  <help><![CDATA[

erecord_json.xml

================

Actions:

-------

- Available :
  - 'get_vpz_input' 'post_vpz_input'
  - 'get_vpz_output' 'post_vpz_output'
  - 'get_vpz_inout' 'post_vpz_inout'
  - 'get_pkg_list' 'get_pkg_vpz_list' 'get_pkg_data_list'
  - 'help'

- Unavailable (actions with 2 output files) :
  - 'get_vpz_experiment' 'post_vpz_experiment'
  - 'get_vpz_report_conditions' 'post_vpz_report_conditions'
  - 'get_vpz_report' 'post_vpz_report'

Code:

----

- main_json.py

Inputs:

-------

- data json file (optional) (json file, param type="data") 

  This file contains the action value

- datafolder (optional) (only in 'post_vpz_output', 'post_vpz_inout' cases)

Outputs:

--------

- data json file (no other file returned)

Credits:

--------

-  Author: Nathalie Rousse nathalie.rousse@inrae.fr
-  Copyright: INRAE

  ]]>
  </help>

</tool>