1
|
1 <tool id="concatenator" name="Concatenator" version="1.0.0">
|
|
2 <description>creates a list of accessions and the associated path to their variant calls</description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="0.2.3">pathogist</requirement>
|
|
5 </requirements>
|
|
6
|
|
7 <command><![CDATA[
|
2
|
8 $__tool_directory__/concatenator
|
|
9
|
|
10 #if $input_type.input_type_selector == "variant"
|
|
11 variant
|
|
12 -n #for $path in $input_type.paths# ${path.element_identifier} #end for#
|
|
13 -i #for $path in $input_type.paths# $path #end for#
|
|
14 #elif $input_type.input_type_selector == "clustering"
|
|
15 cluster
|
|
16 #if $input_type.mlst.mlst_checkbox
|
|
17 --mlst $input_type.mlst.mlst_path
|
|
18 #end if
|
|
19 #if $input_type.snp.snp_checkbox
|
|
20 --snp $input_type.snp.snp_path
|
|
21 #end if
|
|
22 #if $input_type.cnv.cnv_checkbox
|
|
23 --cnv $input_type.cnv.cnv_path
|
|
24 #end if
|
|
25 #if $input_type.spoligo.spoligo_checkbox
|
|
26 --spoligo $input_type.spoligo.spoligo_path
|
|
27 #end if
|
|
28 #end if
|
1
|
29 ]]></command>
|
|
30
|
2
|
31
|
1
|
32 <inputs>
|
2
|
33 <conditional name="input_type">
|
|
34 <param name="input_type_selector" type="select" label="Concatenation of variant calls, or clustering files">
|
|
35 <option value="variant">Variant Call Files</option>
|
|
36 <option value="clustering">Clustering/Distance Matrix Files</option>
|
|
37 </param>
|
|
38 <when value="variant">
|
|
39 <param name="paths" type="data" label="Collection of calls" help="" optional="False" multiple="True"/>
|
|
40 </when>
|
|
41 <when value="clustering">
|
|
42 <conditional name="mlst">
|
|
43 <param name="mlst_checkbox" type="boolean" label="Include MLST"/>
|
|
44 <when value="true">
|
|
45 <param name="mlst_path" type="data" label="MLST Clustering/Distance Matrix file"
|
|
46 format="txt,tabular"/>
|
|
47 </when>
|
|
48 </conditional>
|
|
49 <conditional name="snp">
|
|
50 <param name="snp_checkbox" type="boolean" label="Include SNP"/>
|
|
51 <when value="true">
|
|
52 <param name="snp_path" type="data" label="SNP Clustering/Distance Matrix file"
|
|
53 format="txt,tabular"/>
|
|
54 </when>
|
|
55 </conditional>
|
|
56 <conditional name="cnv">
|
|
57 <param name="cnv_checkbox" type="boolean" label="Include CNV"/>
|
|
58 <when value="true">
|
|
59 <param name="cnv_path" type="data" label="CNV Clustering/Distance Matrix file"
|
|
60 format="txt,tabular"/>
|
|
61 </when>
|
|
62 </conditional>
|
|
63 <conditional name="spoligo">
|
|
64 <param name="spoligo_checkbox" type="boolean" label="Include Spoligotyping"/>
|
|
65 <when value="true">
|
|
66 <param name="spoligo_path" type="data" label="Spoligotyping Clustering/Distance Matrix file"
|
|
67 format="txt,tabular"/>
|
|
68 </when>
|
|
69 </conditional>
|
|
70 </when>
|
|
71 </conditional>
|
1
|
72 </inputs>
|
|
73
|
|
74 <outputs>
|
|
75 <data name="output" label="Paths of ${on_string}" format="txt" from_work_dir="paths.txt"/>
|
|
76 </outputs>
|
|
77
|
|
78 <help>
|
|
79
|
|
80 </help>
|
|
81
|
|
82 <citations>
|
|
83
|
|
84 </citations>
|
|
85 </tool>
|