annotate galaxy/tools/concatenator/concatenator.xml @ 9:728c6b81b45e draft default tip

New Concatenator
author matnguyen
date Mon, 11 Mar 2019 12:46:41 -0400
parents a39471bf7d13
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
c1b6f5fbbcad Updated pathogist version
matnguyen
parents:
diff changeset
1 <tool id="concatenator" name="Concatenator" version="1.0.0">
c1b6f5fbbcad Updated pathogist version
matnguyen
parents:
diff changeset
2 <description>creates a list of accessions and the associated path to their variant calls</description>
c1b6f5fbbcad Updated pathogist version
matnguyen
parents:
diff changeset
3 <requirements>
6
a39471bf7d13 Update to pathogist0.3
matnguyen
parents: 2
diff changeset
4 <requirement type="package" version="0.3">pathogist</requirement>
1
c1b6f5fbbcad Updated pathogist version
matnguyen
parents:
diff changeset
5 </requirements>
c1b6f5fbbcad Updated pathogist version
matnguyen
parents:
diff changeset
6
c1b6f5fbbcad Updated pathogist version
matnguyen
parents:
diff changeset
7 <command><![CDATA[
2
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
8 $__tool_directory__/concatenator
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
9
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
10 #if $input_type.input_type_selector == "variant"
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
11 variant
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
12 -n #for $path in $input_type.paths# ${path.element_identifier} #end for#
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
13 -i #for $path in $input_type.paths# $path #end for#
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
14 #elif $input_type.input_type_selector == "clustering"
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
15 cluster
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
16 #if $input_type.mlst.mlst_checkbox
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
17 --mlst $input_type.mlst.mlst_path
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
18 #end if
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
19 #if $input_type.snp.snp_checkbox
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
20 --snp $input_type.snp.snp_path
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
21 #end if
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
22 #if $input_type.cnv.cnv_checkbox
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
23 --cnv $input_type.cnv.cnv_path
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
24 #end if
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
25 #if $input_type.spoligo.spoligo_checkbox
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
26 --spoligo $input_type.spoligo.spoligo_path
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
27 #end if
9
728c6b81b45e New Concatenator
matnguyen
parents: 6
diff changeset
28 #elif $input_type.input_type_selector == "reads"
728c6b81b45e New Concatenator
matnguyen
parents: 6
diff changeset
29 reads
728c6b81b45e New Concatenator
matnguyen
parents: 6
diff changeset
30 $input_type.fastq.forward
728c6b81b45e New Concatenator
matnguyen
parents: 6
diff changeset
31 $input_type.fastq.reverse
2
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
32 #end if
1
c1b6f5fbbcad Updated pathogist version
matnguyen
parents:
diff changeset
33 ]]></command>
c1b6f5fbbcad Updated pathogist version
matnguyen
parents:
diff changeset
34
2
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
35
1
c1b6f5fbbcad Updated pathogist version
matnguyen
parents:
diff changeset
36 <inputs>
2
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
37 <conditional name="input_type">
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
38 <param name="input_type_selector" type="select" label="Concatenation of variant calls, or clustering files">
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
39 <option value="variant">Variant Call Files</option>
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
40 <option value="clustering">Clustering/Distance Matrix Files</option>
9
728c6b81b45e New Concatenator
matnguyen
parents: 6
diff changeset
41 <option value="reads">Raw reads</option>
2
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
42 </param>
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
43 <when value="variant">
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
44 <param name="paths" type="data" label="Collection of calls" help="" optional="False" multiple="True"/>
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
45 </when>
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
46 <when value="clustering">
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
47 <conditional name="mlst">
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
48 <param name="mlst_checkbox" type="boolean" label="Include MLST"/>
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
49 <when value="true">
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
50 <param name="mlst_path" type="data" label="MLST Clustering/Distance Matrix file"
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
51 format="txt,tabular"/>
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
52 </when>
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
53 </conditional>
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
54 <conditional name="snp">
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
55 <param name="snp_checkbox" type="boolean" label="Include SNP"/>
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
56 <when value="true">
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
57 <param name="snp_path" type="data" label="SNP Clustering/Distance Matrix file"
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
58 format="txt,tabular"/>
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
59 </when>
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
60 </conditional>
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
61 <conditional name="cnv">
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
62 <param name="cnv_checkbox" type="boolean" label="Include CNV"/>
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
63 <when value="true">
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
64 <param name="cnv_path" type="data" label="CNV Clustering/Distance Matrix file"
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
65 format="txt,tabular"/>
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
66 </when>
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
67 </conditional>
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
68 <conditional name="spoligo">
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
69 <param name="spoligo_checkbox" type="boolean" label="Include Spoligotyping"/>
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
70 <when value="true">
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
71 <param name="spoligo_path" type="data" label="Spoligotyping Clustering/Distance Matrix file"
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
72 format="txt,tabular"/>
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
73 </when>
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
74 </conditional>
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
75 </when>
9
728c6b81b45e New Concatenator
matnguyen
parents: 6
diff changeset
76 <when value="reads">
728c6b81b45e New Concatenator
matnguyen
parents: 6
diff changeset
77 <param name="fastq" type="data_collection" collection_type="paired"
728c6b81b45e New Concatenator
matnguyen
parents: 6
diff changeset
78 format="fastqsanger,fastq,fastq.gz,fastqsanger.gz" label="Select paired collection"/>
728c6b81b45e New Concatenator
matnguyen
parents: 6
diff changeset
79 </when>
2
baf1e89b42eb Added config builder
matnguyen
parents: 1
diff changeset
80 </conditional>
1
c1b6f5fbbcad Updated pathogist version
matnguyen
parents:
diff changeset
81 </inputs>
c1b6f5fbbcad Updated pathogist version
matnguyen
parents:
diff changeset
82
c1b6f5fbbcad Updated pathogist version
matnguyen
parents:
diff changeset
83 <outputs>
9
728c6b81b45e New Concatenator
matnguyen
parents: 6
diff changeset
84 <data name="output" label="Paths of ${on_string}" format="txt" from_work_dir="paths.txt">
728c6b81b45e New Concatenator
matnguyen
parents: 6
diff changeset
85 <filter>input_type[input_type_selector] == 'variant'
728c6b81b45e New Concatenator
matnguyen
parents: 6
diff changeset
86 or input_type[input_type_selector] == 'clustering'</filter>
728c6b81b45e New Concatenator
matnguyen
parents: 6
diff changeset
87 </data>
728c6b81b45e New Concatenator
matnguyen
parents: 6
diff changeset
88 <data name="forward" label="Paths of ${on_string} (forward reads)" format="txt" from_work_dir="forward.txt">
728c6b81b45e New Concatenator
matnguyen
parents: 6
diff changeset
89 <filter>input_type[input_type_selector] == 'reads'</filter>
728c6b81b45e New Concatenator
matnguyen
parents: 6
diff changeset
90 </data>
728c6b81b45e New Concatenator
matnguyen
parents: 6
diff changeset
91 <data name="reverse" label="Paths of ${on_string} (reverse reads)" format="txt" from_work_dir="reverse.txt">
728c6b81b45e New Concatenator
matnguyen
parents: 6
diff changeset
92 <filter>input_type[input_type_selector] == 'reads'</filter>
728c6b81b45e New Concatenator
matnguyen
parents: 6
diff changeset
93 </data>
1
c1b6f5fbbcad Updated pathogist version
matnguyen
parents:
diff changeset
94 </outputs>
c1b6f5fbbcad Updated pathogist version
matnguyen
parents:
diff changeset
95
c1b6f5fbbcad Updated pathogist version
matnguyen
parents:
diff changeset
96 <help>
c1b6f5fbbcad Updated pathogist version
matnguyen
parents:
diff changeset
97
c1b6f5fbbcad Updated pathogist version
matnguyen
parents:
diff changeset
98 </help>
c1b6f5fbbcad Updated pathogist version
matnguyen
parents:
diff changeset
99
c1b6f5fbbcad Updated pathogist version
matnguyen
parents:
diff changeset
100 <citations>
c1b6f5fbbcad Updated pathogist version
matnguyen
parents:
diff changeset
101
c1b6f5fbbcad Updated pathogist version
matnguyen
parents:
diff changeset
102 </citations>
c1b6f5fbbcad Updated pathogist version
matnguyen
parents:
diff changeset
103 </tool>