annotate vcftools_merge.xml @ 1:eb02907453b4 draft

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