annotate annotate.xml @ 0:3eca7b2537aa draft default tip

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