annotate hubArchiveCreator.xml @ 15:2a45cd656e8e draft

planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit f11032a9df62c79a46f6e4a055a3c7ae981ea721
author rmarenco
date Fri, 02 Sep 2016 15:41:51 -0400
parents cbd8982c9f51
children 3233451a3bd6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11
d05236b15f81 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 3760d0c8353b924ecf994131a5c2eb381aa81fb2
rmarenco
parents: 10
diff changeset
1 <tool id="hubArchiveCreator" name="Hub Archive Creator" version="2.3.0">
0
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
2 <description>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
3 This Galaxy tool permits to prepare your files to be ready for
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
4 Assembly Hub visualization.
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
5 </description>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
6
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
7 <requirements>
15
2a45cd656e8e planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit f11032a9df62c79a46f6e4a055a3c7ae981ea721
rmarenco
parents: 14
diff changeset
8 <!-- Conda dependencies -->
2a45cd656e8e planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit f11032a9df62c79a46f6e4a055a3c7ae981ea721
rmarenco
parents: 14
diff changeset
9 <requirement type="package" version="332">ucsc-bedtobigbed</requirement>
2a45cd656e8e planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit f11032a9df62c79a46f6e4a055a3c7ae981ea721
rmarenco
parents: 14
diff changeset
10 <requirement type="package" version="332">ucsc-fatotwobit</requirement>
2a45cd656e8e planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit f11032a9df62c79a46f6e4a055a3c7ae981ea721
rmarenco
parents: 14
diff changeset
11 <requirement type="package" version="332">ucsc-genepredtobed</requirement>
2a45cd656e8e planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit f11032a9df62c79a46f6e4a055a3c7ae981ea721
rmarenco
parents: 14
diff changeset
12 <requirement type="package" version="332">ucsc-genepredtobiggenepred</requirement>
2a45cd656e8e planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit f11032a9df62c79a46f6e4a055a3c7ae981ea721
rmarenco
parents: 14
diff changeset
13 <requirement type="package" version="332">ucsc-gff3togenepred</requirement>
2a45cd656e8e planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit f11032a9df62c79a46f6e4a055a3c7ae981ea721
rmarenco
parents: 14
diff changeset
14 <requirement type="package" version="332">ucsc-gtftogenepred</requirement>
2a45cd656e8e planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit f11032a9df62c79a46f6e4a055a3c7ae981ea721
rmarenco
parents: 14
diff changeset
15 <requirement type="package" version="332">ucsc-twobitinfo</requirement>
2a45cd656e8e planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit f11032a9df62c79a46f6e4a055a3c7ae981ea721
rmarenco
parents: 14
diff changeset
16 <requirement type="package" version="1.3">samtools</requirement>
2a45cd656e8e planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit f11032a9df62c79a46f6e4a055a3c7ae981ea721
rmarenco
parents: 14
diff changeset
17 <!-- ToolShed dependencies -->
0
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
18 <requirement type="package" version="312">ucsc_tools</requirement>
4
1b653b332695 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 64cfc08088d11f6818c1b4e5514ef9e67969eaff-dirty
rmarenco
parents: 3
diff changeset
19 <requirement type="package" version="0.0.1">gff3ToGenePred</requirement>
1b653b332695 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 64cfc08088d11f6818c1b4e5514ef9e67969eaff-dirty
rmarenco
parents: 3
diff changeset
20 <requirement type="package" version="0.0.1">gtfToGenePred</requirement>
1b653b332695 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 64cfc08088d11f6818c1b4e5514ef9e67969eaff-dirty
rmarenco
parents: 3
diff changeset
21 <requirement type="package" version="0.0.1">genePredToBed</requirement>
14
cbd8982c9f51 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 38f01a73fea83321618501978a3a505b5e8ab527
rmarenco
parents: 13
diff changeset
22 <requirement type="package" version="0.0.1">genePredToBigGenePred</requirement>
0
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
23 <requirement type="package" version="1.2">samtools</requirement>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
24 </requirements>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
25
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
26 <stdio>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
27 <regex match="^pass1"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
28 source="stderr"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
29 level="log"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
30 description="bedToBigBed"/>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
31 <!-- TODO: Add the case pass1 and 0 chroms -->
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
32 <!-- TODO: Add the case pass2 and 0 records or 0 fields -->
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
33 </stdio>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
34
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
35 <!-- Idea: python \ -augustus [parameters] \ -trfBig [parameters] -->
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
36 <command detect_errors="exit_code"><![CDATA[
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
37 mkdir -p $output.extra_files_path;
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
38 python $__tool_directory__/hubArchiveCreator.py
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
39
10
acc233161f50 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 1b1063f90004764bcf504f4340738eca5c4b1f9d
rmarenco
parents: 4
diff changeset
40 ## Ask the user to enter the genome name
acc233161f50 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 1b1063f90004764bcf504f4340738eca5c4b1f9d
rmarenco
parents: 4
diff changeset
41 --genome_name '$genome_name'
acc233161f50 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 1b1063f90004764bcf504f4340738eca5c4b1f9d
rmarenco
parents: 4
diff changeset
42
0
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
43 #import json
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
44
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
45 #set global data_parameter_dict = {}
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
46
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
47 ## Function to retrieve the data of the inputs
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
48 #def prepare_json($input_to_prepare, $order_index, $extra_data_dict={})
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
49 #set false_path = str($input_to_prepare)
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
50 #set name = $input_to_prepare.name
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
51
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
52 #set data_dict = {"name": $name}
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
53 #silent data_dict.update($extra_data_dict)
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
54
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
55 ## Add the ordering by taking the tool form indexes
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
56 #silent $data_dict.update({"order_index": $order_index + 1})
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
57
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
58 #silent $data_parameter_dict.update({$false_path: $data_dict})
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
59
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
60 #end def
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
61
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
62 #for $i, $f in enumerate( $format )
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
63 #if $f.formatChoice.format_select == "bam"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
64 --bam $f.formatChoice.BAM
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
65 #set bam_index = $f.formatChoice.BAM.metadata.bam_index
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
66 #silent $prepare_json($f.formatChoice.BAM, $i, {"index": $bam_index})
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
67 #end if
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
68 #if $f.formatChoice.format_select == "bed"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
69 #if $f.formatChoice.bedChoice.bed_select == "bed"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
70 --bed $f.formatChoice.bedChoice.BED
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
71 #silent $prepare_json($f.formatChoice.bedChoice.BED, $i)
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
72 #end if
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
73 #if $f.formatChoice.bedChoice.bed_select == "bed_simple_repeats_option"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
74 --bedSimpleRepeats $f.formatChoice.bedChoice.BED_simple_repeats
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
75 #silent $prepare_json($f.formatChoice.bedChoice.BED_simple_repeats, $i)
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
76 #end if
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
77 #end if
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
78 #if $f.formatChoice.format_select == "bigwig"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
79 --bigwig $f.formatChoice.BIGWIG
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
80 #silent $prepare_json($f.formatChoice.BIGWIG, $i)
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
81 #end if
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
82 #if $f.formatChoice.format_select == "gff3"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
83 --gff3 $f.formatChoice.GFF3
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
84 #silent $prepare_json($f.formatChoice.GFF3, $i)
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
85 #end if
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
86 #if $f.formatChoice.format_select == "gtf"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
87 ## Add also GTF from Agustus? See https://github.com/ENCODE-DCC/kentUtils/issues/8
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
88 --gtf $f.formatChoice.GTF
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
89 #silent $prepare_json($f.formatChoice.GTF, $i)
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
90 #end if
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
91 #end for
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
92
10
acc233161f50 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 1b1063f90004764bcf504f4340738eca5c4b1f9d
rmarenco
parents: 4
diff changeset
93 ## We combine the fasta file dataset name with his false path in a JSON object
acc233161f50 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 1b1063f90004764bcf504f4340738eca5c4b1f9d
rmarenco
parents: 4
diff changeset
94 #set fasta_json = json.dumps({"false_path": str($fasta_file), "name": $fasta_file.name})
acc233161f50 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 1b1063f90004764bcf504f4340738eca5c4b1f9d
rmarenco
parents: 4
diff changeset
95 -f '$fasta_json'
acc233161f50 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 1b1063f90004764bcf504f4340738eca5c4b1f9d
rmarenco
parents: 4
diff changeset
96
0
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
97 ## Dump the final json
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
98 #set all_data_json = json.dumps($data_parameter_dict)
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
99
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
100 --data_json '$all_data_json'
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
101
10
acc233161f50 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 1b1063f90004764bcf504f4340738eca5c4b1f9d
rmarenco
parents: 4
diff changeset
102 ## Retrieve the user email
acc233161f50 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 1b1063f90004764bcf504f4340738eca5c4b1f9d
rmarenco
parents: 4
diff changeset
103 --user_email $__user_email__
acc233161f50 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 1b1063f90004764bcf504f4340738eca5c4b1f9d
rmarenco
parents: 4
diff changeset
104
13
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
105 -d $__tool_directory__
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
106
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
107 -e $output.files_path
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
108
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
109 $advanced_options.debug_mode
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
110
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
111 -o $output;
0
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
112 ]]></command>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
113
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
114 <inputs>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
115 <param
10
acc233161f50 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 1b1063f90004764bcf504f4340738eca5c4b1f9d
rmarenco
parents: 4
diff changeset
116 name="genome_name"
acc233161f50 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 1b1063f90004764bcf504f4340738eca5c4b1f9d
rmarenco
parents: 4
diff changeset
117 type="text"
acc233161f50 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 1b1063f90004764bcf504f4340738eca5c4b1f9d
rmarenco
parents: 4
diff changeset
118 size="30"
acc233161f50 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 1b1063f90004764bcf504f4340738eca5c4b1f9d
rmarenco
parents: 4
diff changeset
119 value="unknown"
acc233161f50 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 1b1063f90004764bcf504f4340738eca5c4b1f9d
rmarenco
parents: 4
diff changeset
120 label="UCSC Genome Browser assembly ID"
acc233161f50 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 1b1063f90004764bcf504f4340738eca5c4b1f9d
rmarenco
parents: 4
diff changeset
121 />
acc233161f50 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 1b1063f90004764bcf504f4340738eca5c4b1f9d
rmarenco
parents: 4
diff changeset
122 <param
0
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
123 format="fasta"
10
acc233161f50 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 1b1063f90004764bcf504f4340738eca5c4b1f9d
rmarenco
parents: 4
diff changeset
124 name="fasta_file"
0
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
125 type="data"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
126 label="Reference genome"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
127 />
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
128 <repeat name="format" title="Formats">
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
129 <conditional name="formatChoice">
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
130 <param name="format_select" type="select" label="Format">
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
131 <option value="bam" selected="true">BAM</option>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
132 <option value="bed">BED</option>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
133 <option value="bigwig">BIGWIG</option>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
134 <option value="gff3">GFF3</option>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
135 <option value="gtf">GTF</option>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
136 </param>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
137
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
138 <when value="bam">
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
139 <param
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
140 format="bam"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
141 name="BAM"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
142 type="data"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
143 label="BAM File"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
144 />
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
145 </when>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
146 <when value="bigwig">
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
147 <param
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
148 format="bigwig"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
149 name="BIGWIG"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
150 type="data"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
151 label="BIGWIG File"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
152 />
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
153 </when>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
154 <when value="gff3">
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
155 <param
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
156 format="gff3"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
157 name="GFF3"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
158 type="data"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
159 label="GFF3 File"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
160 />
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
161 </when>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
162 <when value="gtf">
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
163 <param
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
164 format="gtf"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
165 name="GTF"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
166 type="data"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
167 label="GTF File"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
168 />
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
169 </when>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
170 <when value="bed">
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
171 <conditional name="bedChoice">
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
172 <param name="bed_select" type="select" label="Bed Choice">
11
d05236b15f81 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 3760d0c8353b924ecf994131a5c2eb381aa81fb2
rmarenco
parents: 10
diff changeset
173 <option value="bed" selected="true">BED Generic (bed3+)</option>
d05236b15f81 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 3760d0c8353b924ecf994131a5c2eb381aa81fb2
rmarenco
parents: 10
diff changeset
174 <option value="bed_simple_repeats_option">BED Simple repeat (bed4+12 / simpleRepeat.as)</option>
0
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
175 </param>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
176 <when value="bed">
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
177 <param
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
178 format="bed"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
179 name="BED"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
180 type="data"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
181 label="Generic Bed File Choice"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
182 />
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
183 </when>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
184 <when value="bed_simple_repeats_option">
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
185 <param
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
186 format="bed"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
187 name="BED_simple_repeats"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
188 type="data"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
189 label="Bed Simple Repeats (Bed4+12) File"
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
190 />
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
191 </when>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
192 </conditional>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
193 </when>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
194 </conditional>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
195 </repeat>
13
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
196 <conditional name="advanced_options">
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
197 <param name="advanced_options_selector" type="select" label="Advanced options">
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
198 <option value="off" selected="true">Hide advanced options</option>
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
199 <option value="on">Display advanced options</option>
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
200 </param>
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
201 <!-- TODO: Avoid redundancy here -->
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
202 <when value="on">
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
203 <param name="debug_mode" type="boolean"
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
204 label="Activate debug mode" checked="false"
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
205 truevalue="--debug_mode" falsevalue="">
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
206 <help>
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
207 Use this option if you are a G-OnRamp developer
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
208 </help>
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
209 </param>
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
210 </when>
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
211 <when value="off">
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
212 <param name="debug_mode" type="hidden"
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
213 value="">
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
214 </param>
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
215 </when>
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
216 </conditional>
25809f699cb3 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 65ab931ef2b05a5acf06cbde3a746c94a0a0a4cb
rmarenco
parents: 11
diff changeset
217 </inputs>
0
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
218
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
219 <outputs>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
220 <data format="trackhub" name="output"/>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
221 </outputs>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
222
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
223 <tests>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
224 <!-- Can also use assert_command to test command -->
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
225 <!-- Testing GFF3 input -->
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
226 <test>
10
acc233161f50 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 1b1063f90004764bcf504f4340738eca5c4b1f9d
rmarenco
parents: 4
diff changeset
227 <param name="fasta_file" value="dbia3.fa"/>
0
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
228 <repeat name="format">
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
229 <conditional name="formatChoice">
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
230 <param name="format_select" value="gff3"/>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
231 <param name="GFF3" value="augustusDbia3.gff3"/>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
232 </conditional>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
233 </repeat>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
234 <repeat name="format">
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
235 <param name="BED_simple_repeats" value="dbia3_trfBig_unsorted.bed"/>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
236 <!-- TODO: Ask why the tests are not passing with this xml:
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
237 Error creating a job for these tool inputs - Error executing tool: 'NoneType' object has no attribute 'current_history'
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
238 <conditional name="formatChoice">
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
239 <param name="format_select" value="bed"/>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
240 <conditional name="bedChoice">
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
241 <param name="bed_select" value="bed_simple_repeats_option"/>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
242 <param name="BED_simple_repeats" value="dbia3_trfBig_unsorted.bed"/>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
243 </conditional>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
244 </conditional>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
245 -->
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
246 </repeat>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
247
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
248 <output name="output">
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
249 <assert_contents>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
250 <has_text text="myHub"/>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
251 </assert_contents>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
252 <assert_contents>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
253 <has_text text="dbia3_trfBig.bb"/>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
254 </assert_contents>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
255 <assert_contents>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
256 <has_text text="SAODOAii qwwqod92921"/>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
257 </assert_contents>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
258 </output>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
259 </test>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
260 <test>
10
acc233161f50 planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 1b1063f90004764bcf504f4340738eca5c4b1f9d
rmarenco
parents: 4
diff changeset
261 <param name="fasta_file" value="dbia3.fa"/>
0
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
262 <param name="GFF3" value="augustusDbia3.gff3"/>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
263 <output name="output" file="augustusOutput.html" lines_diff="2">
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
264 <extra_files type="directory" value="myHub"/>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
265 <extra_files type="file" name="myHub/dbia3/tracks/augustusDbia3.bb" value="augustusDbia3.bb"/>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
266 </output>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
267 </test>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
268 <!-- Testing Generic BED input -->
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
269 <!-- Testing Bed Simple repeat input -->
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
270 </tests>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
271
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
272 <help>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
273 This Galaxy tool permits to prepare your files to be ready for
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
274 Assembly Hub visualization.
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
275 </help>
0f3bc17e5ede Uploaded
rmarenco
parents:
diff changeset
276 </tool>