annotate snpSift_annotate.xml @ 0:1ae5526db990

Uploaded
author jjohnson
date Thu, 26 Jun 2014 09:22:13 -0400
parents
children 796388c291d3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
1 <tool id="snpSift_annotate" name="SnpSift Annotate" version="3.6">
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 -->
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
6 <expand macro="requirements" />
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
7 <macros>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
8 <import>snpEff_macros.xml</import>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
9 </macros>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
10 <command>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
11 java -Xmx6G -jar \$SNPEFF_JAR_PATH/SnpSift.jar $annotate_cmd
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
12 #if $annotate.id :
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
13 -id
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
14 #elif $annotate.info_ids.__str__.strip() != '' :
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
15 -info "$annotate.info_ids"
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
16 #end if
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
17 -q $dbSnp $input > $output
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
18 </command>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
19 <inputs>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
20 <param format="vcf" name="input" type="data" label="Variant input file in VCF format"/>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
21 <param format="vcf" name="dbSnp" type="data" label="VCF File with ID field annotated (e.g. dnSNP.vcf)"
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
22 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
23 <conditional name="annotate">
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
24 <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
25 <when value="id"/>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
26 <when value="info">
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
27 <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
28 help="list is a comma separated list of fields. When blank, all INFO fields are included">
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
29 <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
30 </param>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
31 </when>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
32 </conditional>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
33 <param name="annotate_cmd" type="boolean" truevalue="annMem" falsevalue="annotate" checked="false" label="Allow unsorted VCF files">
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
34 <help>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
35 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
36 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
37 </help>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
38 </param>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
39 </inputs>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
40 <expand macro="stdio" />
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
41 <outputs>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
42 <data format="vcf" name="output" />
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
43 </outputs>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
44 <tests>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
45 <test>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
46 <param name="input" ftype="vcf" value="annotate_1.vcf"/>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
47 <param name="dbSnp" ftype="vcf" value="db_test_1.vcf"/>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
48 <param name="annotate_cmd" value="False"/>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
49 <param name="id" value="True"/>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
50 <output name="output">
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
51 <assert_contents>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
52 <has_text text="rs76166080" />
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
53 </assert_contents>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
54 </output>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
55 </test>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
56 </tests>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
57 <help>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
58
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
59 This is typically used to annotate IDs from dbSnp.
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
60
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
61 Annotatating only the ID field from dbSnp137.vcf ::
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
62
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
63 Input VCF:
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
64 CHROM POS ID REF ALT QUAL FILTER INFO
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
65 22 16157571 . T G 0.0 FAIL NS=53
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
66 22 16346045 . T C 0.0 FAIL NS=244
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
67 22 16350245 . C A 0.0 FAIL NS=192
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
68
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
69 Annotated Output VCF:
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
70 #CHROM POS ID REF ALT QUAL FILTER INFO
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
71 22 16157571 . T G 0.0 FAIL NS=53
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
72 22 16346045 rs56234788 T C 0.0 FAIL NS=244
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
73 22 16350245 rs2905295 C A 0.0 FAIL NS=192
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
74
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
75
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
76
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
77 Annotatating both the ID and INFO fields from dbSnp137.vcf ::
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
78
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
79 Input VCF:
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
80 #CHROM POS ID REF ALT QUAL FILTER INFO
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
81 22 16157571 . T G 0.0 FAIL NS=53
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
82 22 16346045 . T C 0.0 FAIL NS=244
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
83 22 16350245 . C A 0.0 FAIL NS=192
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
84
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
85 Annotated Output VCF:
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
86 #CHROM POS ID REF ALT QUAL FILTER INFO
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
87 22 16157571 . T G 0.0 FAIL NS=53
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
88 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
89 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
90
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
91
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
92 @EXTERNAL_DOCUMENTATION@
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
93 http://snpeff.sourceforge.net/SnpSift.html#annotate
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
94
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
95 @CITATION_SECTION@
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
96
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
97
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
98 </help>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
99 </tool>
1ae5526db990 Uploaded
jjohnson
parents:
diff changeset
100