Mercurial > repos > iuc > snpsift
annotate snpSift_annotate.xml @ 6:2b3e65a4252f draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
author | iuc |
---|---|
date | Wed, 16 Jan 2019 15:35:26 -0500 |
parents | 09d6806c609e |
children | 5fab4f81391d |
rev | line source |
---|---|
6
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
1 <tool id="snpSift_annotate" name="SnpSift Annotate" version="@WRAPPER_VERSION@.galaxy1"> |
0 | 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 | 4 You can change the amount of memory used, just change the -Xmx parameter (e.g. use -Xmx2G for 2Gb of memory) |
5 --> | |
6 <macros> | |
7 <import>snpSift_macros.xml</import> | |
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[ |
4
b04635ebfab0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 9d2052269bfbca81a5f9cd10c3153e611358a329
iuc
parents:
3
diff
changeset
|
13 SnpSift -Xmx8G annotate |
6
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
14 ${annotate.no_info} |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
15 #if str($annotate.info_ids).strip(): |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
16 -info '$annotate.info_ids' |
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
|
17 #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
|
18 -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
|
19 ]]></command> |
0 | 20 <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
|
21 <param name="input" type="data" format="vcf" label="Variant input file in VCF format"/> |
4
b04635ebfab0
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 9d2052269bfbca81a5f9cd10c3153e611358a329
iuc
parents:
3
diff
changeset
|
22 <param name="dbSnp" type="data" format="vcf" label="VCF File with ID field annotated (e.g. dbSNP.vcf)" |
0 | 23 help="The ID field for a variant in input will be assigned from a matching variant in this file."/> |
24 <conditional name="annotate"> | |
6
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
25 <param name="no_info" type="select" label="Fields to annotate"> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
26 <option value="-noInfo">Only annotate ID field (no INFO fields will be added)</option> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
27 <option value="">Add also INFO fields</option> |
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
|
28 </param> |
6
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
29 <when value="-noInfo"> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
30 <param name="info_ids" type="hidden" value="" /> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
31 </when> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
32 <when value=""> |
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
|
33 <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"> |
6
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
34 <validator type="regex" message="IDs separated by commas">^(([a-zA-Z][a-zA-Z0-9_-]*)(,[a-zA-Z][a-zA-Z0-9_-]*)*)?$</validator> |
0 | 35 </param> |
36 </when> | |
37 </conditional> | |
38 </inputs> | |
39 <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
|
40 <data name="output" format="vcf" /> |
0 | 41 </outputs> |
42 <tests> | |
43 <test> | |
44 <param name="input" ftype="vcf" value="annotate_1.vcf"/> | |
45 <param name="dbSnp" ftype="vcf" value="db_test_1.vcf"/> | |
6
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
46 <conditional name="annotate"> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
47 <param name="no_info" value=""/> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
48 </conditional> |
0 | 49 <output name="output"> |
50 <assert_contents> | |
6
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
51 <has_line_matching expression="1	872687	rs76166080	C	G	.	.	.+;.+" /> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
52 </assert_contents> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
53 </output> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
54 </test> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
55 <test> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
56 <param name="input" ftype="vcf" value="annotate_1.vcf"/> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
57 <param name="dbSnp" ftype="vcf" value="db_test_1.vcf"/> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
58 <conditional name="annotate"> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
59 <param name="no_info" value=""/> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
60 <param name="info_ids" value="dbSNPBuildID" /> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
61 </conditional> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
62 <output name="output"> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
63 <assert_contents> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
64 <has_line_matching expression="1	872687	rs76166080	C	G	.	.	dbSNPBuildID=137" /> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
65 </assert_contents> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
66 </output> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
67 </test> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
68 <test> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
69 <param name="input" ftype="vcf" value="annotate_1.vcf"/> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
70 <param name="dbSnp" ftype="vcf" value="db_test_1.vcf"/> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
71 <conditional name="annotate"> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
72 <param name="no_info" value="-noInfo"/> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
73 </conditional> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
74 <output name="output"> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
75 <assert_contents> |
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
76 <has_line line="1	872687	rs76166080	C	G	.	.	." /> |
0 | 77 </assert_contents> |
78 </output> | |
79 </test> | |
80 </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
|
81 <help><![CDATA[ |
0 | 82 This is typically used to annotate IDs from dbSnp. |
83 | |
6
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
84 Annotating only the ID field from dbSnp137.vcf :: |
0 | 85 |
86 Input VCF: | |
87 CHROM POS ID REF ALT QUAL FILTER INFO | |
88 22 16157571 . T G 0.0 FAIL NS=53 | |
89 22 16346045 . T C 0.0 FAIL NS=244 | |
90 22 16350245 . C A 0.0 FAIL NS=192 | |
91 | |
92 Annotated Output VCF: | |
93 #CHROM POS ID REF ALT QUAL FILTER INFO | |
94 22 16157571 . T G 0.0 FAIL NS=53 | |
95 22 16346045 rs56234788 T C 0.0 FAIL NS=244 | |
96 22 16350245 rs2905295 C A 0.0 FAIL NS=192 | |
97 | |
6
2b3e65a4252f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
5
diff
changeset
|
98 Annotating both the ID and INFO fields from dbSnp137.vcf :: |
0 | 99 |
100 Input VCF: | |
101 #CHROM POS ID REF ALT QUAL FILTER INFO | |
102 22 16157571 . T G 0.0 FAIL NS=53 | |
103 22 16346045 . T C 0.0 FAIL NS=244 | |
104 22 16350245 . C A 0.0 FAIL NS=192 | |
105 | |
106 Annotated Output VCF: | |
107 #CHROM POS ID REF ALT QUAL FILTER INFO | |
108 22 16157571 . T G 0.0 FAIL NS=53 | |
109 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 | |
110 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 | |
111 | |
112 @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
|
113 - 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
|
114 ]]></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
|
115 <expand macro="citations" /> |
0 | 116 </tool> |