annotate tools/vcf_tools/annotate.xml @ 0:9071e359b9a3

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:37:19 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="vcf_annotate" name="Annotate" version="1.0.0">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>a VCF file (dbSNP, hapmap)</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="python">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 vcfPytools.py
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 annotate
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 --in=$input1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 #if $annotation_options.annotate == "dbsnp"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 --dbsnp=$input2
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 #elif $annotation_options.annotate == "hapmap"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 --hapmap=$input2
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 --out=$output1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 <param name="input1" label="VCF file to annotate" type="data" format="vcf" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 <conditional name="annotation_options">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 <param name="annotate" type="select" label="annotation source">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 <option value="dbsnp">dbSNP vcf file</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 <option value="hapmap">hapmap vcf file</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 <when value="dbsnp">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 <param name="input2" label="dbSNP vcf file" type="data" format="vcf" help="This option will annotate the vcf file with dbSNP rsid values. The input dbSNP file must also be in vcf v4.0 format. Only dbSNP entries with VC=SNP are included."/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 <when value="hapmap">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 <param name="input2" label="hapmap vcf file" type="data" format="vcf" help="This option will annotate the vcf file info string to include HM3 if the record is included hapmap. If the ref/alt values do not match the hapmap file, the info string will be populated with HM3A."/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 <data format="vcf" name="output1" label="${tool.name} ${on_string}" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 <param name="input1" value="test.small.vcf" ftype="vcf" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 <param name="annotate" value="dbsnp" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 <param name="input2" value="dbsnp.small.vcf" ftype="vcf" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 <output name="output" file="test_annotated_dbsnp.vcf" lines_diff="6" ftype="vcf" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 <param name="input1" value="test.small.vcf" ftype="vcf" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 <param name="annotate" value="hapmap" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 <param name="input2" value="hapmap.small.vcf" ftype="vcf" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 <output name="output" file="test_annotated_hapmap.vcf" lines_diff="6" ftype="vcf" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 **What it does**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 This tool uses vcfPytools_' annotate command annotate a VCF file
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 .. _vcfPytools: https://github.com/AlistairNWard/vcfPytools
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 Currently, either a hapmap or a dbsnp file should be provided, not both.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 dbSNP option will annotate the VCF file with dbSNP rsid values. The input dbSNP file must also be in VCF v4.0 format. Only dbSNP entries with VC=SNP are included.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58 hapmap option will annotate the VCF file info string to include HM3 if the record is included hapmap. If the ref/alt values do not match the hapmap file, the info string will be populated with HM3A.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62 </tool>