Mercurial > repos > tduigou > save_to_db
diff save_to_db.xml @ 5:f934215bdb78 draft default tip
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
| author | tduigou |
|---|---|
| date | Mon, 02 Jun 2025 10:29:28 +0000 |
| parents | c7a7520afb4b |
| children |
line wrap: on
line diff
--- a/save_to_db.xml Mon Jun 02 09:48:14 2025 +0000 +++ b/save_to_db.xml Mon Jun 02 10:29:28 2025 +0000 @@ -39,6 +39,29 @@ </outputs> <tests> <!--Only 1 test can be execute because the fragment will be already saved for the second test and it will return error as the fragments are present in the DB (execut ../get_db_data/testMock.py to regenerate initial DB)--> + <!--test tool blocking from JSON --> + <test> + <param name="genbank_files"> + <collection type="list"> + <element name="p7_L7Ae-Weiss" value="p7_L7Ae-Weiss.gb" /> + <element name="p7_gfp_sequence" value="p6_Nt-IgKLsequence.gb" /> + <element name="p14_CMVp" value="p6_Kozak-ATG.gb" /> + <element name="p16_bGHpolyA" value="p4_Kt-L7Ae-Weiss.gb" /> + <element name="p18_CMVp" value="HC_Amp_ccdB.gb" /> + </collection> + </param> + <param name="adv|json_conf" value="test-JSON_arg_block.json" /> + <output name="output" file="test_raport.txt" ftype="txt" > + <assert_contents> + <has_n_lines n="5" /> + <has_line_matching expression="p7_L7Ae-Weiss" /> + <has_line_matching expression="p6_Nt-IgKLsequence" /> + <has_line_matching expression="p6_Kozak-ATG" /> + <has_line_matching expression="p4_Kt-L7Ae-Weiss" /> + <has_line_matching expression="HC_Amp_ccdB" /> + </assert_contents> + </output> + </test> <!--test DB config in the tool --> <test> <param name="genbank_files"> @@ -90,7 +113,7 @@ </output> </test> </tests> - + <help><![CDATA[ Save Data To DB =================== @@ -106,6 +129,14 @@ * **DB Column Contains Annotation For Ganbank File**: Column containing annotation data, to save al part before "ORIGIN" in the .gb file. * **DB IDs Column Name**: Column holding the unique fragment IDs. * **DB Connection URI**: URI used to connect to the database (e.g., postgresql://user:password@host:port/DB_name). +* **DB config as a json file**: JSON file contains the DB configuration: + - "JSON_table": will be the key to the table name. + - "JSON_sequence_column": will be the key to the sequence column. + - "JSON_annotation_column": will be the key to the annotation column. + - "JSON_fragment_column": will be the key to the fragment column. + - "JSON_db_uri": will be the key to the URI. + - "execution": It is the key to execute or block the tool during a workflow ("True" or "False"). +* NOTE: the JSON file can be generated using the json_db_config_generating tool. ]]></help> <citations> <citation type="bibtex">
