annotate vcffilter.xml @ 2:77e44d465705 draft

Uploaded
author anton
date Mon, 12 May 2014 16:32:03 -0400
parents e5dd21db760b
children 6c2640e8ecbb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
c56b2e440fce Uploaded
anton
parents:
diff changeset
1 <tool id="vcffilter" name="VCFfilter:" version="0.0.1">
c56b2e440fce Uploaded
anton
parents:
diff changeset
2 <requirements>
c56b2e440fce Uploaded
anton
parents:
diff changeset
3 <requirement type="package" version="586c5ae5d57a38dae6b32ea831fb1f7cfa14c9bd">vcflib</requirement>
c56b2e440fce Uploaded
anton
parents:
diff changeset
4 </requirements>
c56b2e440fce Uploaded
anton
parents:
diff changeset
5 <description>filter VCF data in a variety of attributes</description>
1
e5dd21db760b Uploaded
anton
parents: 0
diff changeset
6 <command>
e5dd21db760b Uploaded
anton
parents: 0
diff changeset
7 <!-- This tools depends on tabix functionality, which is currently distributed with Galaxy itself via a pysam egg -->
e5dd21db760b Uploaded
anton
parents: 0
diff changeset
8 ln -s "${input1}" input1.vcf.gz &amp;&amp;
e5dd21db760b Uploaded
anton
parents: 0
diff changeset
9 ln -s "${Tabixized_input}" input1.vcf.gz.tbi &amp;&amp;
e5dd21db760b Uploaded
anton
parents: 0
diff changeset
10 vcffilter ${filterList} input1.vcf.gz > "${out_file1}"
e5dd21db760b Uploaded
anton
parents: 0
diff changeset
11 </command>
e5dd21db760b Uploaded
anton
parents: 0
diff changeset
12
0
c56b2e440fce Uploaded
anton
parents:
diff changeset
13 <inputs>
c56b2e440fce Uploaded
anton
parents:
diff changeset
14 <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">
c56b2e440fce Uploaded
anton
parents:
diff changeset
15 <sanitizer>
c56b2e440fce Uploaded
anton
parents:
diff changeset
16 <valid initial="string.printable">
1
e5dd21db760b Uploaded
anton
parents: 0
diff changeset
17 <remove value="&apos;"/>
0
c56b2e440fce Uploaded
anton
parents:
diff changeset
18 </valid>
c56b2e440fce Uploaded
anton
parents:
diff changeset
19 <mapping initial="none">
c56b2e440fce Uploaded
anton
parents:
diff changeset
20 <add source="&apos;" target="__sq__"/>
c56b2e440fce Uploaded
anton
parents:
diff changeset
21 </mapping>
1
e5dd21db760b Uploaded
anton
parents: 0
diff changeset
22 </sanitizer>
0
c56b2e440fce Uploaded
anton
parents:
diff changeset
23 </param>
1
e5dd21db760b Uploaded
anton
parents: 0
diff changeset
24 <param format="vcf_bgzip" name="input1" type="data" label="From">
e5dd21db760b Uploaded
anton
parents: 0
diff changeset
25 <conversion name="Tabixized_input" type="tabix" />
e5dd21db760b Uploaded
anton
parents: 0
diff changeset
26 </param>
0
c56b2e440fce Uploaded
anton
parents:
diff changeset
27 </inputs>
c56b2e440fce Uploaded
anton
parents:
diff changeset
28 <outputs>
c56b2e440fce Uploaded
anton
parents:
diff changeset
29 <data format="vcf" name="out_file1" />
c56b2e440fce Uploaded
anton
parents:
diff changeset
30 </outputs>
1
e5dd21db760b Uploaded
anton
parents: 0
diff changeset
31 <tests>
0
c56b2e440fce Uploaded
anton
parents:
diff changeset
32 <test>
c56b2e440fce Uploaded
anton
parents:
diff changeset
33 <param name="filterList" value="-f &quot;DP &gt; 10&quot;"/>
1
e5dd21db760b Uploaded
anton
parents: 0
diff changeset
34 <param name="input1" value="vcflib.vcf"/>
0
c56b2e440fce Uploaded
anton
parents:
diff changeset
35 <output name="out_file1" file="vcffilter-test1.vcf"/>
c56b2e440fce Uploaded
anton
parents:
diff changeset
36 </test>
1
e5dd21db760b Uploaded
anton
parents: 0
diff changeset
37 </tests>
e5dd21db760b Uploaded
anton
parents: 0
diff changeset
38 <help>
0
c56b2e440fce Uploaded
anton
parents:
diff changeset
39
c56b2e440fce Uploaded
anton
parents:
diff changeset
40 VCFfilter is a part of VCFlib toolkit developed by Erik Garrison (https://github.com/ekg/vcflib).
c56b2e440fce Uploaded
anton
parents:
diff changeset
41
c56b2e440fce Uploaded
anton
parents:
diff changeset
42 You can specify the following option the **Specify filtering expression** box in any combination::
c56b2e440fce Uploaded
anton
parents:
diff changeset
43
c56b2e440fce Uploaded
anton
parents:
diff changeset
44 -f, --info-filter specifies a filter to apply to the info fields of records, removes alleles which do not pass the filter
c56b2e440fce Uploaded
anton
parents:
diff changeset
45 -g, --genotype-filter specifies a filter to apply to the genotype fields of records
c56b2e440fce Uploaded
anton
parents:
diff changeset
46 -s, --filter-sites filter entire records, not just alleles
c56b2e440fce Uploaded
anton
parents:
diff changeset
47 -t, --tag-pass tag vcf records as positively filtered with this tag, print all records
c56b2e440fce Uploaded
anton
parents:
diff changeset
48 -F, --tag-fail tag vcf records as negatively filtered with this tag, print all records
c56b2e440fce Uploaded
anton
parents:
diff changeset
49 -A, --append-filter append the existing filter tag, don't just replace it
c56b2e440fce Uploaded
anton
parents:
diff changeset
50 -a, --allele-tag apply -t on a per-allele basis. adds or sets the corresponding INFO field tag
c56b2e440fce Uploaded
anton
parents:
diff changeset
51 -v, --invert inverts the filter, e.g. grep -v
c56b2e440fce Uploaded
anton
parents:
diff changeset
52 -o, --or use logical OR instead of AND to combine filters
2
77e44d465705 Uploaded
anton
parents: 1
diff changeset
53 -r, --region specify a region on which to target the filtering (must be used in conjunction with -f or -g
0
c56b2e440fce Uploaded
anton
parents:
diff changeset
54
c56b2e440fce Uploaded
anton
parents:
diff changeset
55 Filters are specified in the form {ID} {operator} {value}::
c56b2e440fce Uploaded
anton
parents:
diff changeset
56
2
77e44d465705 Uploaded
anton
parents: 1
diff changeset
57 -f "DP > 10" # for info fields
77e44d465705 Uploaded
anton
parents: 1
diff changeset
58 -g "GT = 1|1" # for genotype fields
77e44d465705 Uploaded
anton
parents: 1
diff changeset
59 -f "CpG" # for 'flag' fields
77e44d465705 Uploaded
anton
parents: 1
diff changeset
60
77e44d465705 Uploaded
anton
parents: 1
diff changeset
61 Any number of filters may be specified. They are combined via logical AND unless --or is specified on the command line. For convenience, you can specify "QUAL" to refer to the quality of the site, even though it does not appear in the INFO fields.
0
c56b2e440fce Uploaded
anton
parents:
diff changeset
62
c56b2e440fce Uploaded
anton
parents:
diff changeset
63 Operators can be any of: =, !, &lt;, &gt;, pipe, &amp;
c56b2e440fce Uploaded
anton
parents:
diff changeset
64
2
77e44d465705 Uploaded
anton
parents: 1
diff changeset
65
77e44d465705 Uploaded
anton
parents: 1
diff changeset
66 To restrict output to a specific location use -r option (much be used in conjunction with -g or -f)::
0
c56b2e440fce Uploaded
anton
parents:
diff changeset
67
2
77e44d465705 Uploaded
anton
parents: 1
diff changeset
68 -r chr20:14000-15000 # only output calls between positions 14,000 and 15,000 on chromosome 20
77e44d465705 Uploaded
anton
parents: 1
diff changeset
69 -r chrX # only output call on chromosome X
77e44d465705 Uploaded
anton
parents: 1
diff changeset
70
77e44d465705 Uploaded
anton
parents: 1
diff changeset
71 -----
77e44d465705 Uploaded
anton
parents: 1
diff changeset
72
77e44d465705 Uploaded
anton
parents: 1
diff changeset
73 Vcffilter is a part of VCFlib toolkit developed by Erik Garrison (https://github.com/ekg/vcflib).
0
c56b2e440fce Uploaded
anton
parents:
diff changeset
74
c56b2e440fce Uploaded
anton
parents:
diff changeset
75 </help>
c56b2e440fce Uploaded
anton
parents:
diff changeset
76 </tool>