Mercurial > repos > devteam > vcftools_compare
comparison vcftools_compare.xml @ 0:937918765b6e draft default tip
Uploaded
author | devteam |
---|---|
date | Sun, 24 Nov 2013 11:01:23 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:937918765b6e |
---|---|
1 <tool id="vcftools_compare" name="Compare" version="0.1"> | |
2 <description>multiple VCF datasets</description> | |
3 | |
4 <requirements> | |
5 <requirement type="package">tabix</requirement> | |
6 <requirement type="package" version="0.1.11">vcftools</requirement> | |
7 </requirements> | |
8 | |
9 <command> | |
10 ## Preprocessing for each dataset. | |
11 #set dataset_names = [] | |
12 #for $input in $inputs: | |
13 ## Sort file. | |
14 sort -k1,1 -k2,2n ${input.file} > ${input.name}.vcf.sorted ; | |
15 | |
16 ## Compress. | |
17 bgzip ${input.name}.vcf.sorted ; | |
18 | |
19 ## Index. | |
20 tabix -p vcf ${input.name}.vcf.sorted.gz ; | |
21 | |
22 #silent dataset_names.append( str($input.name) + '.vcf.sorted.gz' ) | |
23 #end for | |
24 | |
25 ## Compare and use sed to simplify output. | |
26 vcf-compare -w ${window} ${ignore_indels} #echo ' '.join( dataset_names )# | sed 's/\.vcf\.sorted\.gz//g' > ${output} | |
27 </command> | |
28 <inputs> | |
29 <repeat name="inputs" title="Datasets to Compare" min="2"> | |
30 <param name="name" label="Dataset name" type="text" /> | |
31 <param name="file" label="Dataset" type="data" format="vcf"/> | |
32 </repeat> | |
33 <param name="window" label="Comparison window" type="integer" min="0" value="0" help="In repetitive sequences, the same indel can be called at different positions. Consider records this far apart as matching (be it a SNP or an indel)."/> | |
34 | |
35 <param name="ignore_indels" label="Ignore indels" type="select" help="Exclude sites containing indels from genotype comparison"> | |
36 <option value="" selected="True">No</option> | |
37 <option value="--ignore-indels">Yes</option> | |
38 </param> | |
39 </inputs> | |
40 | |
41 <outputs> | |
42 <data name="output" format="tabular"/> | |
43 </outputs> | |
44 | |
45 <stdio> | |
46 <regex match=".*" source="both" level="log" description="tool progress"/> | |
47 </stdio> | |
48 | |
49 <tests> | |
50 <!-- Cannot specify multiple repeats in test framework right now, so no tests possible. --> | |
51 </tests> | |
52 | |
53 <help> | |
54 Please see the VCFtools `documentation`__ for help and further information. | |
55 | |
56 .. __: http://vcftools.sourceforge.net/docs.html | |
57 </help> | |
58 </tool> |