annotate DownloadSchema.xml @ 1:4683f2baa5f0 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 2564b0ca982636c6c6f221d0c5072f52d39e6751
author iuc
date Sat, 11 May 2024 22:50:38 +0000
parents 18d7d8582206
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
1 <tool id="chewbbaca_downloadschema" name="chewBBACA DownloadSchema" version="@CHEW_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
2 <description>Download a schema from Chewie-NS</description>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
3 <macros>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
4 <import>macros.xml</import>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
5 </macros>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
6 <expand macro="requirements" />
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
8 chewBBACA.py DownloadSchema
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
9 -sp $species_id
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
10 -sc $schema_id
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
11 -o 'output' &&
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
12 ## The output is named based on the species name. Rename it to schema_seed so it is compatible for other chewbbaca tools.
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
13 mv output/* 'schema_seed' &&
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
14 zip -r schema_seed.zip 'schema_seed'
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
15 ]]></command>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
16 <inputs>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
17 <param argument="--species-id" type="select" label="Species ID">
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
18 <option value="1">Streptococcus pyogenes</option>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
19 <option value="2">Acinetobacter baumannii</option>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
20 <option value="3">Arcobacter butzleri</option>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
21 <option value="4">Campylobacter jejuni</option>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
22 <option value="5">Escherichia coli</option>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
23 <option value="6">Listeria monocytogenes</option>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
24 <option value="7">Yersinia enterocolitica</option>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
25 <option value="8">Salmonella enterica</option>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
26 <option value="9">Streptococcus agalactiae</option>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
27 <option value="10">Brucella melitensis</option>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
28 <option value="11">Brucella</option>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
29 <option value="12">Clostridium perfringens</option>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
30 <option value="13">Clostridium chauvoei</option>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
31 <option value="14">Bacillus anthracis</option>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
32 <option value="15">Klebsiella oxytoca</option>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
33 <option value="16">Clostridium neonatale</option>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
34 </param>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
35 <!-- Currently,the schema id can only be set to 1. Maybe in the next versions other values possible -->
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
36 <param argument="--schema-id" type="integer" min="1" value="1" label="Schema ID"/>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
37 </inputs>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
38 <outputs>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
39 <data format="zip" name="schema" from_work_dir="schema_seed.zip" label="${tool.name} Schema files"/>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
40 </outputs>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
41 <tests>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
42 <test expect_exit_code="0">
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
43 <param name="species_id" value="13"/>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
44 <param name="schema_id" value="1"/>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
45 <assert_stdout>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
46 <has_text text="Schema is now available at"/>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
47 <has_text text="Finished at"/>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
48 </assert_stdout>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
49 <output name="schema">
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
50 <assert_contents>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
51 <has_archive_member path="schema_seed/.*\.fasta" n="4446"/>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
52 <has_archive_member path="schema_seed/short/.*\.fasta" n="2223"/>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
53 <has_archive_member path="schema_seed/\.ns_config"/>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
54 <has_archive_member path="schema_seed/\.schema_config"/>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
55 </assert_contents>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
56 </output>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
57 </test>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
58 </tests>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
59 <help>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
60
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
61 chewBBACA is a software suite for the creation and evaluation of core genome and whole genome MultiLocus Sequence Typing (cg/wgMLST) schemas and results.
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
62
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
63 The DownloadSchema module enables the download of schemas from the Chewie-NS server.
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
64
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
65
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
66 .. class:: infomark
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
67
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
68 **Note**
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
69
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
70 The output schema files are in a zip file. This file can be used as input for other chewBBACA tools.
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
71
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
72 -----
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
73
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
74 Compressed versions of every schema in the Chewie-NS are also available for download:
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
75 - through the `Chewie-NS public website`_
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
76 - through the (/species/{species_id}/schemas/{schema_id}/zip) API endpoint in Swagger_
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
77 - with a simple curl command (e.g.: curl -X GET "https://chewbbaca.online/NS/api/species/9/schemas/1/zip?request_type=download" -H "accept: application/json")
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
78
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
79 .. _Chewie-NS public website: https://chewbbaca.online/
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
80 .. _Swagger: https://chewbbaca.online/api/NS/api/docs
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
81 </help>
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
82 <expand macro="citations" />
18d7d8582206 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8722918e903ffa4229e0297555731f1172f736c6
iuc
parents:
diff changeset
83 </tool>