upstream-extended/iuc/tools/bcftools/bcftools_plugin_fixploidy.xml
1<tool name="bcftools @EXECUTABLE@" id="bcftools_plugin_@PLUGIN_ID@" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
2 <description>plugin Fix ploidy</description>
3 <macros>
4 <token name="@EXECUTABLE@">fixploidy</token>
5 <token name="@PLUGIN_ID@">fixploidy</token>
6 <import>macros.xml</import>
7 </macros>
8 <expand macro="bio_tools" />
9 <expand macro="requirements" />
10 <expand macro="version_command" />
11 <command detect_errors="aggressive"><![CDATA[
12@PREPARE_INPUT_FILE@
13#set $section = $sec_restrict
14@PREPARE_TARGETS_FILE@
15@PREPARE_REGIONS_FILE@
16
17bcftools plugin @EXECUTABLE@
18
19## VCF input section
20#set $section = $sec_restrict
21@INCLUDE@
22@EXCLUDE@
23@REGIONS@
24@TARGETS@
25
26@OUTPUT_TYPE@
27@THREADS@
28
29## Primary Input/Outputs
30@INPUT_FILE@
31
32## Plugin section
33#set $section = $sec_plugin
34--
35@PLOIDY_FILE@
36#if $section.sex:
37--sex "${section.sex}"
38#end if
39## Only default tag GT is currently accepted
40--tags "$section.tags"
41> '$output_file'
42]]>
43 </command>
44 <inputs>
45 <expand macro="macro_input" />
46 <section name="sec_restrict" expanded="false" title="Restrict to">
47 <expand macro="macro_region_restrict" />
48 <expand macro="macro_target_restrict" />
49 <expand macro="macro_include" />
50 <expand macro="macro_exclude" />
51 </section>
52 <section name="sec_plugin" expanded="true" title="Plugin Options">
53 <expand macro="macro_ploidy_file" />
54 <param name="sex" type="data" format="tabular" label="Sample Sex file" optional="true"/>
55 <param name="tags" type="hidden" value="GT" label="tags"/>
56 </section>
57 <expand macro="macro_select_output_type" />
58 </inputs>
59 <outputs>
60 <expand macro="macro_vcf_output" />
61 </outputs>
62 <tests>
63 <test>
64 <param name="input_file" ftype="vcf" value="fixploidy.vcf" />
65 <section name="sec_plugin">
66 <param name="sex" ftype="tabular" value="fixploidy.samples" />
67 <param name="ploidy_file" ftype="tabular" value="fixploidy.ploidy" />
68 </section>
69 <param name="output_type" value="v" />
70 <output name="output_file">
71 <assert_contents>
72 <has_text_matching expression="3000004\txx\tC\tCTTTT\t11\tq11\tFLAG;IINT=11;IFLT=1.1;ISTR=xxx\tGT:FINT:FFLT:FSTR\t0/0/0/0/0/0:11:1.1:x\t0/0/0/0/0/0/0:11:1.1:xxx\t0|0|0|0|0|0|0|0:11:1.1:xxx" />
73 </assert_contents>
74 </output>
75 </test>
76 </tests>
77 <help><![CDATA[
78=====================================
79 bcftools @EXECUTABLE@ plugin
80=====================================
81
82@REGIONS_HELP@
83@TARGETS_HELP@
84@EXPRESSIONS_HELP@
85
86 ]]></help>
87 <expand macro="citations" />
88</tool>