annotate annotate.xml @ 0:b001b50f2009 draft default tip

Imported from capsule None
author devteam
date Mon, 27 Jan 2014 09:28:06 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
1 <tool id="vcf_annotate" name="Annotate" version="1.0.0">
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
2 <description>a VCF file (dbSNP, hapmap)</description>
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
3 <command interpreter="python">
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
4 vcfPytools.py
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
5 annotate
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
6 --in=$input1
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
7 #if $annotation_options.annotate == "dbsnp"
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
8 --dbsnp=$input2
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
9 #elif $annotation_options.annotate == "hapmap"
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
10 --hapmap=$input2
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
11 #end if
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
12 --out=$output1
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
13 </command>
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
14 <inputs>
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
15 <param name="input1" label="VCF file to annotate" type="data" format="vcf" />
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
16 <conditional name="annotation_options">
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
17 <param name="annotate" type="select" label="annotation source">
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
18 <option value="dbsnp">dbSNP vcf file</option>
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
19 <option value="hapmap">hapmap vcf file</option>
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
20 </param>
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
21 <when value="dbsnp">
b001b50f2009 Imported from capsule None
devteam
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."/>
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
23 </when>
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
24 <when value="hapmap">
b001b50f2009 Imported from capsule None
devteam
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."/>
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
26 </when>
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
27 </conditional>
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
28 </inputs>
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
29 <outputs>
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
30 <data format="vcf" name="output1" label="${tool.name} ${on_string}" />
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
31 </outputs>
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
32 <tests>
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
33 <test>
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
34 <param name="input1" value="test.small.vcf" ftype="vcf" />
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
35 <param name="annotate" value="dbsnp" />
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
36 <param name="input2" value="dbsnp.small.vcf" ftype="vcf" />
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
37 <output name="output" file="test_annotated_dbsnp.vcf" lines_diff="6" ftype="vcf" />
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
38 </test>
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
39 <test>
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
40 <param name="input1" value="test.small.vcf" ftype="vcf" />
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
41 <param name="annotate" value="hapmap" />
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
42 <param name="input2" value="hapmap.small.vcf" ftype="vcf" />
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
43 <output name="output" file="test_annotated_hapmap.vcf" lines_diff="6" ftype="vcf" />
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
44 </test>
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
45 </tests>
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
46 <help>
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
47
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
48 **What it does**
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
49
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
50 This tool uses vcfPytools_' annotate command annotate a VCF file
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
51
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
52 .. _vcfPytools: https://github.com/AlistairNWard/vcfPytools
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
53
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
54 Currently, either a hapmap or a dbsnp file should be provided, not both.
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
55
b001b50f2009 Imported from capsule None
devteam
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.
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
57
b001b50f2009 Imported from capsule None
devteam
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.
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
59
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
60
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
61 </help>
b001b50f2009 Imported from capsule None
devteam
parents:
diff changeset
62 </tool>