comparison bcftools_concat.xml @ 0:dda05d07d7d4 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bcftools commit ef90c4602bdb83ea7455946c9d175ea27284e643
author iuc
date Wed, 06 Jul 2016 07:01:43 -0400
parents
children 50ff4b18319c
comparison
equal deleted inserted replaced
-1:000000000000 0:dda05d07d7d4
1 <?xml version='1.0' encoding='utf-8'?>
2 <tool name="bcftools @EXECUTABLE@" id="bcftools_@EXECUTABLE@" version="@VERSION@.0">
3 <description>Concatenate or combine VCF/BCF files</description>
4 <macros>
5 <token name="@EXECUTABLE@">concat</token>
6 <import>macros.xml</import>
7 </macros>
8 <expand macro="requirements" />
9 <expand macro="version_command" />
10 <command detect_errors="aggressive"><![CDATA[
11 @PREPARE_ENV@
12 @PREPARE_INPUT_FILES@
13 bcftools @EXECUTABLE@
14
15 ## Default section
16 #set $section = $sec_default
17
18 #if $section.overlaps.allow_overlaps == 'yes':
19 --allow-overlaps
20 #if $section.overlaps.rm_dups:
21 --rm-dups $section.overlaps.rm_dups
22 #end if
23 #end if
24 ${section.ligate}
25 ${section.compact_PS}
26 #if $section.min_PQ:
27 --min-PQ "${section.min_PQ}"
28 #end if
29
30 #set $section = $sec_restrict
31 @REGIONS@
32
33 @OUTPUT_TYPE@
34 @THREADS@
35
36 ## Primary Input/Outputs
37 @INPUT_FILES@
38 > "$output_file"
39 ]]>
40 </command>
41 <inputs>
42 <expand macro="macro_inputs" />
43 <section name="sec_restrict" expanded="false" title="Restrict to">
44 <expand macro="macro_regions" />
45 </section>
46 <section name="sec_default" expanded="true" title="Concat Options">
47 <conditional name="overlaps">
48 <param name="allow_overlaps" type="select" label="Allow Overlaps">
49 <help>
50 First coordinate of the next file can precede last record of the current file.
51 </help>
52 <option value="yes">Yes </option>
53 <option value="no">No </option>
54 </param>
55 <when value="yes">
56 <param name="rm_dups" type="select" label="Remove duplicate" optional="True" >
57 <help><![CDATA[
58 Output duplicate records present in multiple files only once:
59 rm-dups <snps|indels|both|all|none>
60 ]]></help>
61 <option value="snps">snps - SNP records</option>
62 <option value="indels">indels - indel records</option>
63 <option value="both">both - both SNP and indel records</option>
64 <option value="all">all - records</option>
65 <option value="none">none - output multiple records instead</option>
66 </param>
67 </when>
68 <when value="no"/>
69 </conditional>
70 <param name="ligate" type="boolean" truevalue="--ligate" falsevalue="" label="Ligate"
71 help="Ligate phased VCFs by matching phase at overlapping haplotypes" />
72 <param name="compact_PS" type="boolean" truevalue="--compact-PS" falsevalue="" label="Compact Ps"
73 help="Do not output PS tag at each site, only at the start of a new phase set block." />
74 <param name="min_PQ" type="integer" label="Min Pq" default="30" optional="True"
75 help="Break phase set if phasing quality is lower than &lt;int&gt;" />
76 </section>
77 <expand macro="macro_select_output_type" />
78 </inputs>
79 <outputs>
80 <expand macro="macro_vcf_output"/>
81 </outputs>
82 <tests>
83 <test>
84 <param name="input_files" ftype="vcf" value="concat.1.b.vcf,concat.1.a.vcf" />
85 <param name="output_type" value="v" />
86 <output name="output_file">
87 <assert_contents>
88 <has_text_matching expression="1\t100"/>
89 <has_text_matching expression="3\t192"/>
90 </assert_contents>
91 </output>
92 </test>
93 <test>
94 <param name="input_files" ftype="vcf" value="concat.2.b.vcf,concat.2.a.vcf" />
95 <param name="allow_overlaps" value="yes" />
96 <param name="output_type" value="v" />
97 <output name="output_file">
98 <assert_contents>
99 <has_text_matching expression="2\t140\t.\tA\tG"/>
100 <has_text_matching expression="2\t140\t.\tGT\tG"/>
101 </assert_contents>
102 </output>
103 </test>
104 <test>
105 <param name="input_files" ftype="vcf" value="concat.2.b.vcf,concat.2.a.vcf" />
106 <param name="allow_overlaps" value="yes" />
107 <param name="rm_dups" value="none" />
108 <param name="output_type" value="v" />
109 <output name="output_file">
110 <assert_contents>
111 <has_text_matching expression="2\t160\t.\tTAAAA"/>
112 </assert_contents>
113 </output>
114 </test>
115 </tests>
116 <help><![CDATA[
117 =====================================
118 bcftools @EXECUTABLE@ plugin
119 =====================================
120
121 Concatenate or combine VCF/BCF files. All source files must have the same sample columns appearing in the same order. The program can be used, for example, to concatenate chromosome VCFs into one VCF, or combine a SNP VCF and an indel VCF into one. The input files must be sorted by chr and position. The files must be given in the correct order to produce sorted VCF on output unless the -a, --allow-overlaps option is specified.
122
123 @REGIONS_HELP@
124
125 @BCFTOOLS_MANPAGE@#@EXECUTABLE@
126
127 @BCFTOOLS_WIKI@
128 ]]>
129 </help>
130 <expand macro="citations" />
131 </tool>