Mercurial > repos > tduigou > get_db_info
annotate get_DB_data.xml @ 9:6401a277ee72 draft
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
| author | tduigou |
|---|---|
| date | Fri, 18 Apr 2025 13:36:40 +0000 |
| parents | 87585c392228 |
| children | 703fda6c48c5 |
| 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> |
|
4
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
11 <requirement type="package" version="1.85">biopython</requirement> |
|
0
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
12 </requirements> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
13 <command detect_errors="exit_code"><![CDATA[ |
|
4
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
14 mkdir 'outdir' && |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
15 python '$__tool_directory__/get_db_info.py' |
|
0
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
16 --input '$input' |
|
4
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
17 --sequence_column '$sequence_column' |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
18 --annotation_columns '$annotation_columns' |
|
0
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
19 --db_uri '$db_uri' |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
20 --table '$table' |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
21 --fragment_column '$fragment_column' |
|
4
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
22 --output 'outdir' |
|
0
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
23 ]]></command> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
24 <inputs> |
|
9
6401a277ee72
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
8
diff
changeset
|
25 <param name="input" type="data" format="csv" label="Input CSV file" /> |
|
0
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
26 <param name="table" type="text" label="Database Table Name" optional="false" /> |
|
5
a52626182172
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
27 <param name="sequence_column" type="text" label="DB column contains sequence for ganbank file" optional="false" /> |
|
a52626182172
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
4
diff
changeset
|
28 <param name="annotation_columns" type="text" label="DB column contains annotation for ganbank file" optional="false" /> |
|
0
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
29 <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
|
30 <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
|
31 </inputs> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
32 <outputs> |
|
4
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
33 <collection name="output_gb" type="list" label="GenBank Files collection" > |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
34 <discover_datasets pattern="(?P<name>.*).gb" format="genbank" directory="outdir" /> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
35 </collection> |
|
0
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
36 </outputs> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
37 <tests> |
|
7
8984fabea52c
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
6
diff
changeset
|
38 <!--python get_db_info.py -input 'test-data/test_input.tsv' -sequence_column 'sequence' -annotation_column 'annotation' -db_uri 'postgresql://postgres:RK17@localhost:5432/test_fragments_db' -table 'sample' -fragment_column 'fragment' -output 'test-data/output'--> |
|
0
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
39 <test> |
|
9
6401a277ee72
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
8
diff
changeset
|
40 <param name="input" value="test_input.csv" /> |
|
0
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
41 <param name="table" value="sample" /> |
|
4
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
42 <param name="sequence_column" value="sequence" /> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
43 <param name="annotation_columns" value="annotation" /> |
|
0
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
44 <param name="fragment_column" value="fragment" /> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
45 <param name="db_uri" value="postgresql://postgres:RK17@localhost:5432/test_fragments_db" /> |
|
4
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
46 <output_collection name="output_gb" type="list" count="4"> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
47 <element name="ACP10001AaCbbBS"> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
48 <assert_contents> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
49 <has_n_lines min="3" /> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
50 </assert_contents> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
51 </element> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
52 <element name="CFP10002AaCbbBS"> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
53 <assert_contents> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
54 <has_n_lines min="3" /> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
55 </assert_contents> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
56 </element> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
57 <element name="QWE10004AaCbbBS"> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
58 <assert_contents> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
59 <has_n_lines min="3" /> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
60 </assert_contents> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
61 </element> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
62 <element name="XYZ10003AaCbbBS"> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
63 <assert_contents> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
64 <has_n_lines min="3" /> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
65 </assert_contents> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
66 </element> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
67 </output_collection> |
|
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
68 </test> |
|
0
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
69 </tests> |
|
4
61158f32e5c3
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
3
diff
changeset
|
70 |
|
0
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
71 <help><![CDATA[ |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
72 Pick Data From DB |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
73 =================== |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
74 |
|
9
6401a277ee72
planemo upload for repository https://github.com/brsynth commit 6ae809b563b40bcdb6be2e74fe2a84ddad5484ae
tduigou
parents:
8
diff
changeset
|
75 generate GanDank files from csv file based on SQL DB. |
|
0
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
76 ]]></help> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
77 <citations> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
78 <citation type="bibtex"> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
79 @unpublished{get_DB_data |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
80 author = {Ramiz Khaled}, |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
81 title = {{get_DB_data}}, |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
82 url = {https://github.com/brsynth/}, |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
83 } |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
84 </citation> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
85 </citations> |
|
41ac63b5d221
planemo upload for repository https://github.com/brsynth commit 15dbdd1f0a222a8e1b0fb5c16b36885520a3d005
tduigou
parents:
diff
changeset
|
86 </tool> |
