annotate vcftools_isec.xml @ 0:026d0f104183 draft

Uploaded
author devteam
date Sun, 24 Nov 2013 14:03:51 -0500
parents
children aa232e38338f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
026d0f104183 Uploaded
devteam
parents:
diff changeset
1 <tool id="vcftools_isec" name="Intersect" version="0.1">
026d0f104183 Uploaded
devteam
parents:
diff changeset
2 <description>multiple VCF datasets</description>
026d0f104183 Uploaded
devteam
parents:
diff changeset
3
026d0f104183 Uploaded
devteam
parents:
diff changeset
4 <requirements>
026d0f104183 Uploaded
devteam
parents:
diff changeset
5 <requirement type="package">tabix</requirement>
026d0f104183 Uploaded
devteam
parents:
diff changeset
6 <requirement type="package" version="0.1.11">vcftools</requirement>
026d0f104183 Uploaded
devteam
parents:
diff changeset
7 </requirements>
026d0f104183 Uploaded
devteam
parents:
diff changeset
8
026d0f104183 Uploaded
devteam
parents:
diff changeset
9 <command>
026d0f104183 Uploaded
devteam
parents:
diff changeset
10 ## Preprocessing for each dataset.
026d0f104183 Uploaded
devteam
parents:
diff changeset
11 #set dataset_names = []
026d0f104183 Uploaded
devteam
parents:
diff changeset
12 #for i, $input in enumerate( $inputs ):
026d0f104183 Uploaded
devteam
parents:
diff changeset
13 ## Sort file.
026d0f104183 Uploaded
devteam
parents:
diff changeset
14 vcf-sort ${input.file} > ${i}.vcf.sorted ;
026d0f104183 Uploaded
devteam
parents:
diff changeset
15
026d0f104183 Uploaded
devteam
parents:
diff changeset
16 ## Compress.
026d0f104183 Uploaded
devteam
parents:
diff changeset
17 bgzip ${i}.vcf.sorted ;
026d0f104183 Uploaded
devteam
parents:
diff changeset
18
026d0f104183 Uploaded
devteam
parents:
diff changeset
19 ## Index.
026d0f104183 Uploaded
devteam
parents:
diff changeset
20 tabix -p vcf ${i}.vcf.sorted.gz ;
026d0f104183 Uploaded
devteam
parents:
diff changeset
21
026d0f104183 Uploaded
devteam
parents:
diff changeset
22 #silent dataset_names.append( str($i) + '.vcf.sorted.gz' )
026d0f104183 Uploaded
devteam
parents:
diff changeset
23 #end for
026d0f104183 Uploaded
devteam
parents:
diff changeset
24
026d0f104183 Uploaded
devteam
parents:
diff changeset
25 ## Intersect.
026d0f104183 Uploaded
devteam
parents:
diff changeset
26 vcf-isec -f
026d0f104183 Uploaded
devteam
parents:
diff changeset
27 #if $complement:
026d0f104183 Uploaded
devteam
parents:
diff changeset
28 -c
026d0f104183 Uploaded
devteam
parents:
diff changeset
29 #end if
026d0f104183 Uploaded
devteam
parents:
diff changeset
30 #echo ' '.join( dataset_names ) # > ${output}
026d0f104183 Uploaded
devteam
parents:
diff changeset
31 </command>
026d0f104183 Uploaded
devteam
parents:
diff changeset
32 <inputs>
026d0f104183 Uploaded
devteam
parents:
diff changeset
33 <repeat name="inputs" title="Dataset" min="2">
026d0f104183 Uploaded
devteam
parents:
diff changeset
34 <param name="file" label="Dataset" type="data" format="vcf"/>
026d0f104183 Uploaded
devteam
parents:
diff changeset
35 </repeat>
026d0f104183 Uploaded
devteam
parents:
diff changeset
36 <param name="complement" type="boolean" label="Complement intersection" help="If checked, output positions present in the first file but missing from the other files"/>
026d0f104183 Uploaded
devteam
parents:
diff changeset
37 </inputs>
026d0f104183 Uploaded
devteam
parents:
diff changeset
38
026d0f104183 Uploaded
devteam
parents:
diff changeset
39 <outputs>
026d0f104183 Uploaded
devteam
parents:
diff changeset
40 <data name="output" format="vcf"/>
026d0f104183 Uploaded
devteam
parents:
diff changeset
41 </outputs>
026d0f104183 Uploaded
devteam
parents:
diff changeset
42
026d0f104183 Uploaded
devteam
parents:
diff changeset
43 <stdio>
026d0f104183 Uploaded
devteam
parents:
diff changeset
44 <regex match=".*" source="both" level="log" description="tool progress"/>
026d0f104183 Uploaded
devteam
parents:
diff changeset
45 </stdio>
026d0f104183 Uploaded
devteam
parents:
diff changeset
46
026d0f104183 Uploaded
devteam
parents:
diff changeset
47 <tests>
026d0f104183 Uploaded
devteam
parents:
diff changeset
48 <!-- Cannot specify multiple repeats in test framework right now.
026d0f104183 Uploaded
devteam
parents:
diff changeset
49 <test>
026d0f104183 Uploaded
devteam
parents:
diff changeset
50 <param name='inputs|1' value='1.vcf' />
026d0f104183 Uploaded
devteam
parents:
diff changeset
51 <param name='inputs|2' value='2.vcf' />
026d0f104183 Uploaded
devteam
parents:
diff changeset
52 <param name='complement' value='False' />
026d0f104183 Uploaded
devteam
parents:
diff changeset
53 <output name='output' file='out.vcf' />
026d0f104183 Uploaded
devteam
parents:
diff changeset
54 </test>
026d0f104183 Uploaded
devteam
parents:
diff changeset
55 -->
026d0f104183 Uploaded
devteam
parents:
diff changeset
56 </tests>
026d0f104183 Uploaded
devteam
parents:
diff changeset
57
026d0f104183 Uploaded
devteam
parents:
diff changeset
58 <help>
026d0f104183 Uploaded
devteam
parents:
diff changeset
59 Please see the VCFtools `documentation`__ for help and further information.
026d0f104183 Uploaded
devteam
parents:
diff changeset
60
026d0f104183 Uploaded
devteam
parents:
diff changeset
61 .. __: http://vcftools.sourceforge.net/docs.html
026d0f104183 Uploaded
devteam
parents:
diff changeset
62 </help>
026d0f104183 Uploaded
devteam
parents:
diff changeset
63 </tool>