annotate vcftools_slice.xml @ 1:e88ac3aabdc4 draft default tip

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