comparison variant.xml @ 0:3cde72a6e37c draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/medaka commit 1b97fa7a21a2c85bf4891aed1b7df92685b346c3"
author iuc
date Sat, 23 May 2020 13:36:47 -0400
parents
children 43388fc8ad0b
comparison
equal deleted inserted replaced
-1:000000000000 0:3cde72a6e37c
1 <?xml version="1.0"?>
2 <tool id="medaka_variant" name="medaka: Variant" version="@TOOL_VERSION@+galaxy0" profile="@PROFILE@">
3 <description>Probability decoding</description>
4 <macros>
5 <import>macros.xml</import>
6 </macros>
7 <expand macro="requirements"/>
8 <expand macro="version_command"/>
9 <command detect_errors="exit_code"><![CDATA[
10 ## initialize
11 @REF_FASTA@
12
13 ## run
14 medaka variant
15 ## optional
16 --debug
17 #if $region
18 --region '${region}'
19 #end if
20 $verbose
21 ## required
22 'reference.fa'
23 #for $current in $inputs
24 '$current'
25 #end for
26 'result.vcf' ## output
27
28 |& tee log.txt
29 ]]></command>
30 <inputs>
31 <param argument="inputs" type="data" format="h5" multiple="true" label="Select consensus file(s)"/>
32 <expand macro="reference"/>
33 <param argument="--region" type="text" value="" optional="true" label="Set reference names to limit variant calling" help="Separated by ','."/>
34 <param argument="--verbose" type="boolean" truevalue="--verbose" falsevalue="" label="Populate VCF info fields?"/>
35 <param name="out" type="select" multiple="true" optional="false" label="Select output file(s)">
36 <option value="result" selected="true">Result</option>
37 <option value="log">Log</option>
38 </param>
39 </inputs>
40 <outputs>
41 <!-- standard -->
42 <data name="out_result" format="vcf" from_work_dir="result.vcf" label="${tool.name} on ${on_string}: Result">
43 <filter>'result' in out</filter>
44 </data>
45 <!-- optional -->
46 <data name="out_log" format="tabular" from_work_dir="log.txt" label="${tool.name} on ${on_string}: Log">
47 <filter>'log' in out</filter>
48 </data>
49 </outputs>
50 <tests>
51 <!-- #1 default -->
52 <test expect_num_outputs="1">
53 <conditional name="reference_source">
54 <param name="reference_source_selector" value="cached"/>
55 <param name="ref_file" value="bwa-mem-mt-genome"/>
56 </conditional>
57 <param name="inputs" value="consensus.hdf"/>
58 <output name="out_result">
59 <assert_contents>
60 <has_n_lines n="6"/>
61 <has_line line="##fileformat=VCFv4.1"/>
62 </assert_contents>
63 </output>
64 </test>
65 <!-- #2 -->
66 <test expect_num_outputs="2">
67 <conditional name="reference_source">
68 <param name="reference_source_selector" value="cached"/>
69 <param name="ref_file" value="bwa-mem-mt-genome"/>
70 </conditional>
71 <param name="inputs" value="consensus.hdf"/>
72 <param name="verbose" value="true"/>
73 <param name="out" value="result,log"/>
74 <output name="out_result">
75 <assert_contents>
76 <has_n_lines n="13"/>
77 <has_line line="##fileformat=VCFv4.1"/>
78 </assert_contents>
79 </output>
80 <output name="out_log">
81 <assert_contents>
82 <has_n_lines n="17"/>
83 <has_text_matching expression=".+Loaded.+"/>
84 </assert_contents>
85 </output>
86 </test>
87 </tests>
88 <help><![CDATA[
89 .. class:: infomark
90
91 **What it does**
92
93 @WID@
94
95 The module *variant* decodes probabilities.
96
97 **Input**
98
99 - reference sequence (FASTA)
100 - (several) consensus files (H5/HDF)
101
102 **Output**
103
104 - decoded probabilities (VCF)
105
106 **References**
107
108 @REFERENCES@
109 ]]></help>
110 <expand macro="citations"/>
111 </tool>