comparison fuma.xml @ 9:b21145d59d9c draft default tip

planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/fuma commit 7bf6f3629e96bcaaed8770badd11366889efa99c
author erasmusmc
date Mon, 23 Jan 2017 09:41:08 -0500
parents 8366a8c82a7a
children
comparison
equal deleted inserted replaced
8:8366a8c82a7a 9:b21145d59d9c
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <tool id="fuma" name="FuMa" version="2.11.3-g0"> 2 <tool id="fuma" name="FuMa" version="3.0.5-g0">
3 <description>match detected fusion genes based on gene names (in particular for RNA-Seq)</description> 3 <description>match detected fusion genes based on gene names (in particular for RNA-Seq)</description>
4 4
5 <requirements> 5 <requirements>
6 <requirement type="package" version="2.7">python</requirement> 6 <requirement type="package" version="3.0.5">fuma</requirement>
7 <requirement type="package" version="2.11.3">fuma</requirement>
8 </requirements> 7 </requirements>
9 8
10 <version_command>fuma --version 2>&amp;1 | head -n 1</version_command><!-- -V also works, but is not GNU standard --> 9 <version_command>fuma --version 2>&amp;1 | head -n 1</version_command><!-- -V also works, but is not GNU standard -->
11 10
12 <command><![CDATA[ 11 <command><![CDATA[
13 #import pipes 12 #import pipes
14 13
15 #set $gene_annotations = [] 14 #set $gene_annotations = []
16 #set $samples = [] 15 #set $samples = []
23 22
24 #set $samples = $samples + [ $sample_name + ":" + str($d['format']) + ":" + str($d['sample'].file_name) ] 23 #set $samples = $samples + [ $sample_name + ":" + str($d['format']) + ":" + str($d['sample'].file_name) ]
25 #set $links = $links + [ $sample_name + ":" + str("ga_") + str($i) ] 24 #set $links = $links + [ $sample_name + ":" + str("ga_") + str($i) ]
26 #end for 25 #end for
27 26
28 #set $gene_annotations_str = " ".join(gene_annotations) 27 #set $gene_annotations_str = "'"+"' '".join(gene_annotations)+"'"
29 #set $samples_str = " ".join(samples) 28 #set $samples_str = "'"+"' '".join(samples)+"'"
30 #set $links_str = " ".join(links) 29 #set $links_str = "'"+"' '".join(links)+"'"
31 30
32 fuma 31 fuma
33 -m 32 -m
34 $params.matching_method 33 $params.matching_method
35 34
47 #if $params.output_format.value == "list_boolean" 46 #if $params.output_format.value == "list_boolean"
48 -f list 47 -f list
49 #else 48 #else
50 -f $params.output_format.value 49 -f $params.output_format.value
51 #end if 50 #end if
52 -o $fuma_overview ; 51 -o '${fuma_overview}'
53 52
54 53
55 #if $params.output_format.value == "list_boolean" 54 #if $params.output_format.value == "list_boolean"
56 fuma-list-to-boolean-list -o tmp.txt $fuma_overview ; 55 && fuma-list-to-boolean-list -o tmp.txt '${fuma_overview}'
57 mv tmp.txt $fuma_overview 56 && mv tmp.txt '${fuma_overview}'
58 #end if 57 #end if
59 ]]></command> 58 ]]></command>
60 59
61 <inputs> 60 <inputs>
62 <repeat name="datasets" title="FusionGene Datasets" min="2"> 61 <repeat name="datasets" title="FusionGene Datasets" min="2">
92 <param name="strand_specific_matching" type="hidden" value="--strand-specific-matching" /> 91 <param name="strand_specific_matching" type="hidden" value="--strand-specific-matching" />
93 <param name="acceptor_donor_order_specific_matchig" type="hidden" value="--no-acceptor-donor-order-specific-matching" /> 92 <param name="acceptor_donor_order_specific_matchig" type="hidden" value="--no-acceptor-donor-order-specific-matching" />
94 <param name="long_gene_size" type="hidden" value="200000" /> 93 <param name="long_gene_size" type="hidden" value="200000" />
95 </when> 94 </when>
96 <when value="full"> 95 <when value="full">
97 <param name="matching_method" type="select" label="Matching method: technique used to match fusion genes based on annotated gene sets" help="Overlap is the most sensitive but also more sensitive for long gene artefacts; subset is the recommended technique and EGM is conservative"> 96 <param name="matching_method" type="select" label="Matching method: technique used to match fusion genes based on annotated gene sets"
97 help="Overlap is the most sensitive but also more sensitive for long gene artefacts; subset is the recommended technique and EGM is conservative"
98 argument="-m">
98 <option value="overlap">Overlap</option> 99 <option value="overlap">Overlap</option>
99 <option value="subset" selected="True">Subset</option> 100 <option value="subset" selected="True">Subset</option>
100 <option value="egm">Exact Geneset Matching (EGM)</option> 101 <option value="egm">Exact Geneset Matching (EGM)</option>
101 </param> 102 </param>
102 103
109 truevalue="--acceptor-donor-order-specific-matching" 110 truevalue="--acceptor-donor-order-specific-matching"
110 falsevalue="--no-acceptor-donor-order-specific-matching" 111 falsevalue="--no-acceptor-donor-order-specific-matching"
111 label="Consider fusion genes distinct when the donor and acceptor sites are swapped (A,B) != (B,A)" 112 label="Consider fusion genes distinct when the donor and acceptor sites are swapped (A,B) != (B,A)"
112 help="This settings is not recommended when fusion genes detected in DNA-Seq are used" /> 113 help="This settings is not recommended when fusion genes detected in DNA-Seq are used" />
113 114
114 <param name="long_gene_size" type="integer" min="0" value="200000" label="Long gene size" help="Gene-name based matching is more sensitive to long genes. This is the gene size used to mark fusion genes spanning a 'long gene' as reported the output. Use 0 to disable this feature (--long-gene-size)" /> 115 <param name="long_gene_size" type="integer" min="0" value="200000" label="Long gene size"
116 help="Gene-name based matching is more sensitive to long genes. This is the gene size used to mark fusion genes spanning a 'long gene' as reported the output. Use 0 to disable this feature"
117 argument="--long-gene-size" />
115 118
116 <param name="output_format" type="select" label="Output format"> 119 <param name="output_format" type="select" label="Output format">
117 <option value="list_boolean" selected="true">List (Boolean)</option> 120 <option value="list_boolean" selected="true">List (Boolean)</option>
118 <option value="list">List</option> 121 <option value="list">List</option>
119 <option value="summary">Count summary</option> 122 <option value="summary">Count summary</option>
125 <outputs> 128 <outputs>
126 <data format="tabular" name="fuma_overview" label="${tool.name} on ${', '.join([ str(d['sample'].hid)+': '+d['sample'].name for d in $datasets ])}" /> 129 <data format="tabular" name="fuma_overview" label="${tool.name} on ${', '.join([ str(d['sample'].hid)+': '+d['sample'].name for d in $datasets ])}" />
127 </outputs> 130 </outputs>
128 131
129 <tests> 132 <tests>
133 <!-- Large tests, take long
130 <test> 134 <test>
131 <!-- <repeat name="datasets"> --> 135 <param name="datasets_0|sample" value="edgren_chimerascan.txt" ftype="tabular" />
132 <param name="datasets_0|sample" value="edgren_chimerascan.txt" ftype="tabular" /> 136 <param name="datasets_0|format" value="chimerascan" />
133 <param name="datasets_0|format" value="chimerascan" /> 137 <param name="datasets_0|gene_annotation" value="refseq_genes_hg19.bed" ftype="bed" />
134 <param name="datasets_0|gene_annotation" value="refseq_genes_hg19.bed" ftype="bed" /> 138
135 <!-- </repeat> --> 139 <param name="datasets_1|sample" value="edgren_defuse.txt" ftype="tabular" />
136 <!-- <repeat name="datasets"> --> 140 <param name="datasets_1|format" value="defuse" />
137 <param name="datasets_1|sample" value="edgren_defuse.txt" ftype="tabular" /> 141 <param name="datasets_1|gene_annotation" value="refseq_genes_hg19.bed" ftype="bed" />
138 <param name="datasets_1|format" value="defuse" /> 142
139 <param name="datasets_1|gene_annotation" value="refseq_genes_hg19.bed" ftype="bed" /> 143 <param name="datasets_2|sample" value="edgren_fusion-map.txt" ftype="tabular" />
140 <!-- </repeat> --> 144 <param name="datasets_2|format" value="fusionmap" />
141 <!-- <repeat name="datasets"> --> 145 <param name="datasets_2|gene_annotation" value="refseq_genes_hg19.bed" ftype="bed" />
142 <param name="datasets_2|sample" value="edgren_fusion-map.txt" ftype="tabular" /> 146
143 <param name="datasets_2|format" value="fusionmap" /> 147 <param name="datasets_3|sample" value="edgren_true_positives.txt" ftype="tabular" />
144 <param name="datasets_2|gene_annotation" value="refseq_genes_hg19.bed" ftype="bed" /> 148 <param name="datasets_3|format" value="fusionmap" />
145 <!-- </repeat> --> 149 <param name="datasets_3|gene_annotation" value="refseq_genes_hg19.bed" ftype="bed" />
146 <!-- <repeat name="datasets"> --> 150
147 <param name="datasets_3|sample" value="edgren_true_positives.txt" ftype="tabular" /> 151 <param name="settingsType" value="full" />
148 <param name="datasets_3|format" value="fusionmap" /> 152
149 <param name="datasets_3|gene_annotation" value="refseq_genes_hg19.bed" ftype="bed" /> 153 <param name="matching_method" value="subset" />
150 <!-- </repeat> --> 154 <param name="strand_specific_matching" value=" - - strand-specific-matching" />
155 <param name="acceptor_donor_order_specific_matchig" value=" - -acceptor-donor-order-specific-matching" />
156 <param name="long_gene_size" value="200000" />
157 <param name="output_format" value="list_boolean" />
158
159 <output name="fuma_overview" file="edgren_test_01_specifc_matching_output.txt" />
160 </test>
161 <test>
162 <param name="datasets_0|sample" value="edgren_fusion-map.txt" ftype="tabular" />
163 <param name="datasets_0|format" value="fusionmap" />
164 <param name="datasets_0|gene_annotation" value="refseq_genes_hg19.bed" ftype="bed" />
165
166 <param name="datasets_1|sample" value="edgren_true_positives.txt" ftype="tabular" />
167 <param name="datasets_1|format" value="fusionmap" />
168 <param name="datasets_1|gene_annotation" value="refseq_genes_hg19.bed" ftype="bed" />
169
170 <param name="datasets_0|sample" value="edgren_chimerascan.txt" ftype="tabular" />
171 <param name="datasets_0|format" value="chimerascan" />
172 <param name="datasets_0|gene_annotation" value="refseq_genes_hg19.bed" ftype="bed" />
173
174 <param name="datasets_1|sample" value="edgren_defuse.txt" ftype="tabular" />
175 <param name="datasets_1|format" value="defuse" />
176 <param name="datasets_1|gene_annotation" value="refseq_genes_hg19.bed" ftype="bed" />
177
178 <param name="settingsType" value="full" />
179
180 <param name="matching_method" value="subset" />
181 <param name="strand_specific_matching" value="False" />
182 <param name="acceptor_donor_order_specific_matchig" value="False" />
183 <param name="long_gene_size" value="200000" />
184 <param name="output_format" value="list_boolean" />
185
186 <output name="fuma_overview" file="edgren_test_02_unspecifc_matching_output.txt" />
187 </test>
188 -->
189 <test>
190 <param name="datasets_0|sample" value="edgren_fusion-map.txt" ftype="tabular" />
191 <param name="datasets_0|format" value="fusionmap" />
192 <param name="datasets_0|gene_annotation" value="refseq_genes_hg19.bed" ftype="bed" />
193
194 <param name="datasets_1|sample" value="edgren_true_positives.txt" ftype="tabular" />
195 <param name="datasets_1|format" value="fusionmap" />
196 <param name="datasets_1|gene_annotation" value="refseq_genes_hg19.bed" ftype="bed" />
151 197
152 <param name="settingsType" value="full" /> 198 <param name="settingsType" value="full" />
153 199
154 <param name="matching_method" value="subset" /> 200 <param name="matching_method" value="subset" />
155 <param name="strand_specific_matching" value="--strand-specific-matching" /> 201 <param name="strand_specific_matching" value="--strand-specific-matching" />
156 <param name="acceptor_donor_order_specific_matchig" value="--acceptor-donor-order-specific-matching" /> 202 <param name="acceptor_donor_order_specific_matchig" value="--acceptor-donor-order-specific-matching" />
157 <param name="long_gene_size" value="200000" /> 203 <param name="long_gene_size" value="200000" />
158 <param name="output_format" value="list_boolean" /> 204 <param name="output_format" value="list_boolean" />
159 205
160 <output name="fuma_overview" file="edgren_test_01_specifc_matching_output.txt" /> 206 <output name="fuma_overview" file="edgren_test_03_specific_matching_output.txt" />
161 </test> 207 </test>
162 <test> 208 <test>
163 <!-- <repeat name="datasets"> --> 209 <param name="datasets_0|sample" value="edgren_fusion-map.txt" ftype="tabular" />
164 <param name="datasets_0|sample" value="edgren_chimerascan.txt" ftype="tabular" /> 210 <param name="datasets_0|format" value="fusionmap" />
165 <param name="datasets_0|format" value="chimerascan" /> 211 <param name="datasets_0|gene_annotation" value="refseq_genes_hg19.bed" ftype="bed" />
166 <param name="datasets_0|gene_annotation" value="refseq_genes_hg19.bed" ftype="bed" /> 212
167 <!-- </repeat> --> 213 <param name="datasets_1|sample" value="edgren_true_positives.txt" ftype="tabular" />
168 <!-- <repeat name="datasets"> --> 214 <param name="datasets_1|format" value="fusionmap" />
169 <param name="datasets_1|sample" value="edgren_defuse.txt" ftype="tabular" /> 215 <param name="datasets_1|gene_annotation" value="refseq_genes_hg19.bed" ftype="bed" />
170 <param name="datasets_1|format" value="defuse" />
171 <param name="datasets_1|gene_annotation" value="refseq_genes_hg19.bed" ftype="bed" />
172 <!-- </repeat> -->
173 <!-- <repeat name="datasets"> -->
174 <param name="datasets_2|sample" value="edgren_fusion-map.txt" ftype="tabular" />
175 <param name="datasets_2|format" value="fusionmap" />
176 <param name="datasets_2|gene_annotation" value="refseq_genes_hg19.bed" ftype="bed" />
177 <!-- </repeat> -->
178 <!-- <repeat name="datasets"> -->
179 <param name="datasets_3|sample" value="edgren_true_positives.txt" ftype="tabular" />
180 <param name="datasets_3|format" value="fusionmap" />
181 <param name="datasets_3|gene_annotation" value="refseq_genes_hg19.bed" ftype="bed" />
182 <!-- </repeat> -->
183 216
184 <param name="settingsType" value="full" /> 217 <param name="settingsType" value="full" />
185 218
186 <param name="matching_method" value="subset" /> 219 <param name="matching_method" value="subset" />
187 <param name="strand_specific_matching" value="False" /><!-- Set to false, automatically sets the false value --> 220 <param name="strand_specific_matching" value="False" /><!-- Set to false, automatically sets the false value -->
188 <param name="acceptor_donor_order_specific_matchig" value="False" /><!-- Set to false, automatically sets the false value --> 221 <param name="acceptor_donor_order_specific_matchig" value="False" /><!-- Set to false, automatically sets the false value -->
189 <param name="long_gene_size" value="200000" /> 222 <param name="long_gene_size" value="200000" />
190 <param name="output_format" value="list_boolean" /> 223 <param name="output_format" value="list_boolean" />
191 224
192 <output name="fuma_overview" file="edgren_test_02_unspecifc_matching_output.txt" /> 225 <output name="fuma_overview" file="edgren_test_04_unspecific_matching_output.txt" />
193 </test> 226 </test>
194 </tests> 227 </tests>
195 228
196 <help><![CDATA[ 229 <help><![CDATA[
197 ============ 230 ============