Mercurial > repos > tduigou > parameters_maystro
annotate json_db_config_generating_boolean.xml @ 1:34135dac85b0 draft default tip
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
| author | tduigou |
|---|---|
| date | Wed, 16 Jul 2025 14:28:21 +0000 |
| parents | 1a766d8d3883 |
| children |
| rev | line source |
|---|---|
|
1
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
1 <tool id="parameters_maystro" name="Workflow-0 Parameters Maystro" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.09"> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
2 <description>Store parameters of workflow-0 to be used again</description> |
|
0
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
3 <macros> |
|
1
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
4 <token name="@VERSION_SUFFIX@">3</token> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
5 <token name="@TOOL_VERSION@">1.1.0</token> |
|
0
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[ |
|
1
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
8 #if $user_json and str($user_json) != 'None': |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
9 cp '$user_json' '$output_json' |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
10 #else |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
11 python3 -c "import json; params = { |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
12 'avoid_patterns': '$avoid_patterns', |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
13 'hairpin_constraints': '$hairpin_constraints', |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
14 'gc_constraints': '$gc_constraints', |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
15 'kmer_size': '$kmer_size', |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
16 'execution': '$execution', |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
17 'db_uri': '$db_uri', |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
18 'table': '$table_name', |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
19 'fragment_column': '$fragment_column', |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
20 'sequence_column': '$sequence_column', |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
21 'annotation_column': '$annotation_column' |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
22 }; f = open('$output_json', 'w'); json.dump(params, f, indent=4); f.close()" && echo DEBG && cat '$output_json' |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
23 #end if |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
24 && echo DEBG && cat '$output_json' |
|
0
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
25 ]]></command> |
|
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
26 <inputs> |
|
1
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
27 <param name="avoid_patterns" type="text" area="true" optional="true" label="Avoid Patterns (one per line)" /> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
28 <param name="hairpin_constraints" type="text" area="true" label="Hairpins Constraints" optional="true" help="e.g. (you can add others Hairpins Constraints on a new line): stem_size=20, hairpin_window=200"/> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
29 <param name="gc_constraints" type="text" area="true" label="Enforce GC Content Constraints" optional="true" help="e.g. (you can add others Enforce GC Content Constraints on a new line): mini=0.3, maxi=0.7, window=100"/> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
30 <param name="kmer_size" type="integer" label="K-mer Uniqueness Size" value="" optional="true" help="e.g.: 15"/> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
31 <param name="execution" type="boolean" label="Save To DB ?" checked ='false' optional="true" help="If True data will be saved in the DB" /> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
32 <param name="db_uri" type="text" optional="true" help='Only if Input Your Parameters As JSON is FALSE' /> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
33 <param name="table_name" type="text" optional="true" help='table name in DB' /> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
34 <param name="fragment_column" type="text" optional="true" help='Fragmnet column in DB' /> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
35 <param name="sequence_column" type="text" optional="true" help='Sequence column in DB' /> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
36 <param name="annotation_column" type="text" optional="true" help='Annotation column in DB' /> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
37 <param name="user_json" type="data" format="json" optional="true" help='Only if Input Your Parameters As JSON is TRUE' /> |
|
0
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
38 </inputs> |
|
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
39 <outputs> |
|
1
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
40 <data name="output_json" format="json" label="Workflow-0 Parameters"/> |
|
0
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
41 </outputs> |
|
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
42 <tests> |
|
1
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
43 <!--manual parameters set--> |
|
0
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
44 <test> |
|
1
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
45 <param name="avoid_patterns" value="BsaI_site |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
46 BsmBI_site |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
47 BbsI_site |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
48 SapI_site |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
49 8x1mer |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
50 5x3mer |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
51 9x2mer" /> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
52 <param name="hairpin_constraints" value='stem_size=20, hairpin_window=200'/> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
53 <param name="gc_constraints" value="mini=0.3, maxi=0.7, window=100 |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
54 mini=0.1, maxi=0.9, window=100"/> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
55 <param name="kmer_size" value="15" /> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
56 <param name="execution" value="true" /> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
57 <param name="db_uri" value="postgresql://postgres:RK17@localhost:5432/test_fragments_db" /> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
58 <param name="table_name" value="sample" /> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
59 <param name="fragment_column" value="fragment" /> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
60 <param name="sequence_column" value="sequence" /> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
61 <param name="annotation_column" value="annotation" /> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
62 <output name="output_json"> |
|
0
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
63 <assert_contents> |
|
1
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
64 <has_n_lines n="12" /> |
|
0
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
65 </assert_contents> |
|
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
66 </output> |
|
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
67 </test> |
|
1
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
68 <!--JSON parameters set--> |
|
0
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
69 <test> |
|
1
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
70 <param name="user_json" value='test_json.json'/> |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
71 <output name="output_json"> |
|
0
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
72 <assert_contents> |
|
1
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
73 <has_n_lines n="12" /> |
|
0
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
74 </assert_contents> |
|
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
75 </output> |
|
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
76 </test> |
|
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
77 </tests> |
|
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
78 <help><![CDATA[ |
|
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
79 Parameters Maystro |
|
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
80 =================== |
|
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
81 |
|
1
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
82 Store and Generate a JSON file to be used as workflow-0 configuration. This JSON file can later be used as input to pass workflow-0 parameters |
|
34135dac85b0
planemo upload for repository https://github.com/brsynth commit d8cc8b87fdb0374745b5420f2da7f08ae905c222-dirty
tduigou
parents:
0
diff
changeset
|
83 |
|
0
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
84 ]]></help> |
|
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
85 <citations> |
|
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
86 <citation type="bibtex"> |
|
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
87 @unpublished{json_db_config_generating |
|
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
88 author = {Ramiz Khaled}, |
|
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
89 title = {{json_db_config_generating}}, |
|
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
90 url = {https://github.com/brsynth/}, |
|
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
91 } |
|
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
92 </citation> |
|
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
93 </citations> |
|
1a766d8d3883
planemo upload for repository https://github.com/brsynth commit fa4c85dd6ad48d404a28e21667f18b628bbdc702-dirty
tduigou
parents:
diff
changeset
|
94 </tool> |
