annotate vcffilter.xml @ 9:4cb86a8987de draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit f28d66c0bcad8ac29be2afec28bc639317239775
author iuc
date Tue, 01 Oct 2024 13:48:03 +0000
parents af9bfb0f213e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
7ce3b93e0883 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 393a497b224cd86285052e5ca2f41edc01125503
iuc
parents: 6
diff changeset
1 <tool id="vcffilter2" name="VCFfilter:" version="@WRAPPER_VERSION@+galaxy3">
1
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
2 <description>filter VCF data in a variety of attributes</description>
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
3 <macros>
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
4 <import>macros.xml</import>
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
5 </macros>
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
6 <expand macro="requirements">
8
af9bfb0f213e "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 36e9065027cc7bf721e9d203208477ee88906c57"
iuc
parents: 7
diff changeset
7 <requirement type="package" version="1.10.2">htslib</requirement>
1
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
8 </expand>
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
9 <expand macro="stdio" />
3
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
10 <command><![CDATA[
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
11 ln -s '$input1' input1.vcf &&
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
12 bgzip input1.vcf &&
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
13 tabix -p vcf input1.vcf.gz &&
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
14 vcffilter
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
15 #for $filter_el in $filter_repeat:
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
16 $filter_el.filter_type '$filter_el.filter_value'
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
17 #end for
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
18 $filter_sites
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
19 $tag_pass
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
20 $tag_fail
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
21 $append_filter
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
22 $allele_tag
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
23 $invert
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
24 $or
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
25 #if str($region):
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
26 --region '$region'
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
27 #end if
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
28 input1.vcf.gz
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
29 > '${out_file1}'
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
30 ]]></command>
1
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
31 <inputs>
3
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
32 <param name="input1" type="data" format="vcf" label="VCF dataset to filter"/>
4
763f297f3272 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 2ceb7f04846b90fd08d440b9f40493bb0434ce26
iuc
parents: 3
diff changeset
33 <repeat name="filter_repeat" title="more filters" min="1">
3
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
34 <param name="filter_type" type="select" label="Select the filter type">
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
35 <option value="-f">Info filter (-f)</option>
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
36 <option value="-g">Genotype filter (-g)</option>
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
37 </param>
7
7ce3b93e0883 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 393a497b224cd86285052e5ca2f41edc01125503
iuc
parents: 6
diff changeset
38 <param name="filter_value" type="text" value="DP &gt; 10" label="Specify filtering value" help="See explanation of filtering options below">
3
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
39 <sanitizer>
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
40 <valid initial="string.printable">
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
41 <remove value="&apos;"/>
4
763f297f3272 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 2ceb7f04846b90fd08d440b9f40493bb0434ce26
iuc
parents: 3
diff changeset
42 <remove value="&quot;"/>
3
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
43 </valid>
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
44 <mapping initial="none">
4
763f297f3272 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 2ceb7f04846b90fd08d440b9f40493bb0434ce26
iuc
parents: 3
diff changeset
45 <add source="&apos;" target=""/>
763f297f3272 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 2ceb7f04846b90fd08d440b9f40493bb0434ce26
iuc
parents: 3
diff changeset
46 <add source="&quot;" target=""/>
3
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
47 </mapping>
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
48 </sanitizer>
7
7ce3b93e0883 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 393a497b224cd86285052e5ca2f41edc01125503
iuc
parents: 6
diff changeset
49 <validator type="expression" message="Invalid operator provided, valid operators are =, !, &lt;, &gt;, |, &amp;.">value is not None and not any(x in value for x in ["&lt;=", "=&lt;", "&gt;=", "=&gt;"])</validator>
3
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
50 </param>
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
51 </repeat>
9
4cb86a8987de planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit f28d66c0bcad8ac29be2afec28bc639317239775
iuc
parents: 8
diff changeset
52 <param argument="--filter-sites" type="boolean" truevalue="--filter-sites" falsevalue="" label="Filter entire records, not just alleles"/>
4cb86a8987de planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit f28d66c0bcad8ac29be2afec28bc639317239775
iuc
parents: 8
diff changeset
53 <param argument="--tag-pass" type="boolean" truevalue="--tag-pass" falsevalue="" label="Tag vcf records as positively filtered with this tag, print all records"/>
4cb86a8987de planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit f28d66c0bcad8ac29be2afec28bc639317239775
iuc
parents: 8
diff changeset
54 <param argument="--tag-fail" type="boolean" truevalue="--tag-fail" falsevalue="" label="Tag vcf records as negatively filtered with this tag, print all records"/>
4cb86a8987de planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit f28d66c0bcad8ac29be2afec28bc639317239775
iuc
parents: 8
diff changeset
55 <param argument="--append-filter" type="boolean" truevalue="--append-filter" falsevalue="" label="Append the existing filter tag, don't just replace it"/>
4cb86a8987de planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit f28d66c0bcad8ac29be2afec28bc639317239775
iuc
parents: 8
diff changeset
56 <param argument="--allele-tag" type="boolean" truevalue="--allele-tag" falsevalue="" label="Apply --tag-pass on a per-allele basis, adds or sets the corresponding INFO field tag"/>
3
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
57 <param argument="--invert" type="boolean" truevalue="--invert" falsevalue="" label="Inverts the filter, e.g. grep -v"/>
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
58 <param argument="--or" type="boolean" truevalue="--or" falsevalue="" label="Use logical OR instead of AND to combine filters"/>
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
59 <param argument="--region" type="text" label="Specify a region on which to target the filtering" help="Regions should be specified as chr:start-end, e.g X:1000-2000"/>
1
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
60 </inputs>
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
61 <outputs>
3
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
62 <data name="out_file1" format="vcf" />
1
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
63 </outputs>
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
64 <tests>
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
65 <test>
3
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
66 <param name="filter_repeat_0|filter_type" value="-f"/>
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
67 <param name="filter_repeat_0|filter_value" value="DP &gt; 10"/>
1
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
68 <param name="input1" value="vcflib.vcf"/>
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
69 <output name="out_file1" file="vcffilter-test1.vcf"/>
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
70 </test>
7
7ce3b93e0883 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 393a497b224cd86285052e5ca2f41edc01125503
iuc
parents: 6
diff changeset
71 <test>
7ce3b93e0883 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 393a497b224cd86285052e5ca2f41edc01125503
iuc
parents: 6
diff changeset
72 <param name="filter_repeat_0|filter_type" value="-f"/>
7ce3b93e0883 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 393a497b224cd86285052e5ca2f41edc01125503
iuc
parents: 6
diff changeset
73 <param name="filter_repeat_0|filter_value" value="!( DP &gt; 10 )"/>
7ce3b93e0883 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 393a497b224cd86285052e5ca2f41edc01125503
iuc
parents: 6
diff changeset
74 <param name="invert" value="true"/>
7ce3b93e0883 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 393a497b224cd86285052e5ca2f41edc01125503
iuc
parents: 6
diff changeset
75 <param name="input1" value="vcflib.vcf"/>
7ce3b93e0883 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 393a497b224cd86285052e5ca2f41edc01125503
iuc
parents: 6
diff changeset
76 <output name="out_file1" file="vcffilter-test2.vcf"/>
7ce3b93e0883 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 393a497b224cd86285052e5ca2f41edc01125503
iuc
parents: 6
diff changeset
77 </test>
1
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
78 </tests>
3
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
79 <help><![CDATA[
1
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
80 You can specify the following options within the **Specify filtering expression** box in any combination::
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
81
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
82 -f, --info-filter specifies a filter to apply to the info fields of records, removes alleles which do not pass the filter
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
83 -g, --genotype-filter specifies a filter to apply to the genotype fields of records
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
84 -s, --filter-sites filter entire records, not just alleles
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
85 -t, --tag-pass tag vcf records as positively filtered with this tag, print all records
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
86 -F, --tag-fail tag vcf records as negatively filtered with this tag, print all records
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
87 -A, --append-filter append the existing filter tag, don't just replace it
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
88 -a, --allele-tag apply -t on a per-allele basis. adds or sets the corresponding INFO field tag
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
89 -v, --invert inverts the filter, e.g. grep -v
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
90 -o, --or use logical OR instead of AND to combine filters
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
91 -r, --region specify a region on which to target the filtering (must be used in conjunction with -f or -g)
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
92
4
763f297f3272 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 2ceb7f04846b90fd08d440b9f40493bb0434ce26
iuc
parents: 3
diff changeset
93 To specify filters, click on the 'Insert Add filters' button, choose a filter type
763f297f3272 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 2ceb7f04846b90fd08d440b9f40493bb0434ce26
iuc
parents: 3
diff changeset
94 (e.g., 'Info filter' or 'Genotype filter'), and specify filter value according to the
763f297f3272 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 2ceb7f04846b90fd08d440b9f40493bb0434ce26
iuc
parents: 3
diff changeset
95 following pattern::
1
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
96
6
447c0f9c0a9b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit de12f177c2b5ee215ce2c5d48c801406944e3a00
iuc
parents: 5
diff changeset
97 - For 'Info filter (-f)':: {ID} {operator} {value}
4
763f297f3272 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 2ceb7f04846b90fd08d440b9f40493bb0434ce26
iuc
parents: 3
diff changeset
98 For instance:: DP > 10
763f297f3272 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 2ceb7f04846b90fd08d440b9f40493bb0434ce26
iuc
parents: 3
diff changeset
99
6
447c0f9c0a9b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit de12f177c2b5ee215ce2c5d48c801406944e3a00
iuc
parents: 5
diff changeset
100 - For 'Genotype fields (-g)':: {ID} {operator} {value}
4
763f297f3272 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 2ceb7f04846b90fd08d440b9f40493bb0434ce26
iuc
parents: 3
diff changeset
101 For instance:: GT = 1|1
763f297f3272 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 2ceb7f04846b90fd08d440b9f40493bb0434ce26
iuc
parents: 3
diff changeset
102
6
447c0f9c0a9b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit de12f177c2b5ee215ce2c5d48c801406944e3a00
iuc
parents: 5
diff changeset
103 - For 'Flag' fields (when 'Info filter (-f)' is selected for filter type field):: {value}
4
763f297f3272 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 2ceb7f04846b90fd08d440b9f40493bb0434ce26
iuc
parents: 3
diff changeset
104 For instance:: CpG
1
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
105
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
106 Any number of filters may be specified. They are combined via logical AND unless the --or option is specified. For convenience, you can specify "QUAL" to refer to the quality of the site, even though it does not appear in the INFO fields.
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
107
3
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
108 Operators can be any of::
1
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
109
3
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
110 =, !, <, >, |, &
1
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
111
5
765a571fe910 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 270bb876857d700ecc7fb9d1757c63dcfeb401aa
iuc
parents: 4
diff changeset
112 Obtain logical negation through the use of parentheses, e.g. "! ( DP = 10 )"
765a571fe910 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 270bb876857d700ecc7fb9d1757c63dcfeb401aa
iuc
parents: 4
diff changeset
113 Please mind the blank space between parentheses and the arguments.
765a571fe910 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit 270bb876857d700ecc7fb9d1757c63dcfeb401aa
iuc
parents: 4
diff changeset
114
1
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
115 To restrict output to a specific location use the -r option (must be used in conjunction with -g or -f)::
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
116
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
117 -r chr20:14000-15000 # only output calls between positions 14,000 and 15,000 on chromosome 20
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
118 -r chrX # only output call on chromosome X
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
119
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
120 -----
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
121
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
122 Vcffilter @IS_PART_OF_VCFLIB@
3
f1f4cb7e7bb7 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/vcflib/vcffilter commit bd03161519b5a55c4395ae9715688799319427b2
iuc
parents: 2
diff changeset
123 ]]></help>
1
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
124 <expand macro="citations" />
eac1f91d50b1 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents: 0
diff changeset
125 </tool>