Mercurial > repos > iuc > snpsift
annotate snpSift_annotate.xml @ 20:f90f08ed9810 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:20 +0000 |
| parents | 0b0035e38abe |
| children |
| 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[ |
|
20
f90f08ed9810
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit df8a21df77acffe40c0bc0fe0409ca1b529cd7fc"
iuc
parents:
18
diff
changeset
|
13 ln -s '$dbSnp' 'dbSnp.vcf' && |
|
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
|
14 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
|
15 ${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
|
16 #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
|
17 -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
|
18 #end if |
|
20
f90f08ed9810
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit df8a21df77acffe40c0bc0fe0409ca1b529cd7fc"
iuc
parents:
18
diff
changeset
|
19 -q 'dbSnp.vcf' '$input' > '$output' |
|
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
|
20 ]]></command> |
| 0 | 21 <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
|
22 <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
|
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"> | |
|
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
|
26 <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
|
27 <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
|
28 <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
|
29 </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
|
30 <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
|
31 <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
|
32 </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
|
33 <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
|
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"> |
|
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
|
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> | |
|
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
|
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"/> | |
|
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
|
47 <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
|
48 <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
|
49 </conditional> |
| 0 | 50 <output name="output"> |
| 51 <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
|
52 <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
|
53 </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
|
54 </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
|
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 <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
|
57 <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
|
58 <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
|
59 <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
|
60 <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
|
61 <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
|
62 </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
|
63 <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
|
64 <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
|
65 <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
|
66 </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
|
67 </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
|
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 <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
|
70 <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
|
71 <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
|
72 <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
|
73 <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
|
74 </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
|
75 <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
|
76 <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
|
77 <has_line line="1	872687	rs76166080	C	G	.	.	." /> |
| 0 | 78 </assert_contents> |
| 79 </output> | |
| 80 </test> | |
| 81 </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
|
82 <help><![CDATA[ |
| 0 | 83 This is typically used to annotate IDs from dbSnp. |
| 84 | |
|
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
|
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 | |
|
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
|
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@ | |
|
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
|
114 - 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
|
115 ]]></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
|
116 <expand macro="citations" /> |
| 0 | 117 </tool> |
