Mercurial > repos > iuc > snpsift
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 |
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 | 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[ |
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 | 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 | 24 help="The ID field for a variant in input will be assigned from a matching variant in this file."/> |
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 | 30 <when value="id"/> |
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 | 33 <validator type="regex" message="IDs separted by commas">^(([a-zA-Z][a-zA-Z0-9_-]*)(,[a-zA-Z][a-zA-Z0-9_-]*)*)?$</validator> |
34 </param> | |
35 </when> | |
36 </conditional> | |
37 </inputs> | |
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 | 40 </outputs> |
41 <tests> | |
42 <test> | |
43 <param name="input" ftype="vcf" value="annotate_1.vcf"/> | |
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 | 46 <output name="output"> |
47 <assert_contents> | |
48 <has_text text="rs76166080" /> | |
49 </assert_contents> | |
50 </output> | |
51 </test> | |
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 | 54 This is typically used to annotate IDs from dbSnp. |
55 | |
56 Annotatating only the ID field from dbSnp137.vcf :: | |
57 | |
58 Input VCF: | |
59 CHROM POS ID REF ALT QUAL FILTER INFO | |
60 22 16157571 . T G 0.0 FAIL NS=53 | |
61 22 16346045 . T C 0.0 FAIL NS=244 | |
62 22 16350245 . C A 0.0 FAIL NS=192 | |
63 | |
64 Annotated Output VCF: | |
65 #CHROM POS ID REF ALT QUAL FILTER INFO | |
66 22 16157571 . T G 0.0 FAIL NS=53 | |
67 22 16346045 rs56234788 T C 0.0 FAIL NS=244 | |
68 22 16350245 rs2905295 C A 0.0 FAIL NS=192 | |
69 | |
70 Annotatating both the ID and INFO fields from dbSnp137.vcf :: | |
71 | |
72 Input VCF: | |
73 #CHROM POS ID REF ALT QUAL FILTER INFO | |
74 22 16157571 . T G 0.0 FAIL NS=53 | |
75 22 16346045 . T C 0.0 FAIL NS=244 | |
76 22 16350245 . C A 0.0 FAIL NS=192 | |
77 | |
78 Annotated Output VCF: | |
79 #CHROM POS ID REF ALT QUAL FILTER INFO | |
80 22 16157571 . T G 0.0 FAIL NS=53 | |
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 | |
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 | |
83 | |
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 | 88 </tool> |