annotate vcftools_slice.xml @ 0:fb25b685d590 draft

Initial wrapper upload.
author devteam
date Sat, 23 Nov 2013 16:12:29 -0500
parents
children e88ac3aabdc4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
1 <tool id="vcftools_slice" name="Slice VCF" version="0.1">
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
2 <description>to get data from selected regions</description>
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
3
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
4 <requirements>
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
5 <requirement type="package">vcftools</requirement>
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
6 </requirements>
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
7
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
8 <command>
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
9 ## Only works if input is sorted.
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
10 vcf-sort ${input} > sorted.vcf
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
11
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
12 ## As of v0.1.10, the first line of a BED file is assumed to be a header and ignored,
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
13 ## so add a dummy header line if necessary.
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
14 #set first_line = open( str($regions) ).readline()
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
15 #if first_line.startswith( '#' ):
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
16 ## Header already exists, so just link.
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
17 ; ln -s $regions regions.bed
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
18 #else:
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
19 ## Add dummy header.
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
20 ; echo '#dummy header' | cat - $regions > regions.bed
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
21 #end if
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
22
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
23 ## Slice VCF.
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
24 ; vcftools --vcf sorted.vcf --out output --bed regions.bed --recode
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
25 </command>
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
26
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
27 <inputs>
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
28 <param name="input" label="Input dataset" type="data" format="vcf"/>
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
29 <param name="regions" label="Regions" type="data" format="bed"/>
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
30 </inputs>
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
31
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
32 <outputs>
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
33 <data name="output" format="vcf" from_work_dir="output.recode.vcf"/>
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
34 </outputs>
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
35
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
36 <tests>
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
37 <test>
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
38 <param name="input" value="slice_in.vcf"/>
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
39 <param name="regions" value="regions.bed"/>
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
40 <output name="output" file="slice_out.vcf"/>
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
41 </test>
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
42 </tests>
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
43
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
44 <help>
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
45 Please see the VCFtools `documentation`__ for help and further information.
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
46
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
47 .. __: http://vcftools.sourceforge.net/docs.html
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
48 </help>
fb25b685d590 Initial wrapper upload.
devteam
parents:
diff changeset
49 </tool>