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>
|
6
|
4 <requirement type="package" version="0.3">pathogist</requirement>
|
1
|
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
|
9
|
28 #elif $input_type.input_type_selector == "reads"
|
|
29 reads
|
|
30 $input_type.fastq.forward
|
|
31 $input_type.fastq.reverse
|
2
|
32 #end if
|
1
|
33 ]]></command>
|
|
34
|
2
|
35
|
1
|
36 <inputs>
|
2
|
37 <conditional name="input_type">
|
|
38 <param name="input_type_selector" type="select" label="Concatenation of variant calls, or clustering files">
|
|
39 <option value="variant">Variant Call Files</option>
|
|
40 <option value="clustering">Clustering/Distance Matrix Files</option>
|
9
|
41 <option value="reads">Raw reads</option>
|
2
|
42 </param>
|
|
43 <when value="variant">
|
|
44 <param name="paths" type="data" label="Collection of calls" help="" optional="False" multiple="True"/>
|
|
45 </when>
|
|
46 <when value="clustering">
|
|
47 <conditional name="mlst">
|
|
48 <param name="mlst_checkbox" type="boolean" label="Include MLST"/>
|
|
49 <when value="true">
|
|
50 <param name="mlst_path" type="data" label="MLST Clustering/Distance Matrix file"
|
|
51 format="txt,tabular"/>
|
|
52 </when>
|
|
53 </conditional>
|
|
54 <conditional name="snp">
|
|
55 <param name="snp_checkbox" type="boolean" label="Include SNP"/>
|
|
56 <when value="true">
|
|
57 <param name="snp_path" type="data" label="SNP Clustering/Distance Matrix file"
|
|
58 format="txt,tabular"/>
|
|
59 </when>
|
|
60 </conditional>
|
|
61 <conditional name="cnv">
|
|
62 <param name="cnv_checkbox" type="boolean" label="Include CNV"/>
|
|
63 <when value="true">
|
|
64 <param name="cnv_path" type="data" label="CNV Clustering/Distance Matrix file"
|
|
65 format="txt,tabular"/>
|
|
66 </when>
|
|
67 </conditional>
|
|
68 <conditional name="spoligo">
|
|
69 <param name="spoligo_checkbox" type="boolean" label="Include Spoligotyping"/>
|
|
70 <when value="true">
|
|
71 <param name="spoligo_path" type="data" label="Spoligotyping Clustering/Distance Matrix file"
|
|
72 format="txt,tabular"/>
|
|
73 </when>
|
|
74 </conditional>
|
|
75 </when>
|
9
|
76 <when value="reads">
|
|
77 <param name="fastq" type="data_collection" collection_type="paired"
|
|
78 format="fastqsanger,fastq,fastq.gz,fastqsanger.gz" label="Select paired collection"/>
|
|
79 </when>
|
2
|
80 </conditional>
|
1
|
81 </inputs>
|
|
82
|
|
83 <outputs>
|
9
|
84 <data name="output" label="Paths of ${on_string}" format="txt" from_work_dir="paths.txt">
|
|
85 <filter>input_type[input_type_selector] == 'variant'
|
|
86 or input_type[input_type_selector] == 'clustering'</filter>
|
|
87 </data>
|
|
88 <data name="forward" label="Paths of ${on_string} (forward reads)" format="txt" from_work_dir="forward.txt">
|
|
89 <filter>input_type[input_type_selector] == 'reads'</filter>
|
|
90 </data>
|
|
91 <data name="reverse" label="Paths of ${on_string} (reverse reads)" format="txt" from_work_dir="reverse.txt">
|
|
92 <filter>input_type[input_type_selector] == 'reads'</filter>
|
|
93 </data>
|
1
|
94 </outputs>
|
|
95
|
|
96 <help>
|
|
97
|
|
98 </help>
|
|
99
|
|
100 <citations>
|
|
101
|
|
102 </citations>
|
|
103 </tool>
|