annotate snpSift_rmInfo.xml @ 1:98708b88af9f draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
author iuc
date Tue, 07 Jun 2016 10:04:09 -0400
parents 9e8280e19338
children bf8c1526871b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
1 <tool id="snpSift_rmInfo" name="SnpSift rmInfo" version="@WRAPPER_VERSION@.0">
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
2 <description>remove INFO field annotations</description>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
3 <macros>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
4 <import>snpSift_macros.xml</import>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
5 </macros>
1
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
6 <expand macro="requirements" />
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
7 <expand macro="stdio" />
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
8 <expand macro="version_command" />
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
9 <command><![CDATA[
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
10 java -Xmx2G -jar "\$SNPEFF_JAR_PATH/SnpSift.jar" rmInfo "$input" ' '.join($info_fields.split(',')) > "$output"
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
11 ]]>
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
12 </command>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
13 <inputs>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
14 <param format="vcf" name="input" type="data" label="Variant input file in VCF format"/>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
15 <param name="info_fields" type="text" value="" label="Info fields to remove, e.g. EFF">
9e8280e19338 Uploaded
iuc
parents:
diff changeset
16 <help>Separate multiple INFO fields with a comma, e.g.: EFF,DP</help>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
17 <validator type="empty_field" />
9e8280e19338 Uploaded
iuc
parents:
diff changeset
18 </param>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
19 </inputs>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
20 <outputs>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
21 <data format="vcf" name="output" />
9e8280e19338 Uploaded
iuc
parents:
diff changeset
22 </outputs>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
23 <tests>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
24 <test>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
25 <param name="input" ftype="vcf" value="test-data/test_rmInfo.vcf"/>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
26 <param name="info_fields" value="EFF"/>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
27 <output name="output">
9e8280e19338 Uploaded
iuc
parents:
diff changeset
28 <assert_contents>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
29 <has_text text="DP=29" />
9e8280e19338 Uploaded
iuc
parents:
diff changeset
30 <not_has_text text="EFF=EXON" />
9e8280e19338 Uploaded
iuc
parents:
diff changeset
31 </assert_contents>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
32 </output>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
33 </test>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
34 <test>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
35 <param name="input" ftype="vcf" value="test-data/test_rmInfo.vcf"/>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
36 <param name="info_fields" value="EFF"/>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
37 <output name="output">
9e8280e19338 Uploaded
iuc
parents:
diff changeset
38 <assert_contents>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
39 <not_has_text text="DP=29;EFF=EXON" />
9e8280e19338 Uploaded
iuc
parents:
diff changeset
40 </assert_contents>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
41 </output>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
42 </test>
9e8280e19338 Uploaded
iuc
parents:
diff changeset
43 </tests>
1
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
44 <help><![CDATA[
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
45 This command removes INFO fields from a VCF file (i.e. removes annotations)
9e8280e19338 Uploaded
iuc
parents:
diff changeset
46
9e8280e19338 Uploaded
iuc
parents:
diff changeset
47 Removing INFO fields is usually done because you want to re-annotate the VCF file, thus removing old INFO fields in order to add new ones later.
9e8280e19338 Uploaded
iuc
parents:
diff changeset
48
1
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
49 SnpEff & SnpSift only add annotations and do not change current ones. So, in order to re-annotate a file, you should first remove the old annotations and then re-annotate.
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
50 The reason for this behavior is simply because replacing annotation values is considered a bad practice. Imagine that you have a VCF entry in your re-annotated file having the value "AA=1": How do you know if this is from the old annotations or from the new ones? This confusion often leads to problems in downstream steps of your pipelines, so it's better to avoid the problem by first removing all the previous annotations and then adding the new ones.
9e8280e19338 Uploaded
iuc
parents:
diff changeset
51
9e8280e19338 Uploaded
iuc
parents:
diff changeset
52 @EXTERNAL_DOCUMENTATION@
9e8280e19338 Uploaded
iuc
parents:
diff changeset
53 http://snpeff.sourceforge.net/SnpSift.html#rmInfo
9e8280e19338 Uploaded
iuc
parents:
diff changeset
54
1
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
55 ]]>
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
56 </help>
1
98708b88af9f planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit 21b46ae2c90ba7e569b2b3a9eaf938f8dedb2c31
iuc
parents: 0
diff changeset
57 <expand macro="citations" />
0
9e8280e19338 Uploaded
iuc
parents:
diff changeset
58 </tool>