Mercurial > repos > nml > kaptive
annotate kaptive.xml @ 0:bda1fd5c651d draft default tip
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
author | nml |
---|---|
date | Mon, 10 Apr 2017 14:47:17 -0400 |
parents | |
children |
rev | line source |
---|---|
0
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
1 <tool id="kaptive" name="Kaptive" version="0.3.0"> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
2 <description>reports information about capsular (K) loci found in genome assemblies.</description> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
3 <requirements> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
4 <requirement type="package" version="0.3">kaptive</requirement> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
5 </requirements> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
6 <stdio> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
7 <exit_code range="1:" level="fatal" description="Unknown error has occurred"/> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
8 </stdio> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
9 <command><![CDATA[ |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
10 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
11 ln -s "$assembly" "$assembly.name" && |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
12 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
13 kaptive.py --assembly "$assembly.name" |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
14 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
15 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
16 --k_refs "$references" |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
17 -o 'result' |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
18 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
19 -t "\${GALAXY_SLOTS:-4}" |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
20 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
21 #if $allelic_typing: |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
22 --allelic_typing "$allelic_typing" |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
23 #end if |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
24 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
25 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
26 #if $start_end_margin: |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
27 --start_end_margin "$start_end_margin" |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
28 #end if |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
29 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
30 #if $min_gene_cov: |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
31 --min_gene_cov "$min_gene_cov" |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
32 #end if |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
33 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
34 #if $min_gene_id: |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
35 --min_gene_id "$min_gene_id" |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
36 #end if |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
37 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
38 #if $low_gene_id: |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
39 --low_gene_id "$low_gene_id" |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
40 #end if |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
41 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
42 #if $gap_fill_size: |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
43 --gap_fill_size "$gap_fill_size" |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
44 #end if |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
45 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
46 ]]></command> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
47 <inputs> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
48 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
49 <param name="assembly" type="data" format="fasta" label="Assembly fasta file"/> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
50 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
51 <param name="references" type="data" format="genbank" label="Genbank referece K loci"/> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
52 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
53 <param name="allelic_typing" type="data" format="fasta" label="Allelic Typing genes" help="SRST2-formatted file of allelic typing genes to include in results" optional="True"/> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
54 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
55 <param name="start_end_margin" type="integer" label="Start end margin" help="Missing bases at the ends of K locus allowed in a perfect match. (default: 10)" value="10"/> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
56 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
57 <param name="min_gene_cov" type="float" label="Minimum % coverage for genes" help="minimum required % coverage for genes (default: 90.0)" value="90.0"/> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
58 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
59 <param name="min_gene_id" type="float" label="Minimum % identity for genes" help="minimum required % identity for genes (default: 80.0)" value="80.0"/> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
60 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
61 <param name="low_gene_id" type="float" label="Flag gene with % identity below" help="genes with a % identity below this value will be flagged as low identity (default: 95.0) " value="95.0"/> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
62 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
63 <param name="gap_fill_size" type="integer" label="Distance to merge assemblies" help="when separate parts of the assembly are found within this distance, they will be merged (default: 100) " value="100"/> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
64 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
65 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
66 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
67 </inputs> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
68 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
69 <outputs> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
70 <data format="tabular" name="results" label="Report Results" from_work_dir="result_table.txt"/> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
71 <data format="txt" name="json" label="JSON Results" from_work_dir="result.json"/> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
72 <data format="fasta" name="fasta" label="Fasta Hit Results" from_work_dir="result_*.fasta" /> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
73 </outputs> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
74 <tests> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
75 <test> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
76 <param name="assembly" value="input.fasta" /> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
77 <param name="references" value="Klebsiella_k_locus_primary_reference_db.gbk" /> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
78 <output name="results" file="result_table.txt" /> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
79 <output name="json" file="result.json" /> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
80 <output name="fasta" file="result_input.fasta" /> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
81 </test> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
82 </tests> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
83 <help> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
84 <![CDATA[ |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
85 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
86 Documentation available @ https://github.com/katholt/Kaptive/blob/master/README.md |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
87 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
88 |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
89 **Acknowledgments** |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
90 Tool Wrapper Author: Philip Mabon |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
91 ]]> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
92 </help> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
93 <citations> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
94 <citation type="doi">10.5281/zenodo.55773</citation> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
95 </citations> |
bda1fd5c651d
planemo upload commit 53d6cab3674d1c73e97cd21f04a3a6e2409bff96
nml
parents:
diff
changeset
|
96 </tool> |