Mercurial > repos > iuc > snpsift
annotate snpSift_annotate.xml @ 8:5fab4f81391d draft default tip
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit df8a21df77acffe40c0bc0fe0409ca1b529cd7fc"
author | iuc |
---|---|
date | Sat, 11 Sep 2021 07:17:51 +0000 |
parents | 2b3e65a4252f |
children |
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[ |
8
5fab4f81391d
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit df8a21df77acffe40c0bc0fe0409ca1b529cd7fc"
iuc
parents:
6
diff
changeset
|
13 ln -s '$dbSnp' 'dbSnp.vcf' && |
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
|
14 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
|
15 ${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
|
16 #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
|
17 -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
|
18 #end if |
8
5fab4f81391d
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit df8a21df77acffe40c0bc0fe0409ca1b529cd7fc"
iuc
parents:
6
diff
changeset
|
19 -q 'dbSnp.vcf' '$input' > '$output' |
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
|
20 ]]></command> |
0 | 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"/> |
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
|
23 <param name="dbSnp" type="data" format="vcf" label="VCF File with ID field annotated (e.g. dbSNP.vcf)" |
0 | 24 help="The ID field for a variant in input will be assigned from a matching variant in this file."/> |
25 <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
|
26 <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
|
27 <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
|
28 <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
|
29 </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
|
30 <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
|
31 <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
|
32 </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
|
33 <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
|
34 <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
|
35 <validator type="regex" message="IDs separated by commas">^(([a-zA-Z][a-zA-Z0-9_-]*)(,[a-zA-Z][a-zA-Z0-9_-]*)*)?$</validator> |
0 | 36 </param> |
37 </when> | |
38 </conditional> | |
39 </inputs> | |
40 <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
|
41 <data name="output" format="vcf" /> |
0 | 42 </outputs> |
43 <tests> | |
44 <test> | |
45 <param name="input" ftype="vcf" value="annotate_1.vcf"/> | |
46 <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
|
47 <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
|
48 <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
|
49 </conditional> |
0 | 50 <output name="output"> |
51 <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
|
52 <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
|
53 </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
|
54 </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
|
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 <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
|
57 <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
|
58 <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
|
59 <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
|
60 <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
|
61 <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
|
62 </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
|
63 <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
|
64 <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
|
65 <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
|
66 </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
|
67 </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
|
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 <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
|
70 <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
|
71 <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
|
72 <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
|
73 <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
|
74 </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
|
75 <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
|
76 <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
|
77 <has_line line="1	872687	rs76166080	C	G	.	.	." /> |
0 | 78 </assert_contents> |
79 </output> | |
80 </test> | |
81 </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
|
82 <help><![CDATA[ |
0 | 83 This is typically used to annotate IDs from dbSnp. |
84 | |
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
|
85 Annotating only the ID field from dbSnp137.vcf :: |
0 | 86 |
87 Input VCF: | |
88 CHROM POS ID REF ALT QUAL FILTER INFO | |
89 22 16157571 . T G 0.0 FAIL NS=53 | |
90 22 16346045 . T C 0.0 FAIL NS=244 | |
91 22 16350245 . C A 0.0 FAIL NS=192 | |
92 | |
93 Annotated Output VCF: | |
94 #CHROM POS ID REF ALT QUAL FILTER INFO | |
95 22 16157571 . T G 0.0 FAIL NS=53 | |
96 22 16346045 rs56234788 T C 0.0 FAIL NS=244 | |
97 22 16350245 rs2905295 C A 0.0 FAIL NS=192 | |
98 | |
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
|
99 Annotating both the ID and INFO fields from dbSnp137.vcf :: |
0 | 100 |
101 Input VCF: | |
102 #CHROM POS ID REF ALT QUAL FILTER INFO | |
103 22 16157571 . T G 0.0 FAIL NS=53 | |
104 22 16346045 . T C 0.0 FAIL NS=244 | |
105 22 16350245 . C A 0.0 FAIL NS=192 | |
106 | |
107 Annotated Output VCF: | |
108 #CHROM POS ID REF ALT QUAL FILTER INFO | |
109 22 16157571 . T G 0.0 FAIL NS=53 | |
110 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 | |
111 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 | |
112 | |
113 @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
|
114 - 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
|
115 ]]></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
|
116 <expand macro="citations" /> |
0 | 117 </tool> |