Mercurial > repos > tduigou > get_db_info
annotate get_DB_data.xml @ 3:72e99f02308e draft
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
| author | tduigou |
|---|---|
| date | Fri, 11 Apr 2025 13:22:51 +0000 |
| parents | 41ac63b5d221 |
| children | 61158f32e5c3 |
| rev | line source |
|---|---|
|
3
72e99f02308e
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
0
diff
changeset
|
1 <tool id="get_DB_data" name="get data from DB" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.09"> |
|
0
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
2 <description>Import data from Sorbonne Biofondry DB</description> |
|
3
72e99f02308e
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
0
diff
changeset
|
3 <macros> |
|
72e99f02308e
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
0
diff
changeset
|
4 <token name="@VERSION_SUFFIX@">0</token> |
|
72e99f02308e
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
0
diff
changeset
|
5 <token name="@TOOL_VERSION@">0.1.0</token> |
|
72e99f02308e
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
0
diff
changeset
|
6 </macros> |
|
0
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
7 <requirements> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
8 <requirement type="package" version="2.2.3">pandas</requirement> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
9 <requirement type="package" version="2.0.40">sqlalchemy</requirement> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
10 <requirement type="package" version="2.9.9">psycopg2</requirement> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
11 </requirements> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
12 <command detect_errors="exit_code"><![CDATA[ |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
13 python '$__tool_directory__/get_db_info.py' |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
14 --input '$input' |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
15 --db_uri '$db_uri' |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
16 --table '$table' |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
17 --fragment_column '$fragment_column' |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
18 --output '$output' |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
19 ]]></command> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
20 <inputs> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
21 <param name="input" type="data" format="csv" label="Input CSV file" /> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
22 <param name="table" type="text" label="Database Table Name" optional="false" /> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
23 <param name="fragment_column" type="text" label="Database Fragments Column Name" optional="false" /> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
24 <param name="db_uri" type="text" label="Database Connection URI" help="postgresql+psycopg2://username:password@db_container_name:port/database" optional="false" /> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
25 </inputs> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
26 <outputs> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
27 <data name="output" format="json" label="DB Annotated Fragments (json)"> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
28 </data> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
29 </outputs> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
30 <!--python get_DB_info.py -input 'test-data/test_input.csv' -db_uri 'postgresql://postgres:RK17@localhost:5432/test_fragments_db' -table 'sample' -fragment_column 'fragment' -output 'test-data/output.json'--> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
31 <tests> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
32 <test> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
33 <param name="input" value="test_input.csv" /> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
34 <param name="table" value="sample" /> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
35 <param name="fragment_column" value="fragment" /> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
36 <param name="db_uri" value="postgresql://postgres:RK17@localhost:5432/test_fragments_db" /> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
37 <output name="output" file="output_annotations.json" ftype="json" /> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
38 </test> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
39 </tests> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
40 <help><![CDATA[ |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
41 Pick Data From DB |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
42 =================== |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
43 |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
44 DBget data from SQL DB in docker container. |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
45 ]]></help> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
46 <citations> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
47 <citation type="bibtex"> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
48 @unpublished{get_DB_data |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
49 author = {Ramiz Khaled}, |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
50 title = {{get_DB_data}}, |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
51 url = {https://github.com/brsynth/}, |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
52 } |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
53 </citation> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
54 </citations> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
55 </tool> |
