Mercurial > repos > tduigou > seq_to_db
comparison seq_to_db.xml @ 3:39101f8f26dd draft default tip
planemo upload for repository https://github.com/brsynth/galaxytools/tree/main/tools commit e8c8f102cab10531ed588be4ecb8a0d01e797f09
| author | tduigou |
|---|---|
| date | Tue, 06 Jan 2026 11:48:37 +0000 |
| parents | dad2c4c3450a |
| children |
comparison
equal
deleted
inserted
replaced
| 2:dad2c4c3450a | 3:39101f8f26dd |
|---|---|
| 13 #set genbank_file_paths = ','.join([str(f) for f in $genbank_files]) | 13 #set genbank_file_paths = ','.join([str(f) for f in $genbank_files]) |
| 14 #set file_name_mapping = ",".join(["%s:%s" % (file.file_name, file.name) for file in $genbank_files]) | 14 #set file_name_mapping = ",".join(["%s:%s" % (file.file_name, file.name) for file in $genbank_files]) |
| 15 python '$__tool_directory__/save_to_db.py' | 15 python '$__tool_directory__/save_to_db.py' |
| 16 --input '$genbank_file_paths' | 16 --input '$genbank_file_paths' |
| 17 --use_json_paramers '$json_use.use_json_paramers' | 17 --use_json_paramers '$json_use.use_json_paramers' |
| 18 #if not $json_use.use_json_paramers: | 18 #if $json_use.use_json_paramers=='false': |
| 19 --sequence_column '$json_use.sequence_column' | 19 --sequence_column '$json_use.sequence_column' |
| 20 --annotation_column '$json_use.annotation_column' | 20 --annotation_column '$json_use.annotation_column' |
| 21 --db_uri '$json_use.db_uri' | 21 --db_uri '$json_use.db_uri' |
| 22 --table '$json_use.table' | 22 --table '$json_use.table' |
| 23 --fragment_column '$json_use.fragment_column' | 23 --fragment_column '$json_use.fragment_column' |
| 31 --json_output '$json_output' | 31 --json_output '$json_output' |
| 32 ]]></command> | 32 ]]></command> |
| 33 <inputs> | 33 <inputs> |
| 34 <param name="genbank_files" type="data_collection" collection_type="list" format="genbank" label="GenBank File(s)"/> | 34 <param name="genbank_files" type="data_collection" collection_type="list" format="genbank" label="GenBank File(s)"/> |
| 35 <conditional name="json_use"> | 35 <conditional name="json_use"> |
| 36 <param name="use_json_paramers" type="boolean" checked='false' label="Use parameters from JSON" help="extract parameters from json file" /> | 36 <param name="use_json_paramers" type="select" checked='false' label="Use parameters from JSON" help="extract parameters from json file"> |
| 37 <option value="true">Get Parameters From JSON</option> | |
| 38 <option value="false" selected="true">Set Parameters Manually</option> | |
| 39 </param> | |
| 37 <when value="false"> | 40 <when value="false"> |
| 38 <param name="execution_enable" type="boolean" checked='true' label="Send Requenst to DB" help="enable or desable the interaction with the DB (can be usefull in workflows)" /> | 41 <param name="execution_enable" type="boolean" checked='true' label="Send Requenst to DB" help="enable or desable the interaction with the DB (can be usefull in workflows)" /> |
| 39 <param name="table" type="text" label="DB Table Name" optional="true" help="It can be extracted from JSON file -key:'table'-" /> | 42 <param name="table" type="text" label="DB Table Name" optional="true" help="It can be extracted from JSON file -key:'table'-" /> |
| 40 <param name="sequence_column" type="text" label="DB Column Contains Sequence For ganbank File" optional="true" help="It can be extracted from JSON file -key:'sequence_column'-" /> | 43 <param name="sequence_column" type="text" label="DB Column Contains Sequence For ganbank File" optional="true" help="It can be extracted from JSON file -key:'sequence_column'-" /> |
| 41 <param name="annotation_column" type="text" label="DB Column Contains Annotation For Ganbank File" optional="true" help="It can be extracted from JSON file -key:'annotation_column'-" /> | 44 <param name="annotation_column" type="text" label="DB Column Contains Annotation For Ganbank File" optional="true" help="It can be extracted from JSON file -key:'annotation_column'-" /> |
| 56 </outputs> | 59 </outputs> |
| 57 <tests> | 60 <tests> |
| 58 <!--test tool blocking from galaxy. It is commented because it should faild as it is a test to validate that the tool can be blocked from json file --> | 61 <!--test tool blocking from galaxy. It is commented because it should faild as it is a test to validate that the tool can be blocked from json file --> |
| 59 <test expect_num_outputs="2"> | 62 <test expect_num_outputs="2"> |
| 60 <param name="genbank_files"> | 63 <param name="genbank_files"> |
| 61 <conditional type="list"> | 64 <collection type="list"> |
| 62 <element name="p7_L7Ae-Weiss" value="p7_L7Ae-Weiss.gb" /> | 65 <element name="p7_L7Ae-Weiss" value="p7_L7Ae-Weiss.gb" /> |
| 63 <element name="p7_gfp_sequence" value="p6_Nt-IgKLsequence.gb" /> | 66 <element name="p7_gfp_sequence" value="p6_Nt-IgKLsequence.gb" /> |
| 64 <element name="p14_CMVp" value="p6_Kozak-ATG.gb" /> | 67 <element name="p14_CMVp" value="p6_Kozak-ATG.gb" /> |
| 65 <element name="p16_bGHpolyA" value="p4_Kt-L7Ae-Weiss.gb" /> | 68 <element name="p16_bGHpolyA" value="p4_Kt-L7Ae-Weiss.gb" /> |
| 66 <element name="p18_CMVp" value="HC_Amp_ccdB.gb" /> | 69 <element name="p18_CMVp" value="HC_Amp_ccdB.gb" /> |
| 67 </conditional> | 70 </collection> |
| 68 </param> | 71 </param> |
| 69 <conditional name="json_use"> | 72 <conditional name="json_use"> |
| 70 <param name='use_json_paramers' value='false' /> | 73 <param name='use_json_paramers' value='false' /> |
| 71 <param name="table" value="sample" /> | 74 <param name="table" value="sample" /> |
| 72 <param name="sequence_column" value="sequence" /> | 75 <param name="sequence_column" value="sequence" /> |
| 73 <param name="annotation_column" value="annotation" /> | 76 <param name="annotation_column" value="annotation" /> |
| 74 <param name="fragment_column" value="fragment" /> | 77 <param name="fragment_column" value="fragment" /> |
| 75 <param name="db_uri" value="postgresql://postgres:RK17@localhost:5432/test_fragments_db" /> | 78 <param name="db_uri" value="postgresql://postgres:RK17@localhost:5432/test_fragments_db" /> |
| 76 <param name="execution_enable" value="false" /> | 79 <param name="execution_enable" value="false" /> |
| 77 </conditional> | 80 </conditional> |
| 78 <param name="use_json_paramers" value='true'/> | |
| 79 <output name="output" file="test_raport.txt" ftype="txt" > | 81 <output name="output" file="test_raport.txt" ftype="txt" > |
| 80 <assert_contents> | 82 <assert_contents> |
| 81 <has_n_lines n="0" /> | 83 <has_n_lines n="0" /> |
| 82 </assert_contents> | 84 </assert_contents> |
| 83 </output> | 85 </output> |
| 101 <conditional name="json_use"> | 103 <conditional name="json_use"> |
| 102 <param name="use_json_paramers" value='true'/> | 104 <param name="use_json_paramers" value='true'/> |
| 103 <param name="json_conf" value="test-JSON_arg_block.json" /> | 105 <param name="json_conf" value="test-JSON_arg_block.json" /> |
| 104 </conditional> | 106 </conditional> |
| 105 <param name="json_generating" value='false'/> | 107 <param name="json_generating" value='false'/> |
| 106 <param name="json_conf" value="test-JSON_arg_block.json" /> | |
| 107 <output name="output" file="test_raport.txt" ftype="txt" > | 108 <output name="output" file="test_raport.txt" ftype="txt" > |
| 108 <assert_contents> | 109 <assert_contents> |
| 109 <has_n_lines n="0" /> | 110 <has_n_lines n="0" /> |
| 110 </assert_contents> | 111 </assert_contents> |
| 111 </output> | 112 </output> |
| 129 <param name="annotation_column" value="annotation" /> | 130 <param name="annotation_column" value="annotation" /> |
| 130 <param name="fragment_column" value="fragment" /> | 131 <param name="fragment_column" value="fragment" /> |
| 131 <param name="db_uri" value="postgresql://postgres:RK17@localhost:5432/test_fragments_db" /> | 132 <param name="db_uri" value="postgresql://postgres:RK17@localhost:5432/test_fragments_db" /> |
| 132 <param name="execution_enable" value="true" /> | 133 <param name="execution_enable" value="true" /> |
| 133 </conditional> | 134 </conditional> |
| 134 <param name="use_json_paramers" value='true'/> | |
| 135 <output name="output" file="test_raport.txt" ftype="txt" > | 135 <output name="output" file="test_raport.txt" ftype="txt" > |
| 136 <assert_contents> | 136 <assert_contents> |
| 137 <has_n_lines n="5" /> | 137 <has_n_lines n="5" /> |
| 138 <has_line_matching expression="p7_L7Ae-Weiss" /> | 138 <has_line_matching expression="p7_L7Ae-Weiss" /> |
| 139 <has_line_matching expression="p6_Nt-IgKLsequence" /> | 139 <has_line_matching expression="p6_Nt-IgKLsequence" /> |
| 161 </param> | 161 </param> |
| 162 <conditional name="json_use"> | 162 <conditional name="json_use"> |
| 163 <param name="use_json_paramers" value='true'/> | 163 <param name="use_json_paramers" value='true'/> |
| 164 <param name="json_conf" value="test-JSON_arg.json" /> | 164 <param name="json_conf" value="test-JSON_arg.json" /> |
| 165 </conditional> | 165 </conditional> |
| 166 <param name="json_generating" value='false'/> | |
| 167 <output name="output" file="test_raport.txt" ftype="txt" > | 166 <output name="output" file="test_raport.txt" ftype="txt" > |
| 168 <assert_contents> | 167 <assert_contents> |
| 169 <has_n_lines n="5" /> | 168 <has_n_lines n="5" /> |
| 170 <has_line_matching expression="p7_L7Ae-Weiss" /> | 169 <has_line_matching expression="p7_L7Ae-Weiss" /> |
| 171 <has_line_matching expression="p6_Nt-IgKLsequence" /> | 170 <has_line_matching expression="p6_Nt-IgKLsequence" /> |
