comparison snpSift_rmInfo.xml @ 2:49b5bd3dc316

Add rmInfo tool
author Jim Johnson <jj@umn.edu>
date Tue, 21 Oct 2014 12:17:25 -0500
parents
children baf6602903e1
comparison
equal deleted inserted replaced
1:796388c291d3 2:49b5bd3dc316
1 <tool id="snpSift_rmInfo" name="SnpSift rmInfo" version="4.0.0">
2 <description>remove INFO field annotations</description>
3 <expand macro="requirements" />
4 <macros>
5 <import>snpEff_macros.xml</import>
6 </macros>
7 <command>
8 java -Xmx2G -jar \$SNPEFF_JAR_PATH/SnpSift.jar rmInfo $input ' '.join($info_fields.split(',')) > $output
9 </command>
10 <inputs>
11 <param format="vcf" name="input" type="data" label="Variant input file in VCF format"/>
12 <param name="info_fields" type="text" value="" label="Info fields to remove, e.g. EFF">
13 <help>Separate multiple INFO fields with a comma, e.g.: EFF,DP</help>
14 <validator type="empty_field" />
15 </param>
16 </inputs>
17 <outputs>
18 <data format="vcf" name="output" />
19 </outputs>
20 <expand macro="stdio" />
21 <tests>
22 <test>
23 <param name="input" ftype="vcf" value="test-data/test_rmInfo.vcf"/>
24 <param name="info_fields" value="EFF"/>
25 <output name="output">
26 <assert_contents>
27 <has_text text="DP=29" />
28 <not_has_text text="EFF=EXON" />
29 </assert_contents>
30 </output>
31 </test>
32 <test>
33 <param name="input" ftype="vcf" value="test-data/test_rmInfo.vcf"/>
34 <param name="info_fields" value="EFF"/>
35 <output name="output">
36 <assert_contents>
37 <not_has_text text="DP=29;EFF=EXON" />
38 </assert_contents>
39 </output>
40 </test>
41 </tests>
42 <help>
43 This command removes INFO fields from a VCF file (i.e. removes annotations)
44
45 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.
46
47 SnpEff &amp; 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.
48 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.
49
50 @EXTERNAL_DOCUMENTATION@
51 http://snpeff.sourceforge.net/SnpSift.html#rmInfo
52
53 @CITATION_SECTION@
54
55 </help>
56 </tool>