annotate get_DB_data.xml @ 0:41ac63b5d221 draft

planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
author tduigou
date Thu, 10 Apr 2025 08:45:18 +0000
parents
children 72e99f02308e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
1 <tool id="get_DB_data" name="get data from DB" version="0.1.0" profile="21.09">
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
2 <description>Import data from Sorbonne Biofondry DB</description>
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
3 <requirements>
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
4 <requirement type="package" version="2.2.3">pandas</requirement>
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
5 <requirement type="package" version="2.0.40">sqlalchemy</requirement>
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
6 <requirement type="package" version="2.9.9">psycopg2</requirement>
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 <command detect_errors="exit_code"><![CDATA[
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
9 python '$__tool_directory__/get_db_info.py'
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
10 --input '$input'
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
11 --db_uri '$db_uri'
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
12 --table '$table'
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
13 --fragment_column '$fragment_column'
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
14 --output '$output'
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
15 ]]></command>
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
16 <inputs>
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
17 <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
18 <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
19 <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
20 <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
21 </inputs>
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
22 <outputs>
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
23 <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
24 </data>
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
25 </outputs>
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
26 <!--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
27 <tests>
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
28 <test>
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
29 <param name="input" value="test_input.csv" />
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
30 <param name="table" value="sample" />
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
31 <param name="fragment_column" value="fragment" />
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
32 <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
33 <output name="output" file="output_annotations.json" ftype="json" />
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
34 </test>
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
35 </tests>
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
36 <help><![CDATA[
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
37 Pick Data From DB
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
38 ===================
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
39
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
40 DBget data from SQL DB in docker container.
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
41 ]]></help>
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
42 <citations>
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
43 <citation type="bibtex">
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
44 @unpublished{get_DB_data
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
45 author = {Ramiz Khaled},
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
46 title = {{get_DB_data}},
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
47 url = {https://github.com/brsynth/},
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
48 }
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
49 </citation>
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
50 </citations>
41ac63b5d221 planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff changeset
51 </tool>