comparison vcffilter.xml @ 0:c56b2e440fce draft

Uploaded
author anton
date Mon, 14 Apr 2014 10:06:14 -0400
parents
children e5dd21db760b
comparison
equal deleted inserted replaced
-1:000000000000 0:c56b2e440fce
1 <tool id="vcffilter" name="VCFfilter:" version="0.0.1">
2 <requirements>
3 <requirement type="package" version="586c5ae5d57a38dae6b32ea831fb1f7cfa14c9bd">vcflib</requirement>
4 </requirements>
5 <description>filter VCF data in a variety of attributes</description>
6 <command>vcffilter ${filterList} "${input}" > "${out_file1}"</command>
7 <inputs>
8 <param name="filterList" size="40" type="text" value="-f &quot;DP &gt; 10&quot;" label="Specify filterting expression" help="See explanation of filtering options below">
9 <sanitizer>
10 <valid initial="string.printable">
11 <remove value="&apos;"/>
12 </valid>
13 <mapping initial="none">
14 <add source="&apos;" target="__sq__"/>
15 </mapping>
16 </sanitizer>
17 </param>
18 <param format="vcf" name="input" type="data" label="From"/>
19 </inputs>
20 <outputs>
21 <data format="vcf" name="out_file1" />
22 </outputs>
23 <tests>
24 <test>
25 <param name="filterList" value="-f &quot;DP &gt; 10&quot;"/>
26 <param name="input" value="vcflib.vcf"/>
27 <output name="out_file1" file="vcffilter-test1.vcf"/>
28 </test>
29 </tests>
30 <help>
31
32 VCFfilter is a part of VCFlib toolkit developed by Erik Garrison (https://github.com/ekg/vcflib).
33
34 You can specify the following option the **Specify filtering expression** box in any combination::
35
36 -f, --info-filter specifies a filter to apply to the info fields of records, removes alleles which do not pass the filter
37 -g, --genotype-filter specifies a filter to apply to the genotype fields of records
38 -s, --filter-sites filter entire records, not just alleles
39 -t, --tag-pass tag vcf records as positively filtered with this tag, print all records
40 -F, --tag-fail tag vcf records as negatively filtered with this tag, print all records
41 -A, --append-filter append the existing filter tag, don't just replace it
42 -a, --allele-tag apply -t on a per-allele basis. adds or sets the corresponding INFO field tag
43 -v, --invert inverts the filter, e.g. grep -v
44 -o, --or use logical OR instead of AND to combine filters
45
46 Filters are specified in the form {ID} {operator} {value}::
47
48 -f "DP > 10" # for info fields
49 -g "GT = 1|1" # for genotype fields
50 -f "CpG" # for 'flag' fields
51
52 Operators can be any of: =, !, &lt;, &gt;, pipe, &amp;
53
54 Any number of filters may be specified. They are combined via logical AND
55 unless --or is specified on the command line.
56
57 For convenience, you can specify "QUAL" to refer to the quality of the site, even
58 though it does not appear in the INFO fields.
59
60 </help>
61 </tool>