Mercurial > repos > guerler > ffindex_dbkit_create
annotate dbkit_create.xml @ 2:d97c5316e813 draft
"planemo upload commit 2a0fc8275bfbb76a828082424d346bbe0fd40914"
author | guerler |
---|---|
date | Thu, 01 Apr 2021 19:36:49 +0000 |
parents | c1dff5c2a7b3 |
children |
rev | line source |
---|---|
1
c1dff5c2a7b3
"planemo upload commit aa6c4b1d15a2d5361d68c7eb313551bddf2700fa"
guerler
parents:
0
diff
changeset
|
1 <tool id="ffindex_dbkit_create" name="DBKit Create" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" license="MIT" profile="20.01"> |
0
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
2 <description>database</description> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
3 <macros> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
4 <import>macros.xml</import> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
5 </macros> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
6 <expand macro="requirements" /> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
7 <command detect_errors="exit_code"><![CDATA[ |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
8 mkdir -p inputs && |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
9 #for item in $inputs |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
10 ln -s '${item}' 'inputs/${item.element_identifier}' && |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
11 #end for |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
12 dbkit_create.py |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
13 -l '$input' |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
14 -p 'inputs' |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
15 -o '$index' |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
16 -d '$database' |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
17 -g '$log' |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
18 -il '$advanced.idlength' |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
19 -ic '$advanced.idcase' |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
20 -ie '$advanced.idextension' |
1
c1dff5c2a7b3
"planemo upload commit aa6c4b1d15a2d5361d68c7eb313551bddf2700fa"
guerler
parents:
0
diff
changeset
|
21 -ip '$advanced.idprefix' |
0
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
22 ]]> </command> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
23 <inputs> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
24 <param name="input" type="data" format="tabular" label="List of Identifiers" help="Specify a list containing all entry identifiers to be downloaded." /> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
25 <param name="inputs" type="data" format="txt" multiple="true" label="Specify your datasets" help="The datasets that you want to convert into an ffindex." /> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
26 <conditional name="advanced"> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
27 <param name="type" type="select" label="Identifier Formatting Options" help=""> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
28 <option value="true">Yes, I want to format my identifiers</option> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
29 <option value="false">No formatting</option> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
30 </param> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
31 <when value="true"> |
1
c1dff5c2a7b3
"planemo upload commit aa6c4b1d15a2d5361d68c7eb313551bddf2700fa"
guerler
parents:
0
diff
changeset
|
32 <param name="idprefix" type="text" optional="true" label="Identifier Prefix" help="Specify the prefix of the identifier"> |
c1dff5c2a7b3
"planemo upload commit aa6c4b1d15a2d5361d68c7eb313551bddf2700fa"
guerler
parents:
0
diff
changeset
|
33 <validator type="regex" message="Please only use letters, numbers or underscores">^[a-zA-Z.]+$</validator> |
c1dff5c2a7b3
"planemo upload commit aa6c4b1d15a2d5361d68c7eb313551bddf2700fa"
guerler
parents:
0
diff
changeset
|
34 </param> |
c1dff5c2a7b3
"planemo upload commit aa6c4b1d15a2d5361d68c7eb313551bddf2700fa"
guerler
parents:
0
diff
changeset
|
35 <param name="idextension" type="text" optional="true" label="Identifier Extensions" help="Specify the extension of the identifier"> |
c1dff5c2a7b3
"planemo upload commit aa6c4b1d15a2d5361d68c7eb313551bddf2700fa"
guerler
parents:
0
diff
changeset
|
36 <validator type="regex" message="Please only use letters, numbers or underscores">^[a-zA-Z.]+$</validator> |
c1dff5c2a7b3
"planemo upload commit aa6c4b1d15a2d5361d68c7eb313551bddf2700fa"
guerler
parents:
0
diff
changeset
|
37 </param> |
0
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
38 <param name="idlength" type="integer" label="Identifier Length" value="0" min="0" max="20" help="Specify the length of the identifier (disable=0)." /> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
39 <param name="idcase" type="select" label="Identifier Case" display="radio" help="Choose to format the identifier by changing its case (optional)."> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
40 <option value="">Unformatted</option> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
41 <option value="lower">Lower</option> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
42 <option value="upper">Upper</option> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
43 </param> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
44 </when> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
45 <when value="false"> |
1
c1dff5c2a7b3
"planemo upload commit aa6c4b1d15a2d5361d68c7eb313551bddf2700fa"
guerler
parents:
0
diff
changeset
|
46 <param name="idprefix" type="hidden" value="" /> |
0
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
47 <param name="idextension" type="hidden" value="" /> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
48 <param name="idlength" type="hidden" value="0" /> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
49 <param name="idcase" type="hidden" value="" /> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
50 </when> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
51 </conditional> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
52 <expand macro="logfile" /> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
53 </inputs> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
54 <outputs> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
55 <data name="index" format="ffindex" label="DBKit Index" /> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
56 <data name="database" format="ffdata" label="DBKit Database" /> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
57 <data format="txt" name="log" label="DBKit Log"> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
58 <filter>logfile</filter> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
59 </data> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
60 </outputs> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
61 <tests> |
1
c1dff5c2a7b3
"planemo upload commit aa6c4b1d15a2d5361d68c7eb313551bddf2700fa"
guerler
parents:
0
diff
changeset
|
62 <test expect_num_outputs="2"> |
0
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
63 <param name="input" value="create/sequences.tabular" ftype="tabular" /> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
64 <param name="inputs" value="create/NP_000282.1.hhr,create/NP_000290.2.hhr,create/NP_000548.2.hhr,create/NP_000836.2.hhr" /> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
65 <conditional name="advanced"> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
66 <param name="type" value="false" /> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
67 </conditional> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
68 <output name="index" file="create/sequences.ffindex" ftype="ffindex" /> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
69 <output name="database" file="create/sequences.ffdata" ftype="ffdata" /> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
70 </test> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
71 </tests> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
72 <help><![CDATA[ |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
73 |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
74 **What it does** |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
75 |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
76 This database creation tool downloads entries from an external resource and creates a datasets with all its contents. Additionally an index file is |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
77 generated indicating the start and size of every entry within the database file. The tool can also operate on collections. |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
78 ]]> </help> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
79 <expand macro="citations" /> |
8b48a608f1df
"planemo upload commit b68cb41b1884703c4f1574b65a6408d7d0cca321"
guerler
parents:
diff
changeset
|
80 </tool> |