annotate vcfbedintersect.xml @ 0:7e8a201b4c1c

Imported from capsule None
author anton
date Wed, 11 Jun 2014 17:11:32 -0400
parents
children a83d472202c8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
1 <tool id="vcfbedintersect" name="VCF-BEDintersect:" version="0.0.1">
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
2 <requirements>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
3 <requirement type="package" version="586c5ae5d57a38dae6b32ea831fb1f7cfa14c9bd">vcflib</requirement>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
4 <!-- <requirement type="package" version="0.1.18">samtools</requirement> -->
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
5 </requirements>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
6 <description>Intersect VCF and BED datasets</description>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
7 <command>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
8 #if str($bed_vs_interval.bed_vs_interval_selector) == "bed":
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
9 vcfintersect -b "${bed_vs_interval.bed_input}" ${invert} "${vcf_input}" > "${out_file1}"
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
10 #else:
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
11 vcfintersect -R "${bed_vs_interval.int_input}" ${invert} "${vcf_input}" > "${out_file1}"
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
12 #end if
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
13
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
14 </command>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
15 <inputs>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
16 <!-- selecting refernce source -->
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
17 <param name="vcf_input" type="data" format="vcf" label="Select VCF dataset" />
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
18 <conditional name="bed_vs_interval">
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
19 <param name="bed_vs_interval_selector" type="select" label="Intersect with BED dataset or an interval">
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
20 <option value="bed">BED</option>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
21 <option value="interval">Interval</option>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
22 </param>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
23 <when value="bed">
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
24 <param name="bed_input" type="data" format="bed" label="Select BED dataset" />
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
25 </when>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
26 <when value="interval">
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
27 <param name="int_input" type="text" size="20" value="chr20:1-30" label="Enter interval string" help="use chr:start-end format" />
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
28 </when>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
29 </conditional>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
30 <param name="invert" type="boolean" truevalue="-v" falsevalue="" label="Invert selection?" help="-v, --invert. Print entries that DO NOT intersect." />
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
31 </inputs>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
32 <outputs>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
33 <data format="vcf" name="out_file1" />
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
34 </outputs>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
35 <tests>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
36 <test>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
37 <param name="bed_vs_interval_selector" value="bed" />
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
38 <param name="bed_input" value="vcfannotate.bed" />
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
39 <param name="invert" value="False" />
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
40 <param name="vcf_input" value="vcflib.vcf"/>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
41 <output name="out_file1" file="vcfbedintersect-test1.vcf"/>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
42 </test>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
43 <test>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
44 <param name="bed_vs_interval_selector" value="interval" />
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
45 <param name="int_input" value="20:1-30000" />
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
46 <param name="invert" value="False" />
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
47 <param name="vcf_input" value="vcflib.vcf"/>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
48 <output name="out_file1" file="vcfbedintersect-test2.vcf"/>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
49 </test>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
50 </tests>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
51
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
52 <help>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
53
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
54 Computes intersection between a VCF dataset and a set of genomic intervals defined as either a BED dataset (http://genome.ucsc.edu/FAQ/FAQformat.html#format1) or a manually typed interval (in the form of chr:start-end).
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
55
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
56 ----
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
57
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
58 VCFBEDintersect is based on vcfintersect utility of VCFlib toolkit developed by Erik Garrison (https://github.com/ekg/vcflib).
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
59
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
60 </help>
7e8a201b4c1c Imported from capsule None
anton
parents:
diff changeset
61 </tool>