annotate vcftools_merge.xml @ 0:2df3463828ff draft

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