annotate kleborate.xml @ 34:3786c8fff5f0 draft

Uploaded
author dazeone
date Tue, 11 Jan 2022 16:02:18 +0000
parents aee729560f18
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30
aee729560f18 Uploaded
dazeone
parents:
diff changeset
1 <tool id="kleboratetool" name="Kleborate" version="0.1.0">
aee729560f18 Uploaded
dazeone
parents:
diff changeset
2 <description> a tool to screen genome assemblies of Klebsiella pneumoniae</description>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
3 <requirements>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
4 <requirement type="package" version="2.1.0">kleborate</requirement>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
5 <requirement type="package" version="2.0.0">kaptive</requirement>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
6 </requirements>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
7
aee729560f18 Uploaded
dazeone
parents:
diff changeset
8 <!-- kleborateold -a `echo $input | tr ',' ' '` $r $kaptive_k $kaptive_o -o $output
aee729560f18 Uploaded
dazeone
parents:
diff changeset
9 /home/linuxipg/Kleborate/kleborate-runner.py -->
aee729560f18 Uploaded
dazeone
parents:
diff changeset
10 <command detect_errors="aggressive"><![CDATA[
aee729560f18 Uploaded
dazeone
parents:
diff changeset
11 ## Creates symlinks for each input file based on the Galaxy 'element_identifier'
aee729560f18 Uploaded
dazeone
parents:
diff changeset
12 ## Used so that a human-readable name appears in the output table (instead of 'dataset_xyz.dat')
aee729560f18 Uploaded
dazeone
parents:
diff changeset
13 #set $named_input_files = ''
aee729560f18 Uploaded
dazeone
parents:
diff changeset
14 #for $input_file in $input_files
aee729560f18 Uploaded
dazeone
parents:
diff changeset
15 ## Add single quotes around each input file identifier
aee729560f18 Uploaded
dazeone
parents:
diff changeset
16 #set $_input_file = "'{}'".format($input_file.element_identifier)
aee729560f18 Uploaded
dazeone
parents:
diff changeset
17 ln -s '${input_file}' ${_input_file} &&
aee729560f18 Uploaded
dazeone
parents:
diff changeset
18 #set $named_input_files = $named_input_files + ' ' + $_input_file
aee729560f18 Uploaded
dazeone
parents:
diff changeset
19 #end for
aee729560f18 Uploaded
dazeone
parents:
diff changeset
20
aee729560f18 Uploaded
dazeone
parents:
diff changeset
21 kleborate $r $kaptive_k $kaptive_o -o $output --min_identity $ident --min_coverage $cov -a $named_input_files
aee729560f18 Uploaded
dazeone
parents:
diff changeset
22 ]]></command>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
23
aee729560f18 Uploaded
dazeone
parents:
diff changeset
24 <inputs>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
25 <param format="fasta" name="input_files" type="data" label="Genome fasta file : " multiple="true" display="checkboxes"/>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
26
aee729560f18 Uploaded
dazeone
parents:
diff changeset
27 <param name="r" type="select" label="Turn on resistance genes screening (default: no resistance gene screening):">
aee729560f18 Uploaded
dazeone
parents:
diff changeset
28 <option value="">no</option>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
29 <option value="-r">yes</option>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
30 </param>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
31
aee729560f18 Uploaded
dazeone
parents:
diff changeset
32 <param name="kaptive_k" type="select" label="Turn on Kaptive screening of K loci (default: do not run Kaptive for K loci):">
aee729560f18 Uploaded
dazeone
parents:
diff changeset
33 <option value="">no</option>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
34 <option value="--kaptive_k">yes</option>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
35 </param>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
36
aee729560f18 Uploaded
dazeone
parents:
diff changeset
37 <param name="kaptive_o" type="select" label="Turn on Kaptive screening of O loci (default: do not run Kaptive for O loci):">
aee729560f18 Uploaded
dazeone
parents:
diff changeset
38 <option value="">no</option>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
39 <option value="--kaptive_o">yes</option>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
40 </param>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
41
aee729560f18 Uploaded
dazeone
parents:
diff changeset
42 <param name="ident" type="text" area="false" value="90.0" label="Minimum alignment percent identity for main results:"/>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
43 <param name="cov" type="text" area="false" value="80.0" label="Minimum alignment percent coverage for main results:"/>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
44
aee729560f18 Uploaded
dazeone
parents:
diff changeset
45 </inputs>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
46
aee729560f18 Uploaded
dazeone
parents:
diff changeset
47 <outputs>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
48 <data format="tabular" name="output" />
aee729560f18 Uploaded
dazeone
parents:
diff changeset
49 </outputs>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
50
aee729560f18 Uploaded
dazeone
parents:
diff changeset
51 <tests>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
52 <test>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
53 <param name="input" value="KP011_S63.scfd.fasta " />
aee729560f18 Uploaded
dazeone
parents:
diff changeset
54 <param name="input" value="KP012_S64.scfd.fasta " />
aee729560f18 Uploaded
dazeone
parents:
diff changeset
55 <param name="r" value="-r"/>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
56 <param name="kaptive_k" value="--kaptive_k"/>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
57 <param name="kaptive_o" value=""/>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
58 <output name="output" file="Kleborate_results.txt" />
aee729560f18 Uploaded
dazeone
parents:
diff changeset
59 </test>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
60 </tests>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
61
aee729560f18 Uploaded
dazeone
parents:
diff changeset
62 <help>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
63 For full documentation, please go to the Kleborate wiki (https://github.com/katholt/Kleborate/wiki)
aee729560f18 Uploaded
dazeone
parents:
diff changeset
64 </help>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
65 <citations>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
66 <citation type="doi">10.1101/2020.12.14.422303</citation>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
67 <citation type="doi">10.1038/s41467-021-24448-3</citation>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
68 <citation type="doi">10.1099/mgen.0.000102</citation>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
69 </citations>
aee729560f18 Uploaded
dazeone
parents:
diff changeset
70 </tool>