Mercurial > repos > iuc > chewbbaca_prepexternalschema
annotate PrepExternalSchema.xml @ 3:d8c1dcd7418c draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 8bb518e20d68623904232ae28bb8a51ec05c1c4a
author | iuc |
---|---|
date | Wed, 25 Sep 2024 14:14:13 +0000 |
parents | 0b73dd40d83f |
children |
rev | line source |
---|---|
0
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
1 <tool id="chewbbaca_prepexternalschema" name="chewBBACA PrepExternalSchema" version="@CHEW_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
2 <description>Adapt an external schema to be used with chewBBACA</description> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
3 <macros> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
4 <import>macros.xml</import> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
5 </macros> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
6 <expand macro="requirements" /> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
7 <command detect_errors="exit_code"><![CDATA[ |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
8 unzip '$input_schema' -d 'schema' && |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
9 chewBBACA.py PrepExternalSchema |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
10 #if $training_file: |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
11 --ptf '$training_file' |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
12 #end if |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
13 #if $genes_list: |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
14 --gl '$genes_list' |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
15 #end if |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
16 @COMMON_INPUT@ |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
17 $size_filter |
2
0b73dd40d83f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 501c1cb91f4b91ec93e6df6e555323bbe8e2b703
iuc
parents:
0
diff
changeset
|
18 -g 'schema/' -o 'schema_seed' && |
0
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
19 zip -r PExternalschema_seed.zip 'schema_seed' |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
20 ]]></command> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
21 <inputs> |
2
0b73dd40d83f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 501c1cb91f4b91ec93e6df6e555323bbe8e2b703
iuc
parents:
0
diff
changeset
|
22 <param format="zip" name="input_schema" type="data" label="Schema Files in zip format" help="The schema directory contains the loci FASTA files and the schema must contain one FASTA file per gene/locus."/> |
0
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
23 <section name="advanced" title="Advanced options"> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
24 <param argument="--training-file" type="data" format="binary" label="Prodigal training file" optional="true" /> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
25 <param argument="--genes-list" type="data" format="txt" label="Gene list" optional="true" /> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
26 <param argument="--minimum-length" type="integer" min="0" value="0" label="Minimum sequence length value"/> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
27 <expand macro="common_param" /> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
28 <param argument="--size-filter" type="boolean" truevalue="--size-filter" falsevalue="" checked="false" label="Size filter" help="Apply the minimum length and size threshold values to filter out alleles during schema adaptation" /> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
29 </section> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
30 </inputs> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
31 <outputs> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
32 <data format="zip" name="schema" from_work_dir="PExternalschema_seed.zip" label="${tool.name} on ${on_string}: PrepExternal Schema files"/> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
33 </outputs> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
34 <tests> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
35 <test expect_num_outputs="1"> |
2
0b73dd40d83f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 501c1cb91f4b91ec93e6df6e555323bbe8e2b703
iuc
parents:
0
diff
changeset
|
36 <param name="input_schema" value="PrepExternal_test.zip"/> |
0
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
37 <param name="size_filter" value="false"/> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
38 <output name="schema"> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
39 <assert_contents> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
40 <has_archive_member path="schema_seed/.*\.fasta" n="204"/> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
41 <has_archive_member path="schema_seed/short/.*\.fasta" n="102"/> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
42 <has_archive_member path="schema_seed/\.schema_config"/> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
43 </assert_contents> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
44 </output> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
45 </test> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
46 </tests> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
47 <help> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
48 |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
49 chewBBACA is a software suite for the creation and evaluation of core genome and whole genome MultiLocus Sequence Typing (cg/wgMLST) schemas and results. |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
50 |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
51 The PrepExternalSchema module enables the adaptation of external schemas so that it is possible to use those schemas with chewBBACA. |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
52 |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
53 </help> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
54 <expand macro="citations" /> |
6f7cfce9494d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/chewbbaca commit 89daebdb9c3d599b3dbac4eb357fb87d2f92e62b
iuc
parents:
diff
changeset
|
55 </tool> |