comparison snpSift_filter.xml @ 1:796388c291d3

Update for snpeff version 4.0
author Jim Johnson <jj@umn.edu>
date Mon, 20 Oct 2014 08:43:00 -0500
parents 1ae5526db990
children baf6602903e1
comparison
equal deleted inserted replaced
0:1ae5526db990 1:796388c291d3
1 <tool id="snpSift_filter" name="SnpSift Filter" version="3.6"> 1 <tool id="snpSift_filter" name="SnpSift Filter" version="4.0.0">
2 <options sanitize="False" /> 2 <options sanitize="False" />
3 <description>Filter variants using arbitrary expressions</description> 3 <description>Filter variants using arbitrary expressions</description>
4 <expand macro="requirements" /> 4 <expand macro="requirements" />
5 <macros> 5 <macros>
6 <import>snpEff_macros.xml</import> 6 <import>snpEff_macros.xml</import>
48 </when> 48 </when>
49 </conditional> 49 </conditional>
50 </inputs> 50 </inputs>
51 <configfiles> 51 <configfiles>
52 <configfile name="exprFile"> 52 <configfile name="exprFile">
53 $expr 53 $expr#slurp
54 </configfile> 54 </configfile>
55 </configfiles> 55 </configfiles>
56 56
57 <outputs> 57 <outputs>
58 <data format="vcf" name="output" /> 58 <data format="vcf" name="output" />
117 117
118 You can filter ia vcf file using arbitrary expressions, for instance "(QUAL > 30) | (exists INDEL) | ( countHet() > 2 )". The actual expressions can be quite complex, so it allows for a lot of flexibility. 118 You can filter ia vcf file using arbitrary expressions, for instance "(QUAL > 30) | (exists INDEL) | ( countHet() > 2 )". The actual expressions can be quite complex, so it allows for a lot of flexibility.
119 119
120 Some examples: 120 Some examples:
121 121
122 - *I want just the variants from the second million bases of chr1*:
123
124 ::
125
126 ( CHROM = 'chr1' ) &amp; ( POS &gt; 1000000 ) &amp; ( POS &lt; 2000000 )
127
128 - *Filter value is either 'PASS' or it is missing*:
129
130 ::
131
132 (FILTER = 'PASS') | ( na FILTER )
133
134 - *I want to filter lines with an EFF of 'frameshift_variant' ( for vcf files using Sequence Ontology terms )*:
135
136 ::
137
138 ( EFF[*].EFFECT = 'frameshift_variant' )
139
140 - *I want to filter lines with an EFF of 'FRAME_SHIFT' ( for vcf files using Classic Effect names )*:
141
142 ::
143
144 ( EFF[*].EFFECT = 'FRAME_SHIFT' )
145
122 - *I want to filter out samples with quality less than 30*: 146 - *I want to filter out samples with quality less than 30*:
123 147
124 :: 148 ::
125 149
126 ( QUAL &gt; 30 ) 150 ( QUAL &gt; 30 )
127 151
128
129 - *...but we also want InDels that have quality 20 or more*: 152 - *...but we also want InDels that have quality 20 or more*:
130 153
131 :: 154 ::
132 155
133 (( exists INDEL ) &amp; (QUAL >= 20)) | (QUAL >= 30 ) 156 (( exists INDEL ) &amp; (QUAL >= 20)) | (QUAL >= 30 )
149 :: 172 ::
150 173
151 (isHom( GEN[0] ) &amp; isVariant( GEN[0] ) &amp; isRef( GEN[1] )) 174 (isHom( GEN[0] ) &amp; isVariant( GEN[0] ) &amp; isRef( GEN[1] ))
152 175
153 176
154 - *I want to filter lines with an EFF of FRAME_SHIFT*: 177 **For information regarding HGVS and Sequence Ontology terms versus classic names**:
155 178
156 :: 179 - http://snpeff.sourceforge.net/SnpEff_manual.html#cmdline for the options: -classic, -hgvs, and -sequenceOntology
157 180 - http://snpeff.sourceforge.net/SnpEff_manual.html#input for the table containing the classic name and sequence onology term for each effect
158 ( EFF[*].EFFECT = 'FRAME_SHIFT' ) 181
159
160 182
161 @EXTERNAL_DOCUMENTATION@ 183 @EXTERNAL_DOCUMENTATION@
162 http://snpeff.sourceforge.net/SnpSift.html#filter 184 http://snpeff.sourceforge.net/SnpSift.html#filter
163 185
164 @CITATION_SECTION@ 186 @CITATION_SECTION@