annotate snpSift_annotate.xml @ 25:7c1c337fb21c default tip

Update tool_dependencies.xml for testtoolshed
author Jim Johnson <jj@umn.edu>
date Tue, 07 May 2013 15:05:54 -0500
parents f22f28cd881e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
24
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
1 <tool id="snpSift_annotate" name="SnpSift Annotate" version="3.2">
0
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
2 <description>Annotate SNPs from dbSnp</description>
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
3 <!--
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
4 You will need to change the path to wherever your installation is.
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
5 You can change the amount of memory used, just change the -Xmx parameter (e.g. use -Xmx2G for 2Gb of memory)
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
6 -->
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
7 <requirements>
24
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
8 <requirement type="package" version="3.2">snpEff</requirement>
0
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
9 </requirements>
24
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
10 <command>
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
11 java -Xmx6G -jar \$JAVA_JAR_PATH/SnpSift.jar $annotate_cmd
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
12 #if $annotate.id :
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
13 -id
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
14 #elif $annotate.info_ids.__str__.strip() != '' :
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
15 -info "$annotate.info_ids"
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
16 #end if
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
17 -q $dbSnp $input > $output
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
18 </command>
0
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
19 <inputs>
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
20 <param format="vcf" name="input" type="data" label="VCF input"/>
24
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
21 <param format="vcf" name="dbSnp" type="data" label="VCF File with ID field annotated (e.g. dnSNP.vcf)"
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
22 help="The ID field for a variant in input will be assigned from a matching variant in this file."/>
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
23 <param name="annotate_cmd" type="boolean" truevalue="annMem" falsevalue="annotate" checked="false" label="Annotate in Memory"
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
24 help="allows unsorted VCF files, but it loads the entire 'database' VCF file into memory (which may not be practical for large 'database' VCF files)"/>
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
25 <conditional name="annotate">
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
26 <param name="id" type="boolean" truevalue="id" falsevalue="info" checked="True" label="Only annotate ID field (do not add INFO field)" help=""/>
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
27 <when value="id"/>
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
28 <when value="info">
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
29 <param name="info_ids" type="text" value="" optional="true" label="Limit INFO annotation to these INFO IDs"
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
30 help="list is a comma separated list of fields. When blank, all INFO fields are included">
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
31 <validator type="regex" message="IDs separted by commas">^(([a-zA-Z][a-zA-Z0-9_-]*)(,[a-zA-Z][a-zA-Z0-9_-]*)*)?$</validator>
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
32 </param>
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
33 </when>
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
34 </conditional>
0
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
35 </inputs>
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
36 <stdio>
5
c641d515de2e Add stdio tags
Jim Johnson <jj@umn.edu>
parents: 1
diff changeset
37 <exit_code range=":-1" level="fatal" description="Error: Cannot open file" />
c641d515de2e Add stdio tags
Jim Johnson <jj@umn.edu>
parents: 1
diff changeset
38 <exit_code range="1:" level="fatal" description="Error" />
0
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
39 </stdio>
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
40
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
41 <outputs>
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
42 <data format="vcf" name="output" />
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
43 </outputs>
24
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
44 <tests>
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
45 <test>
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
46 <param name="input" ftype="vcf" value="annotate_1.vcf"/>
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
47 <param name="dbSnp" ftype="vcf" value="db_test_1.vcf"/>
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
48 <param name="annotate_cmd" value="False"/>
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
49 <param name="id" value="True"/>
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
50 <output name="output">
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
51 <assert_contents>
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
52 <has_text text="rs76166080" />
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
53 </assert_contents>
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
54 </output>
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
55 </test>
f22f28cd881e Update for snpEff v3.2
Jim Johnson <jj@umn.edu>
parents: 23
diff changeset
56 </tests>
0
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
57 <help>
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
58
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
59 This is typically used to annotate IDs from dbSnp.
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
60
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
61 For details about this tool, please go to http://snpeff.sourceforge.net/SnpSift.html#annotate
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
62
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
63 </help>
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
64 </tool>
388f178f9e13 Uploaded
jjohnson
parents:
diff changeset
65