Mercurial > repos > tduigou > save_to_db
annotate 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 |
| rev | line source |
|---|---|
|
0
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
1 <tool id="save_to_db" name="Save Data To DB" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.09"> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
2 <description>Save data to SQL DB</description> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
3 <macros> |
|
4
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
4 <token name="@VERSION_SUFFIX@">2</token> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
5 <token name="@TOOL_VERSION@">0.2.0</token> |
|
0
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
6 </macros> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
7 <requirements> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
8 <requirement type="package" version="2.2.3">pandas</requirement> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
9 <requirement type="package" version="2.0.40">sqlalchemy</requirement> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
10 <requirement type="package" version="2.9.9">psycopg2</requirement> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
11 </requirements> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
12 <command detect_errors="exit_code"><![CDATA[ |
|
2
81e9e1d803fa
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
1
diff
changeset
|
13 #set genbank_file_paths = ','.join([str(f) for f in $genbank_files]) |
|
0
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
14 #set $file_name_mapping = ",".join(["%s:%s" % (file.file_name, file.name) for file in $genbank_files]) |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
15 python '$__tool_directory__/save_to_db.py' |
|
2
81e9e1d803fa
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
1
diff
changeset
|
16 --input '$genbank_file_paths' |
|
0
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
17 --sequence_column '$sequence_column' |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
18 --annotation_column '$annotation_column' |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
19 --db_uri '$db_uri' |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
20 --table '$table' |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
21 --fragment_column '$fragment_column' |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
22 --output '$output' |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
23 --file_name_mapping '$file_name_mapping' |
|
4
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
24 --json_conf '$json_conf' |
|
0
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
25 ]]></command> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
26 <inputs> |
|
2
81e9e1d803fa
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
1
diff
changeset
|
27 <param name="genbank_files" type="data_collection" collection_type="list" format="genbank" label="GenBank File(s)"/> |
|
4
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
28 <param name="table" type="text" label="DB Table Name" optional="true" help="It can be extracted from JSON file -key:'JSON_table'-" /> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
29 <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:'JSON_sequence_column'-" /> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
30 <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:'JSON_annotation_column'-" /> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
31 <param name="fragment_column" type="text" label="DB IDs Column Name" optional="true" help="It can be extracted from JSON file -key:'JSON_fragment_column'-" /> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
32 <param name="db_uri" type="text" label="DB Connection URI" help="postgresql+psycopg2://username:password@db_container_name:port/database (It can be extracted from JSON file -key:'JSON_db_uri'-)" optional="true" /> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
33 <section name='adv' title='Advance' expanded='false'> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
34 <param name="json_conf" type="data" format='json' label="DB config as a json file" help="JSON file specifying the database URI, table name and the column names for annotation and sequence data" optional="true" /> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
35 </section> |
|
0
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
36 </inputs> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
37 <outputs> |
|
1
6854ac8c5d2b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
0
diff
changeset
|
38 <data name="output" format="txt" label="saving report" /> |
|
0
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
39 </outputs> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
40 <tests> |
|
4
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
41 <!--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)--> |
|
5
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
42 <!--test tool blocking from JSON --> |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
43 <test> |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
44 <param name="genbank_files"> |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
45 <collection type="list"> |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
46 <element name="p7_L7Ae-Weiss" value="p7_L7Ae-Weiss.gb" /> |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
47 <element name="p7_gfp_sequence" value="p6_Nt-IgKLsequence.gb" /> |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
48 <element name="p14_CMVp" value="p6_Kozak-ATG.gb" /> |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
49 <element name="p16_bGHpolyA" value="p4_Kt-L7Ae-Weiss.gb" /> |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
50 <element name="p18_CMVp" value="HC_Amp_ccdB.gb" /> |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
51 </collection> |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
52 </param> |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
53 <param name="adv|json_conf" value="test-JSON_arg_block.json" /> |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
54 <output name="output" file="test_raport.txt" ftype="txt" > |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
55 <assert_contents> |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
56 <has_n_lines n="5" /> |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
57 <has_line_matching expression="p7_L7Ae-Weiss" /> |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
58 <has_line_matching expression="p6_Nt-IgKLsequence" /> |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
59 <has_line_matching expression="p6_Kozak-ATG" /> |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
60 <has_line_matching expression="p4_Kt-L7Ae-Weiss" /> |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
61 <has_line_matching expression="HC_Amp_ccdB" /> |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
62 </assert_contents> |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
63 </output> |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
64 </test> |
|
4
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
65 <!--test DB config in the tool --> |
|
0
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
66 <test> |
|
2
81e9e1d803fa
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
1
diff
changeset
|
67 <param name="genbank_files"> |
|
81e9e1d803fa
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
1
diff
changeset
|
68 <collection type="list"> |
|
81e9e1d803fa
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
1
diff
changeset
|
69 <element name="p7_L7Ae-Weiss" value="p7_L7Ae-Weiss.gb" /> |
|
81e9e1d803fa
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
1
diff
changeset
|
70 <element name="p7_gfp_sequence" value="p6_Nt-IgKLsequence.gb" /> |
|
81e9e1d803fa
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
1
diff
changeset
|
71 <element name="p14_CMVp" value="p6_Kozak-ATG.gb" /> |
|
81e9e1d803fa
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
1
diff
changeset
|
72 <element name="p16_bGHpolyA" value="p4_Kt-L7Ae-Weiss.gb" /> |
|
81e9e1d803fa
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
1
diff
changeset
|
73 <element name="p18_CMVp" value="HC_Amp_ccdB.gb" /> |
|
81e9e1d803fa
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
1
diff
changeset
|
74 </collection> |
|
81e9e1d803fa
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
1
diff
changeset
|
75 </param> |
|
0
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
76 <param name="table" value="sample" /> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
77 <param name="sequence_column" value="sequence" /> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
78 <param name="annotation_column" value="annotation" /> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
79 <param name="fragment_column" value="fragment" /> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
80 <param name="db_uri" value="postgresql://postgres:RK17@localhost:5432/test_fragments_db" /> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
81 <output name="output" file="test_raport.txt" ftype="txt" > |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
82 <assert_contents> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
83 <has_n_lines n="5" /> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
84 <has_line_matching expression="p7_L7Ae-Weiss" /> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
85 <has_line_matching expression="p6_Nt-IgKLsequence" /> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
86 <has_line_matching expression="p6_Kozak-ATG" /> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
87 <has_line_matching expression="p4_Kt-L7Ae-Weiss" /> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
88 <has_line_matching expression="HC_Amp_ccdB" /> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
89 </assert_contents> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
90 </output> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
91 </test> |
|
4
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
92 <!--test DB config from JSON --> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
93 <test> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
94 <param name="genbank_files"> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
95 <collection type="list"> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
96 <element name="p7_L7Ae-Weiss" value="p7_L7Ae-Weiss.gb" /> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
97 <element name="p7_gfp_sequence" value="p6_Nt-IgKLsequence.gb" /> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
98 <element name="p14_CMVp" value="p6_Kozak-ATG.gb" /> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
99 <element name="p16_bGHpolyA" value="p4_Kt-L7Ae-Weiss.gb" /> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
100 <element name="p18_CMVp" value="HC_Amp_ccdB.gb" /> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
101 </collection> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
102 </param> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
103 <param name="adv|json_conf" value="test-JSON_arg.json" /> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
104 <output name="output" file="test_raport.txt" ftype="txt" > |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
105 <assert_contents> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
106 <has_n_lines n="5" /> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
107 <has_line_matching expression="p7_L7Ae-Weiss" /> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
108 <has_line_matching expression="p6_Nt-IgKLsequence" /> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
109 <has_line_matching expression="p6_Kozak-ATG" /> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
110 <has_line_matching expression="p4_Kt-L7Ae-Weiss" /> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
111 <has_line_matching expression="HC_Amp_ccdB" /> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
112 </assert_contents> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
113 </output> |
|
c7a7520afb4b
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
114 </test> |
|
0
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
115 </tests> |
|
5
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
116 |
|
0
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
117 <help><![CDATA[ |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
118 Save Data To DB |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
119 =================== |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
120 |
|
3
eca0d710bbe9
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
2
diff
changeset
|
121 Implemented a system to save GenBank (.gb) files in SQL DB, based on a connection via URI requests. |
|
eca0d710bbe9
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
2
diff
changeset
|
122 The tool is tested on a locally hosted PostgreSQL database running in a Docker container. |
|
eca0d710bbe9
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
2
diff
changeset
|
123 |
|
eca0d710bbe9
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
2
diff
changeset
|
124 **Parameters**: |
|
eca0d710bbe9
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
2
diff
changeset
|
125 --------------- |
|
eca0d710bbe9
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
2
diff
changeset
|
126 * **GenBank File(s)**: List of GenBaks files. |
|
eca0d710bbe9
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
2
diff
changeset
|
127 * **DB Table Name**: Name of the target table in the PostgreSQL database. |
|
eca0d710bbe9
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
2
diff
changeset
|
128 * **DB Column Contains Sequence For ganbank File**: Column storing sequence data, expected to start with "ORIGIN". |
|
eca0d710bbe9
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
2
diff
changeset
|
129 * **DB Column Contains Annotation For Ganbank File**: Column containing annotation data, to save al part before "ORIGIN" in the .gb file. |
|
eca0d710bbe9
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
2
diff
changeset
|
130 * **DB IDs Column Name**: Column holding the unique fragment IDs. |
|
eca0d710bbe9
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
2
diff
changeset
|
131 * **DB Connection URI**: URI used to connect to the database (e.g., postgresql://user:password@host:port/DB_name). |
|
5
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
132 * **DB config as a json file**: JSON file contains the DB configuration: |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
133 - "JSON_table": will be the key to the table name. |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
134 - "JSON_sequence_column": will be the key to the sequence column. |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
135 - "JSON_annotation_column": will be the key to the annotation column. |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
136 - "JSON_fragment_column": will be the key to the fragment column. |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
137 - "JSON_db_uri": will be the key to the URI. |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
138 - "execution": It is the key to execute or block the tool during a workflow ("True" or "False"). |
|
f934215bdb78
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
139 * NOTE: the JSON file can be generated using the json_db_config_generating tool. |
|
0
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
140 ]]></help> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
141 <citations> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
142 <citation type="bibtex"> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
143 @unpublished{save_to_db |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
144 author = {Ramiz Khaled}, |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
145 title = {{save_to_db}}, |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
146 url = {https://github.com/brsynth/}, |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
147 } |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
148 </citation> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
149 </citations> |
|
034686b5bc15
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
diff
changeset
|
150 </tool> |
