0
|
1 <tool id="vcftools_merge" name="Merge" version="0.1">
|
|
2 <description>multiple VCF datasets</description>
|
|
3
|
|
4 <requirements>
|
1
|
5 <requirement type="package">tabix</requirement>
|
|
6 <requirement type="package" version="0.1.11">vcftools</requirement>
|
0
|
7 </requirements>
|
|
8
|
|
9 <command>
|
|
10 ## Preprocessing for each dataset.
|
|
11 #set dataset_names = []
|
|
12 #for i, $input in enumerate( $inputs ):
|
|
13 ## Sort file.
|
|
14 vcf-sort ${input.file} > ${i}.vcf.sorted ;
|
|
15
|
|
16 ## Compress.
|
|
17 bgzip ${i}.vcf.sorted ;
|
|
18
|
|
19 ## Index.
|
|
20 tabix -p vcf ${i}.vcf.sorted.gz ;
|
|
21
|
|
22 #silent dataset_names.append( str($i) + '.vcf.sorted.gz' )
|
|
23 #end for
|
|
24
|
|
25 ## Merge.
|
|
26 vcf-merge
|
|
27 #echo ' '.join( dataset_names ) # > ${output}
|
|
28
|
|
29 </command>
|
|
30 <inputs>
|
|
31 <repeat name="inputs" title="Datasets to Merge" min="2">
|
|
32 <param name="file" label="Dataset" type="data" format="vcf"/>
|
|
33 </repeat>
|
|
34 </inputs>
|
|
35
|
|
36 <outputs>
|
|
37 <data name="output" format="vcf"/>
|
|
38 </outputs>
|
|
39
|
|
40 <stdio>
|
|
41 <regex match=".*" source="both" level="log" description="tool progress"/>
|
|
42 </stdio>
|
|
43
|
|
44 <tests>
|
|
45 <!-- Cannot specify multiple repeats in test framework right now, so no tests possible. -->
|
|
46 </tests>
|
|
47
|
|
48 <help>
|
|
49 Please see the VCFtools `documentation`__ for help and further information.
|
|
50
|
|
51 .. __: http://vcftools.sourceforge.net/docs.html
|
|
52 </help>
|
|
53 </tool>
|