Mercurial > repos > tduigou > parameters_maystro
comparison json_db_config_generating_boolean.xml @ 0:1a766d8d3883 draft
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
| author | tduigou |
|---|---|
| date | Fri, 11 Jul 2025 10:10:16 +0000 |
| parents | |
| children | 34135dac85b0 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:1a766d8d3883 |
|---|---|
| 1 <tool id="parameters_maystro" name="Parameters Maystro" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.09"> | |
| 2 <description>Store parameters of tools in a workflow to be used again</description> | |
| 3 <macros> | |
| 4 <token name="@VERSION_SUFFIX@">1</token> | |
| 5 <token name="@TOOL_VERSION@">0.1.0</token> | |
| 6 </macros> | |
| 7 <command detect_errors="exit_code"><![CDATA[ | |
| 8 #set $json_files = ' '.join(['"%s"' % file for file in $json_from_workflow]) | |
| 9 #set $json_name_mapping = ",".join(["%s:%s" % (file.file_name, file.name) for file in $json_from_workflow]) | |
| 10 python '$__tool_directory__/maystro.py' | |
| 11 --distribute_json '$distribute_json' | |
| 12 --json_from_workflow $json_files | |
| 13 --json_from_user '$json_from_user' | |
| 14 --json_name_mapping $json_name_mapping | |
| 15 --output_workflow '$output_workflow' | |
| 16 --output_user '$output_user' && echo 'DEBUB' && cat '$output_user' | |
| 17 ]]></command> | |
| 18 <inputs> | |
| 19 <param name="distribute_json" type="boolean" label="Input Your Parameters As JSON" checked ='false' help="If True user should set workflow parameters as json file" /> | |
| 20 <param name="json_from_workflow" type="data" format="json" multiple="true" optional="true" help='Only if Input Your Parameters As JSON is FALSE' /> | |
| 21 <param name="json_from_user" type="data" format="json" optional="true" help='Only if Input Your Parameters As JSON is TRUE' /> | |
| 22 </inputs> | |
| 23 <outputs> | |
| 24 <data name="output_workflow" format="json" label="workflow param"/> | |
| 25 <data name="output_user" format="json" label="user_workflow param"/> | |
| 26 </outputs> | |
| 27 <tests> | |
| 28 <!--distribute_json is false--> | |
| 29 <test> | |
| 30 <param name="distribute_json" value='false'/> | |
| 31 <param name="json_from_workflow" value="seq_from_db_param.json,seq_to_db_param.json"/> | |
| 32 <output name="output_user"> | |
| 33 <assert_contents> | |
| 34 <has_n_lines n="17" /> | |
| 35 </assert_contents> | |
| 36 </output> | |
| 37 <output name="output_workflow"> | |
| 38 <assert_contents> | |
| 39 <has_n_lines n="0" /> | |
| 40 </assert_contents> | |
| 41 </output> | |
| 42 </test> | |
| 43 <!--distribute_json is true --> | |
| 44 <test> | |
| 45 <param name="distribute_json" value='true'/> | |
| 46 <param name="json_from_workflow" value="seq_from_db_param.json,seq_to_db_param.json"/> | |
| 47 <param name="json_from_user" value='merged_test.json'/> | |
| 48 <output name="output_workflow"> | |
| 49 <assert_contents> | |
| 50 <has_n_lines n="17" /> | |
| 51 </assert_contents> | |
| 52 </output> | |
| 53 <output name="output_user"> | |
| 54 <assert_contents> | |
| 55 <has_n_lines n="0" /> | |
| 56 </assert_contents> | |
| 57 </output> | |
| 58 </test> | |
| 59 </tests> | |
| 60 <help><![CDATA[ | |
| 61 Parameters Maystro | |
| 62 =================== | |
| 63 | |
| 64 Store and Generate a JSON file to be used as a workflow configuration. This JSON file can later be used to pass workflow parameters | |
| 65 This tool is recieve parameters from tools in workflow and return them as a JSON file that can be used later to pass thos parameters again. | |
| 66 ]]></help> | |
| 67 <citations> | |
| 68 <citation type="bibtex"> | |
| 69 @unpublished{json_db_config_generating | |
| 70 author = {Ramiz Khaled}, | |
| 71 title = {{json_db_config_generating}}, | |
| 72 url = {https://github.com/brsynth/}, | |
| 73 } | |
| 74 </citation> | |
| 75 </citations> | |
| 76 </tool> |
