Mercurial > repos > devteam > vcffilter
annotate vcffilter.xml @ 2:2d3c06c7e1f9 draft
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
author | devteam |
---|---|
date | Thu, 15 Sep 2016 16:05:48 -0400 |
parents | e729e584cd6f |
children | 952059348a30 |
rev | line source |
---|---|
2
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
1 <tool id="vcffilter2" name="VCFfilter:" version="@WRAPPER_VERSION@.0"> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
2 <description>filter VCF data in a variety of attributes</description> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
3 <macros> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
4 <import>macros.xml</import> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
5 </macros> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
6 <expand macro="requirements"> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
7 <requirement type="package" version="1.3">htslib</requirement> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
8 <requirement type="package" version="0.2.6">tabix</requirement> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
9 </expand> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
10 <expand macro="stdio" /> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
11 <command> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
12 <!-- This tools depends on tabix functionality, which is currently distributed with Galaxy itself via a pysam egg --> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
13 ln -s "${input1}" input1.vcf && |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
14 bgzip input1.vcf && |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
15 tabix -p vcf input1.vcf.gz && |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
16 vcffilter ${filterList} input1.vcf.gz > "${out_file1}" |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
17 </command> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
18 |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
19 <inputs> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
20 <param name="filterList" type="text" value="-f "DP > 10"" label="Specify filterting expression" help="See explanation of filtering options below"> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
21 <sanitizer> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
22 <valid initial="string.printable"> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
23 <remove value="'"/> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
24 </valid> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
25 <mapping initial="none"> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
26 <add source="'" target="__sq__"/> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
27 </mapping> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
28 </sanitizer> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
29 </param> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
30 <param format="vcf" name="input1" type="data" label="VCF dataset to filter"/> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
31 </inputs> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
32 <outputs> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
33 <data format="vcf" name="out_file1" /> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
34 </outputs> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
35 <tests> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
36 <test> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
37 <param name="filterList" value="-f "DP > 10""/> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
38 <param name="input1" value="vcflib.vcf"/> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
39 <output name="out_file1" file="vcffilter-test1.vcf"/> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
40 </test> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
41 </tests> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
42 <help> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
43 You can specify the following options within the **Specify filtering expression** box in any combination:: |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
44 |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
45 -f, --info-filter specifies a filter to apply to the info fields of records, removes alleles which do not pass the filter |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
46 -g, --genotype-filter specifies a filter to apply to the genotype fields of records |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
47 -s, --filter-sites filter entire records, not just alleles |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
48 -t, --tag-pass tag vcf records as positively filtered with this tag, print all records |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
49 -F, --tag-fail tag vcf records as negatively filtered with this tag, print all records |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
50 -A, --append-filter append the existing filter tag, don't just replace it |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
51 -a, --allele-tag apply -t on a per-allele basis. adds or sets the corresponding INFO field tag |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
52 -v, --invert inverts the filter, e.g. grep -v |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
53 -o, --or use logical OR instead of AND to combine filters |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
54 -r, --region specify a region on which to target the filtering (must be used in conjunction with -f or -g) |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
55 |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
56 Filters are specified in the form {ID} {operator} {value}:: |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
57 |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
58 -f "DP > 10" # for info fields |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
59 -g "GT = 1|1" # for genotype fields |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
60 -f "CpG" # for 'flag' fields |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
61 |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
62 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. |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
63 |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
64 Operators can be any of: =, !, <, >, pipe, & |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
65 |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
66 |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
67 To restrict output to a specific location use the -r option (must be used in conjunction with -g or -f):: |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
68 |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
69 -r chr20:14000-15000 # only output calls between positions 14,000 and 15,000 on chromosome 20 |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
70 -r chrX # only output call on chromosome X |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
71 |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
72 ----- |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
73 |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
74 Vcffilter @IS_PART_OF_VCFLIB@ |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
75 </help> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
76 <expand macro="citations" /> |
2d3c06c7e1f9
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/vcflib/vcffilter commit 0b9b6512272b82637c2f1e831367e89aed77ae79
devteam
parents:
1
diff
changeset
|
77 </tool> |