Source code

Download source archive ↓

upstream-extended/iuc/tools/bcftools/bcftools_plugin_dosage.xml

1<tool name="bcftools @EXECUTABLE@" id="bcftools_plugin_@PLUGIN_ID@" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
2    <description>plugin genotype dosage</description>
3    <macros>
4        <token name="@EXECUTABLE@">dosage</token>
5        <token name="@PLUGIN_ID@">dosage</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## Primary Input/Outputs
27@INPUT_FILE@
28
29## Plugin section
30#set $section = $sec_plugin
31#if $section.tags:
32-- --tags "${section.tags}"
33#end if
34> '$output_file'
35
36]]>
37    </command>
38    <inputs>
39        <expand macro="macro_input" />
40        <section name="sec_restrict" expanded="false" title="Restrict to">
41            <expand macro="macro_region_restrict" />
42            <expand macro="macro_target_restrict" />
43            <expand macro="macro_include" />
44            <expand macro="macro_exclude" />
45        </section>
46        <section name="sec_plugin" expanded="true" title="Plugin Options">
47            <param name="tags" type="text" value="" optional="true" label="VCF tag to determine the dosage from [PL,GL,GT]">
48                <validator type="regex" message="Tags  separated by commas">^(PL|GL|GT)(,(PL|GL|GT))*$</validator>
49            </param>
50        </section>
51    </inputs>
52    <outputs>
53        <data name="output_file" format="tabular"/>
54    </outputs>
55    <tests>
56        <test>
57            <param name="input_file" ftype="vcf" value="plugin1.vcf" />
58            <output name="output_file">
59                <assert_contents>
60                    <has_text_matching expression="#\[1]CHROM\t\[2]POS\t\[3]REF\t\[4]ALT\t\[5]A\t\[6]B"/>
61                    <has_text_matching expression="1\t3157410\tGA\tG\t2.0\t2.0"/>
62                </assert_contents>
63            </output>
64        </test>
65    </tests>
66    <help><![CDATA[
67=====================================
68 bcftools @EXECUTABLE@ plugin
69=====================================
70
71@REGIONS_HELP@
72@TARGETS_HELP@
73@EXPRESSIONS_HELP@
74
75    ]]></help>
76    <expand macro="citations" />
77</tool>