annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
1 <tool id="parameters_maystro" name="Parameters Maystro" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.09">
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
2 <description>Store parameters of tools in a workflow to be used again</description>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
3 <macros>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
4 <token name="@VERSION_SUFFIX@">1</token>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
5 <token name="@TOOL_VERSION@">0.1.0</token>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
6 </macros>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
8 #set $json_files = ' '.join(['"%s"' % file for file in $json_from_workflow])
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
9 #set $json_name_mapping = ",".join(["%s:%s" % (file.file_name, file.name) for file in $json_from_workflow])
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
10 python '$__tool_directory__/maystro.py'
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
11 --distribute_json '$distribute_json'
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
12 --json_from_workflow $json_files
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
13 --json_from_user '$json_from_user'
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
14 --json_name_mapping $json_name_mapping
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
15 --output_workflow '$output_workflow'
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
16 --output_user '$output_user' && echo 'DEBUB' && cat '$output_user'
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
17 ]]></command>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
18 <inputs>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
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" />
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
20 <param name="json_from_workflow" type="data" format="json" multiple="true" optional="true" help='Only if Input Your Parameters As JSON is FALSE' />
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
21 <param name="json_from_user" type="data" format="json" optional="true" help='Only if Input Your Parameters As JSON is TRUE' />
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
22 </inputs>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
23 <outputs>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
24 <data name="output_workflow" format="json" label="workflow param"/>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
25 <data name="output_user" format="json" label="user_workflow param"/>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
26 </outputs>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
27 <tests>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
28 <!--distribute_json is false-->
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
29 <test>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
30 <param name="distribute_json" value='false'/>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
31 <param name="json_from_workflow" value="seq_from_db_param.json,seq_to_db_param.json"/>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
32 <output name="output_user">
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
33 <assert_contents>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
34 <has_n_lines n="17" />
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
35 </assert_contents>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
36 </output>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
37 <output name="output_workflow">
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
38 <assert_contents>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
39 <has_n_lines n="0" />
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
40 </assert_contents>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
41 </output>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
42 </test>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
43 <!--distribute_json is true -->
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
44 <test>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
45 <param name="distribute_json" value='true'/>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
46 <param name="json_from_workflow" value="seq_from_db_param.json,seq_to_db_param.json"/>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
47 <param name="json_from_user" value='merged_test.json'/>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
48 <output name="output_workflow">
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
49 <assert_contents>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
50 <has_n_lines n="17" />
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
51 </assert_contents>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
52 </output>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
53 <output name="output_user">
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
54 <assert_contents>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
55 <has_n_lines n="0" />
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
56 </assert_contents>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
57 </output>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
58 </test>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
59 </tests>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
60 <help><![CDATA[
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
61 Parameters Maystro
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
62 ===================
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
63
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
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
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
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.
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
66 ]]></help>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
67 <citations>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
68 <citation type="bibtex">
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
69 @unpublished{json_db_config_generating
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
70 author = {Ramiz Khaled},
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
71 title = {{json_db_config_generating}},
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
72 url = {https://github.com/brsynth/},
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
73 }
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
74 </citation>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
75 </citations>
1a766d8d3883 planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff changeset
76 </tool>