Mercurial > repos > iuc > snpsift
annotate snpSift_annotate.xml @ 18:0b0035e38abe 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:02 -0500 |
| parents | ede8954f5c82 |
| children | f90f08ed9810 |
| rev | line source |
|---|---|
|
18
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
1 <tool id="snpSift_annotate" name="SnpSift Annotate" version="@WRAPPER_VERSION@.galaxy1"> |
| 0 | 2 <description>SNPs from dbSnp</description> |
|
14
80da7fae14b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents:
13
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> | |
|
11
b884686a80dc
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 344140b8df53b8b7024618bb04594607a045c03a
iuc
parents:
0
diff
changeset
|
9 <expand macro="requirements" /> |
|
b884686a80dc
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 344140b8df53b8b7024618bb04594607a045c03a
iuc
parents:
0
diff
changeset
|
10 <expand macro="stdio" /> |
|
13
ed810da439cc
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12a2e9dd273b4c23db48bbb747f32700887710e
iuc
parents:
12
diff
changeset
|
11 <expand macro="version_command" /> |
|
ed810da439cc
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12a2e9dd273b4c23db48bbb747f32700887710e
iuc
parents:
12
diff
changeset
|
12 <command><![CDATA[ |
|
16
f0e87bdad733
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 9d2052269bfbca81a5f9cd10c3153e611358a329
iuc
parents:
15
diff
changeset
|
13 SnpSift -Xmx8G annotate |
|
18
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
14 ${annotate.no_info} |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
15 #if str($annotate.info_ids).strip(): |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
16 -info '$annotate.info_ids' |
|
15
8bd645802765
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents:
14
diff
changeset
|
17 #end if |
|
8bd645802765
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents:
14
diff
changeset
|
18 -q '$dbSnp' '$input' > '$output' |
|
8bd645802765
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents:
14
diff
changeset
|
19 ]]></command> |
| 0 | 20 <inputs> |
|
15
8bd645802765
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents:
14
diff
changeset
|
21 <param name="input" type="data" format="vcf" label="Variant input file in VCF format"/> |
|
16
f0e87bdad733
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 9d2052269bfbca81a5f9cd10c3153e611358a329
iuc
parents:
15
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"> | |
|
18
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
25 <param name="no_info" type="select" label="Fields to annotate"> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
26 <option value="-noInfo">Only annotate ID field (no INFO fields will be added)</option> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
27 <option value="">Add also INFO fields</option> |
|
15
8bd645802765
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents:
14
diff
changeset
|
28 </param> |
|
18
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
29 <when value="-noInfo"> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
30 <param name="info_ids" type="hidden" value="" /> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
31 </when> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
32 <when value=""> |
|
14
80da7fae14b8
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12355cea76843e3ed6f09d96c3e9fe22afe4a4f
iuc
parents:
13
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"> |
|
18
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
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> | |
|
15
8bd645802765
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents:
14
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"/> | |
|
18
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
46 <conditional name="annotate"> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
47 <param name="no_info" value=""/> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
48 </conditional> |
| 0 | 49 <output name="output"> |
| 50 <assert_contents> | |
|
18
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
51 <has_line_matching expression="1	872687	rs76166080	C	G	.	.	.+;.+" /> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
52 </assert_contents> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
53 </output> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
54 </test> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
55 <test> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
56 <param name="input" ftype="vcf" value="annotate_1.vcf"/> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
57 <param name="dbSnp" ftype="vcf" value="db_test_1.vcf"/> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
58 <conditional name="annotate"> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
59 <param name="no_info" value=""/> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
60 <param name="info_ids" value="dbSNPBuildID" /> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
61 </conditional> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
62 <output name="output"> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
63 <assert_contents> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
64 <has_line_matching expression="1	872687	rs76166080	C	G	.	.	dbSNPBuildID=137" /> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
65 </assert_contents> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
66 </output> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
67 </test> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
68 <test> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
69 <param name="input" ftype="vcf" value="annotate_1.vcf"/> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
70 <param name="dbSnp" ftype="vcf" value="db_test_1.vcf"/> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
71 <conditional name="annotate"> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
72 <param name="no_info" value="-noInfo"/> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
73 </conditional> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
74 <output name="output"> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
75 <assert_contents> |
|
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
diff
changeset
|
76 <has_line line="1	872687	rs76166080	C	G	.	.	." /> |
| 0 | 77 </assert_contents> |
| 78 </output> | |
| 79 </test> | |
| 80 </tests> | |
|
13
ed810da439cc
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12a2e9dd273b4c23db48bbb747f32700887710e
iuc
parents:
12
diff
changeset
|
81 <help><![CDATA[ |
| 0 | 82 This is typically used to annotate IDs from dbSnp. |
| 83 | |
|
18
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
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 | |
|
18
0b0035e38abe
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 693e1a3641c776965f68d688c8e1409adba7da1e
iuc
parents:
17
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@ | |
|
15
8bd645802765
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents:
14
diff
changeset
|
113 - http://snpeff.sourceforge.net/SnpSift.html#annotate |
|
8bd645802765
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit fbc18d9128669e461e76ed13307ee88dd774afa5
iuc
parents:
14
diff
changeset
|
114 ]]></help> |
|
13
ed810da439cc
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12a2e9dd273b4c23db48bbb747f32700887710e
iuc
parents:
12
diff
changeset
|
115 <expand macro="citations" /> |
| 0 | 116 </tool> |
