Mercurial > repos > tduigou > parameters_maystro_workflow_0
diff maystro_workflow_0.xml @ 0:9ab8b3673816 draft default tip
planemo upload for repository https://github.com/brsynth/galaxytools/tree/main/tools/parameters_maystro commit db4ac861e1d03fcdfe94321d858839124e493930-dirty
author | tduigou |
---|---|
date | Wed, 23 Jul 2025 09:39:39 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/maystro_workflow_0.xml Wed Jul 23 09:39:39 2025 +0000 @@ -0,0 +1,93 @@ +<tool id="parameters_maystro_workflow_0" name="Workflow-0 Parameters Maystro" version="@TOOL_VERSION@" profile="21.09"> + <description>Store parameters of workflow-0 to be used again</description> + <macros> + <token name="@TOOL_VERSION@">0.1.0</token> + </macros> + <command detect_errors="exit_code"><![CDATA[ + #if $user_json and str($user_json) != 'None': + cp '$user_json' '$output_json' + #else + python3 -c "import json; params = { + 'avoid_patterns': '$avoid_patterns', + 'hairpin_constraints': '$hairpin_constraints', + 'gc_constraints': '$gc_constraints', + 'kmer_size': '$kmer_size', + 'execution': '$execution', + 'db_uri': '$db_uri', + 'table': '$table_name', + 'fragment_column': '$fragment_column', + 'sequence_column': '$sequence_column', + 'annotation_column': '$annotation_column' + }; f = open('$output_json', 'w'); json.dump(params, f, indent=4); f.close()" && echo DEBG && cat '$output_json' + #end if + && echo DEBG && cat '$output_json' + ]]></command> + <inputs> + <param name="avoid_patterns" type="text" area="true" optional="true" label="Avoid Patterns (one per line)" /> + <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"/> + <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"/> + <param name="kmer_size" type="integer" label="K-mer Uniqueness Size" value="" optional="true" help="e.g.: 15"/> + <param name="execution" type="boolean" label="Save To DB ?" checked ='false' optional="true" help="If True data will be saved in the DB" /> + <param name="db_uri" type="text" optional="true" help='Only if Input Your Parameters As JSON is FALSE' /> + <param name="table_name" type="text" optional="true" help='table name in DB' /> + <param name="fragment_column" type="text" optional="true" help='Fragmnet column in DB' /> + <param name="sequence_column" type="text" optional="true" help='Sequence column in DB' /> + <param name="annotation_column" type="text" optional="true" help='Annotation column in DB' /> + <param name="user_json" type="data" format="json" optional="true" help='Only if Input Your Parameters As JSON is TRUE' /> + </inputs> + <outputs> + <data name="output_json" format="json" label="Workflow-0 Parameters"/> + </outputs> + <tests> + <!--manual parameters set--> + <test> + <param name="avoid_patterns" value="BsaI_site + BsmBI_site + BbsI_site + SapI_site + 8x1mer + 5x3mer + 9x2mer" /> + <param name="hairpin_constraints" value='stem_size=20, hairpin_window=200'/> + <param name="gc_constraints" value="mini=0.3, maxi=0.7, window=100 + mini=0.1, maxi=0.9, window=100"/> + <param name="kmer_size" value="15" /> + <param name="execution" value="true" /> + <param name="db_uri" value="postgresql://postgres:RK17@localhost:5432/test_fragments_db" /> + <param name="table_name" value="sample" /> + <param name="fragment_column" value="fragment" /> + <param name="sequence_column" value="sequence" /> + <param name="annotation_column" value="annotation" /> + <output name="output_json"> + <assert_contents> + <has_n_lines n="12" /> + </assert_contents> + </output> + </test> + <!--JSON parameters set--> + <test> + <param name="user_json" value='test_json.json'/> + <output name="output_json"> + <assert_contents> + <has_n_lines n="12" /> + </assert_contents> + </output> + </test> + </tests> + <help><![CDATA[ +Parameters Maystro for workflow-0 +================================= + +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 + + ]]></help> + <citations> + <citation type="bibtex"> + @unpublished{parameters_maystro_workflow_0 + author = {Ramiz Khaled}, + title = {{parameters_maystro_workflow_0}}, + url = {https://github.com/brsynth/}, + } + </citation> + </citations> +</tool> \ No newline at end of file