annotate snpSift_annotate.xml @ 4:baf6602903e1

Uploaded
author jjohnson
date Wed, 09 Dec 2015 14:03:26 -0500
parents 796388c291d3
children 824f78c0d0df
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
baf6602903e1 Uploaded
jjohnson
parents: 1
diff changeset
1 <tool id="snpSift_annotate" name="SnpSift Annotate" version="@WRAPPER_VERSION@.0">
0
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
2 <description>SNPs from dbSnp</description>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
3 <!--
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
4 You can change the amount of memory used, just change the -Xmx parameter (e.g. use -Xmx2G for 2Gb of memory)
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
5 -->
4
baf6602903e1 Uploaded
jjohnson
parents: 1
diff changeset
6 <macros>
baf6602903e1 Uploaded
jjohnson
parents: 1
diff changeset
7 <import>snpSift_macros.xml</import>
baf6602903e1 Uploaded
jjohnson
parents: 1
diff changeset
8 </macros>
0
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
9 <expand macro="requirements" />
4
baf6602903e1 Uploaded
jjohnson
parents: 1
diff changeset
10 <expand macro="stdio" />
baf6602903e1 Uploaded
jjohnson
parents: 1
diff changeset
11 <expand macro="version_command" />
baf6602903e1 Uploaded
jjohnson
parents: 1
diff changeset
12 <command><![CDATA[
0
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
13 java -Xmx6G -jar \$SNPEFF_JAR_PATH/SnpSift.jar $annotate_cmd
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
14 #if $annotate.id :
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
15 -id
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
16 #elif $annotate.info_ids.__str__.strip() != '' :
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
17 -info "$annotate.info_ids"
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
18 #end if
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
19 -q $dbSnp $input > $output
4
baf6602903e1 Uploaded
jjohnson
parents: 1
diff changeset
20 ]]>
0
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
21 </command>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
22 <inputs>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
23 <param format="vcf" name="input" type="data" label="Variant input file in VCF format"/>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
24 <param format="vcf" name="dbSnp" type="data" label="VCF File with ID field annotated (e.g. dnSNP.vcf)"
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
25 help="The ID field for a variant in input will be assigned from a matching variant in this file."/>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
26 <conditional name="annotate">
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
27 <param name="id" type="boolean" truevalue="id" falsevalue="info" checked="True" label="Only annotate ID field (do not add INFO field)" help=""/>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
28 <when value="id"/>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
29 <when value="info">
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
30 <param name="info_ids" type="text" value="" size="60" optional="true" label="Limit INFO annotation to these INFO IDs"
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
31 help="list is a comma separated list of fields. When blank, all INFO fields are included">
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
32 <validator type="regex" message="IDs separted by commas">^(([a-zA-Z][a-zA-Z0-9_-]*)(,[a-zA-Z][a-zA-Z0-9_-]*)*)?$</validator>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
33 </param>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
34 </when>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
35 </conditional>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
36 <param name="annotate_cmd" type="boolean" truevalue="annMem" falsevalue="annotate" checked="false" label="Allow unsorted VCF files">
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
37 <help>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
38 This option will load the entire 'database' VCF file into memory (which may not be practical for large 'database' VCF files).
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
39 Otherwise, both the database and the input VCF files should be sorted by position (Chromosome sort order can differ between files).
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
40 </help>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
41 </param>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
42 </inputs>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
43 <outputs>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
44 <data format="vcf" name="output" />
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
45 </outputs>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
46 <tests>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
47 <test>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
48 <param name="input" ftype="vcf" value="annotate_1.vcf"/>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
49 <param name="dbSnp" ftype="vcf" value="db_test_1.vcf"/>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
50 <param name="annotate_cmd" value="False"/>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
51 <param name="id" value="True"/>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
52 <output name="output">
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
53 <assert_contents>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
54 <has_text text="rs76166080" />
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
55 </assert_contents>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
56 </output>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
57 </test>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
58 </tests>
4
baf6602903e1 Uploaded
jjohnson
parents: 1
diff changeset
59 <help><![CDATA[
0
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
60
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
61 This is typically used to annotate IDs from dbSnp.
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
62
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
63 Annotatating only the ID field from dbSnp137.vcf ::
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
64
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
65 Input VCF:
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
66 CHROM POS ID REF ALT QUAL FILTER INFO
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
67 22 16157571 . T G 0.0 FAIL NS=53
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
68 22 16346045 . T C 0.0 FAIL NS=244
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
69 22 16350245 . C A 0.0 FAIL NS=192
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
70
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
71 Annotated Output VCF:
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
72 #CHROM POS ID REF ALT QUAL FILTER INFO
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
73 22 16157571 . T G 0.0 FAIL NS=53
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
74 22 16346045 rs56234788 T C 0.0 FAIL NS=244
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
75 22 16350245 rs2905295 C A 0.0 FAIL NS=192
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
76
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
77
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
78
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
79 Annotatating both the ID and INFO fields from dbSnp137.vcf ::
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
80
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
81 Input VCF:
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
82 #CHROM POS ID REF ALT QUAL FILTER INFO
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
83 22 16157571 . T G 0.0 FAIL NS=53
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
84 22 16346045 . T C 0.0 FAIL NS=244
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
85 22 16350245 . C A 0.0 FAIL NS=192
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
86
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
87 Annotated Output VCF:
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
88 #CHROM POS ID REF ALT QUAL FILTER INFO
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
89 22 16157571 . T G 0.0 FAIL NS=53
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
90 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
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
91 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
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
92
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
93
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
94 @EXTERNAL_DOCUMENTATION@
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
95 http://snpeff.sourceforge.net/SnpSift.html#annotate
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
96
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
97 @CITATION_SECTION@
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
98
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
99
4
baf6602903e1 Uploaded
jjohnson
parents: 1
diff changeset
100 ]]>
0
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
101 </help>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
102 </tool>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
103