Mercurial > repos > guerler > dbkit
annotate dbkit_create.xml @ 0:1914107cc967 draft
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
author | guerler |
---|---|
date | Wed, 25 Nov 2020 17:22:48 +0000 |
parents | |
children | 987e55ea29b8 |
rev | line source |
---|---|
0
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
1 <tool id="dbkit_create" name="DBKit Create" version="0.1.1" python_template_version="3.5" license="MIT"> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
2 <description>database generator</description> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
3 <command detect_errors="exit_code"><![CDATA[ |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
4 mkdir temp && |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
5 python3 '$__tool_directory__/dbkit_create.py' -l '$input' -u '$url' -t 'temp' -o '$index' -d '$database' -g '$log' -il '$advanced.idlength' -ic '$advanced.idcase' -ie '$advanced.idextension' |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
6 ]]></command> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
7 <inputs> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
8 <param format="tabular" name="input" type="data" label="List of Identifiers" help="Specify a list containing all entry identifiers to be downloaded."/> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
9 <param name="url" type="text" label="URL to External Source" help="Specify the URL to the external database source."> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
10 <option value="https://files.rcsb.org/download/">https://files.rcsb.org/download/</option> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
11 </param> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
12 <conditional name="advanced"> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
13 <param name="type" type="boolean" label="Identifier Formatting Options" /> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
14 <when value="true"> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
15 <param name="idextension" type="text" label="Identifier Extensions" help="Specify the extension of the identifier (optional)."/> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
16 <param name="idlength" type="integer" label="Identifier Length" value="0" min="0" max="20" help="Specify the length of the identifier (disable=0)."/> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
17 <param name="idcase" type="select" label="Identifier Case" display="radio" help="Choose to format the identifier by changing its case (optional)."> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
18 <option value="">Unformatted</option> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
19 <option value="lower">Lower</option> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
20 <option value="upper">Upper</option> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
21 </param> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
22 </when> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
23 <when value="false"> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
24 <param name="idextension" type="hidden" value="" /> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
25 <param name="idlength" type="hidden" value="0" /> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
26 <param name="idcase" type="hidden" value="" /> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
27 </when> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
28 </conditional> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
29 </inputs> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
30 <outputs> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
31 <data format="ffindex" name="index" label="DBKit Index"/> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
32 <data format="ffdata" name="database" label="DBKit Database" /> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
33 <data format="txt" name="log" label="DBKit Log" /> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
34 </outputs> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
35 <tests> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
36 <test> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
37 <param name="input" value="create/chains.tabular" /> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
38 <param name="url" value="https://files.rcsb.org/download/" /> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
39 <conditional name="advanced"> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
40 <param name="type" value="true" /> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
41 <param name="idextension" value="pdb" /> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
42 <param name="idlength" value="4" /> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
43 <param name="idcase" value="lower" /> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
44 </conditional> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
45 <param format="tabular" name="database" value="roc/biogrid_fret.txt" /> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
46 <output name="index" file="create/index.ffindex" /> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
47 <output name="database" file="create/data.ffdata" /> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
48 </test> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
49 </tests> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
50 <help><![CDATA[ |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
51 This database creation tool downloads entries from an external resource and creates a datasets with all its contents. Additionally an index file is |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
52 generated indicating the start and end of every entry within the database file. |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
53 ]]></help> |
1914107cc967
"planemo upload commit 3632646bec5edbe47e06c894e32bfd215b895555-dirty"
guerler
parents:
diff
changeset
|
54 </tool> |