annotate snpSift_annotate.xml @ 3:20c7d583fec1 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
author iuc
date Mon, 12 Jun 2017 10:25:32 -0400
parents bf8c1526871b
children b04635ebfab0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
20c7d583fec1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents: 2
diff changeset
1 <tool id="snpSift_annotate" name="SnpSift Annotate" version="@WRAPPER_VERSION@.0">
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
2 <description>SNPs from dbSnp</description>
2
bf8c1526871b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents: 1
diff changeset
3 <!--
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
4 You can change the amount of memory used, just change the -Xmx parameter (e.g. use -Xmx2G for 2Gb of memory)
9e8280e19338 Uploaded
iuc
parents:
diff changeset
5 -->
9e8280e19338 Uploaded
iuc
parents:
diff changeset
6 <macros>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
7 <import>snpSift_macros.xml</import>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
8 </macros>
1
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
9 <expand macro="requirements" />
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
10 <expand macro="stdio" />
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
11 <expand macro="version_command" />
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
12 <command><![CDATA[
3
20c7d583fec1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents: 2
diff changeset
13 SnpSift annotate
20c7d583fec1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents: 2
diff changeset
14 #if $annotate.id == 'id':
20c7d583fec1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents: 2
diff changeset
15 -id
20c7d583fec1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents: 2
diff changeset
16 #elif str($annotate.info_ids).strip() != '':
20c7d583fec1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents: 2
diff changeset
17 -info "$annotate.info_ids"
20c7d583fec1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents: 2
diff changeset
18 #end if
20c7d583fec1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents: 2
diff changeset
19 -q '$dbSnp' '$input' > '$output'
20c7d583fec1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents: 2
diff changeset
20 ]]></command>
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
21 <inputs>
3
20c7d583fec1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents: 2
diff changeset
22 <param name="input" type="data" format="vcf" label="Variant input file in VCF format"/>
20c7d583fec1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents: 2
diff changeset
23 <param name="dbSnp" type="data" format="vcf" label="VCF File with ID field annotated (e.g. dnSNP.vcf)"
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
24 help="The ID field for a variant in input will be assigned from a matching variant in this file."/>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
25 <conditional name="annotate">
3
20c7d583fec1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents: 2
diff changeset
26 <param name="id" type="select" label="Fields to annotate">
20c7d583fec1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents: 2
diff changeset
27 <option value="id">Only annotate ID field (no INFO fields will be added)</option>
20c7d583fec1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents: 2
diff changeset
28 <option value="info">Add also INFO fields</option>
20c7d583fec1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents: 2
diff changeset
29 </param>
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
30 <when value="id"/>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
31 <when value="info">
2
bf8c1526871b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents: 1
diff changeset
32 <param name="info_ids" type="text" value="" label="Limit INFO annotation to these INFO IDs" help="List is a comma separated list of fields. When blank, all INFO fields are included">
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
33 <validator type="regex" message="IDs separted by commas">^(([a-zA-Z][a-zA-Z0-9_-]*)(,[a-zA-Z][a-zA-Z0-9_-]*)*)?$</validator>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
34 </param>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
35 </when>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
36 </conditional>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
37 </inputs>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
38 <outputs>
3
20c7d583fec1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents: 2
diff changeset
39 <data name="output" format="vcf" />
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
40 </outputs>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
41 <tests>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
42 <test>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
43 <param name="input" ftype="vcf" value="annotate_1.vcf"/>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
44 <param name="dbSnp" ftype="vcf" value="db_test_1.vcf"/>
3
20c7d583fec1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents: 2
diff changeset
45 <param name="id" value="id"/>
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
46 <output name="output">
9e8280e19338 Uploaded
iuc
parents:
diff changeset
47 <assert_contents>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
48 <has_text text="rs76166080" />
9e8280e19338 Uploaded
iuc
parents:
diff changeset
49 </assert_contents>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
50 </output>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
51 </test>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
52 </tests>
1
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
53 <help><![CDATA[
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
54 This is typically used to annotate IDs from dbSnp.
9e8280e19338 Uploaded
iuc
parents:
diff changeset
55
9e8280e19338 Uploaded
iuc
parents:
diff changeset
56 Annotatating only the ID field from dbSnp137.vcf ::
9e8280e19338 Uploaded
iuc
parents:
diff changeset
57
9e8280e19338 Uploaded
iuc
parents:
diff changeset
58 Input VCF:
9e8280e19338 Uploaded
iuc
parents:
diff changeset
59 CHROM POS ID REF ALT QUAL FILTER INFO
9e8280e19338 Uploaded
iuc
parents:
diff changeset
60 22 16157571 . T G 0.0 FAIL NS=53
9e8280e19338 Uploaded
iuc
parents:
diff changeset
61 22 16346045 . T C 0.0 FAIL NS=244
9e8280e19338 Uploaded
iuc
parents:
diff changeset
62 22 16350245 . C A 0.0 FAIL NS=192
9e8280e19338 Uploaded
iuc
parents:
diff changeset
63
9e8280e19338 Uploaded
iuc
parents:
diff changeset
64 Annotated Output VCF:
9e8280e19338 Uploaded
iuc
parents:
diff changeset
65 #CHROM POS ID REF ALT QUAL FILTER INFO
9e8280e19338 Uploaded
iuc
parents:
diff changeset
66 22 16157571 . T G 0.0 FAIL NS=53
9e8280e19338 Uploaded
iuc
parents:
diff changeset
67 22 16346045 rs56234788 T C 0.0 FAIL NS=244
9e8280e19338 Uploaded
iuc
parents:
diff changeset
68 22 16350245 rs2905295 C A 0.0 FAIL NS=192
9e8280e19338 Uploaded
iuc
parents:
diff changeset
69
9e8280e19338 Uploaded
iuc
parents:
diff changeset
70 Annotatating both the ID and INFO fields from dbSnp137.vcf ::
9e8280e19338 Uploaded
iuc
parents:
diff changeset
71
9e8280e19338 Uploaded
iuc
parents:
diff changeset
72 Input VCF:
9e8280e19338 Uploaded
iuc
parents:
diff changeset
73 #CHROM POS ID REF ALT QUAL FILTER INFO
9e8280e19338 Uploaded
iuc
parents:
diff changeset
74 22 16157571 . T G 0.0 FAIL NS=53
9e8280e19338 Uploaded
iuc
parents:
diff changeset
75 22 16346045 . T C 0.0 FAIL NS=244
9e8280e19338 Uploaded
iuc
parents:
diff changeset
76 22 16350245 . C A 0.0 FAIL NS=192
9e8280e19338 Uploaded
iuc
parents:
diff changeset
77
9e8280e19338 Uploaded
iuc
parents:
diff changeset
78 Annotated Output VCF:
9e8280e19338 Uploaded
iuc
parents:
diff changeset
79 #CHROM POS ID REF ALT QUAL FILTER INFO
9e8280e19338 Uploaded
iuc
parents:
diff changeset
80 22 16157571 . T G 0.0 FAIL NS=53
9e8280e19338 Uploaded
iuc
parents:
diff changeset
81 22 16346045 rs56234788 T C 0.0 FAIL NS=244;RSPOS=16346045;GMAF=0.162248628884826;dbSNPBuildID=129;SSR=0;SAO=0;VP=050100000000000100000100;WGT=0;VC=SNV;SLO;GNO
9e8280e19338 Uploaded
iuc
parents:
diff changeset
82 22 16350245 rs2905295 C A 0.0 FAIL NS=192;RSPOS=16350245;GMAF=0.230804387568556;dbSNPBuildID=101;SSR=1;SAO=0;VP=050000000000000100000140;WGT=0;VC=SNV;GNO
9e8280e19338 Uploaded
iuc
parents:
diff changeset
83
9e8280e19338 Uploaded
iuc
parents:
diff changeset
84 @EXTERNAL_DOCUMENTATION@
3
20c7d583fec1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents: 2
diff changeset
85 - http://snpeff.sourceforge.net/SnpSift.html#annotate
20c7d583fec1 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents: 2
diff changeset
86 ]]></help>
1
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
87 <expand macro="citations" />
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
88 </tool>