# HG changeset patch # User iuc # Date 1465306873 14400 # Node ID ed810da439ccf7d7b0182c01efd29d1c07139385 # Parent 6bf58286d7956a854db0adf05154ddb59a13ad7e planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/snpsift/snpsift commit d12a2e9dd273b4c23db48bbb747f32700887710e diff -r 6bf58286d795 -r ed810da439cc snpSift_annotate.xml --- a/snpSift_annotate.xml Tue Oct 13 17:31:24 2015 -0400 +++ b/snpSift_annotate.xml Tue Jun 07 09:41:13 2016 -0400 @@ -1,6 +1,6 @@ - + SNPs from dbSnp - @@ -8,33 +8,35 @@ - - java -Xmx6G -jar \$SNPEFF_JAR_PATH/SnpSift.jar $annotate_cmd + + $output + #end if + -q "$dbSnp" "$input" > "$output" +]]> - + help="list is a comma separated list of fields. When blank, all INFO fields are included"> ^(([a-zA-Z][a-zA-Z0-9_-]*)(,[a-zA-Z][a-zA-Z0-9_-]*)*)?$ - + This option will load the entire 'database' VCF file into memory (which may not be practical for large 'database' VCF files). - Otherwise, both the database and the input VCF files should be sorted by position (Chromosome sort order can differ between files). + Otherwise, both the database and the input VCF files should be sorted by position (Chromosome sort order can differ between files). @@ -54,7 +56,7 @@ - + + diff -r 6bf58286d795 -r ed810da439cc snpSift_caseControl.xml --- a/snpSift_caseControl.xml Tue Oct 13 17:31:24 2015 -0400 +++ b/snpSift_caseControl.xml Tue Jun 07 09:41:13 2016 -0400 @@ -1,6 +1,6 @@ - + Count samples are in 'case' and 'control' groups. - @@ -8,17 +8,19 @@ - - java -Xmx1G -jar \$SNPEFF_JAR_PATH/SnpSift.jar caseControl -q - #if $name.__str__.strip() != '': - -name $name + + $output + "$input" > "$output" +]]> @@ -28,7 +30,7 @@ - + Case and control are defined by a string containing plus and minus symbols {'+', '-', '0'} where '+' is case, '-' is control and '0' is neutral @@ -84,17 +86,17 @@ - + +]]> + + diff -r 6bf58286d795 -r ed810da439cc snpSift_extractFields.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/snpSift_extractFields.xml Tue Jun 07 09:41:13 2016 -0400 @@ -0,0 +1,220 @@ + + + from a VCF file inot a tabular file + + snpSift_macros.xml + + + + + "$output" +]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 6bf58286d795 -r ed810da439cc snpSift_filter.xml --- a/snpSift_filter.xml Tue Oct 13 17:31:24 2015 -0400 +++ b/snpSift_filter.xml Tue Jun 07 09:41:13 2016 -0400 @@ -1,56 +1,60 @@ - - + Filter variants using arbitrary expressions snpSift_macros.xml - - java -Xmx6G -jar \$SNPEFF_JAR_PATH/SnpSift.jar filter -f $input -e $exprFile $inverse + + + 0: + #if $filtering.replace.filterId and len(str($filtering.replace.filterId).strip()) > 0: --filterId "$filtering.replace.filterId" #end if #end if - #if $filtering.addFilter and len($filtering.addFilter.__str__.strip()) > 0: + #if $filtering.addFilter and len(str($filtering.addFilter).strip()) > 0: --addFilter "$filtering.addFilter" #end if - #if $filtering.rmFilter and len($filtering.rmFilter.__str__.strip()) > 0: + #if $filtering.rmFilter and len(str($filtering.rmFilter).strip()) > 0: --rmFilter "$filtering.rmFilter" #end if #end if - > $output + > "$output" +]]> $expr#slurp - + - + + + - + - - - - + + @@ -85,7 +89,7 @@ - + @@ -100,7 +104,7 @@ - + @@ -111,7 +115,7 @@ - + 1000000 ) & ( POS < 2000000 ) - *Filter value is either 'PASS' or it is missing*: :: - (FILTER = 'PASS') | ( na FILTER ) + (FILTER = 'PASS') | ( na FILTER ) - - *I want to filter lines with an EFF of 'frameshift_variant' ( for vcf files using Sequence Ontology terms )*: + - *I want to filter lines with an ANN annotation EFFECT of 'frameshift_variant' ( for vcf files using Sequence Ontology terms )*: :: + + ( ANN[*].EFFECT has 'frameshift_variant' ) - ( EFF[*].EFFECT = 'frameshift_variant' ) + **Important** According to the specification, there can be more than one EFFECT separated by & (e.g. 'missense_variant&splice_region_variant', thus using has operator is better than using equality operator (=). For instance 'missense_variant&splice_region_variant' = 'missense_variant' is false, whereas 'missense_variant&splice_region_variant' has 'missense_variant' is true. - *I want to filter lines with an EFF of 'FRAME_SHIFT' ( for vcf files using Classic Effect names )*: :: - + ( EFF[*].EFFECT = 'FRAME_SHIFT' ) - *I want to filter out samples with quality less than 30*: :: - ( QUAL > 30 ) + ( QUAL > 30 ) - *...but we also want InDels that have quality 20 or more*: :: - (( exists INDEL ) & (QUAL >= 20)) | (QUAL >= 30 ) - + (( exists INDEL ) & (QUAL >= 20)) | (QUAL >= 30 ) + - *...or any homozygous variant present in more than 3 samples*: :: - (countHom() > 3) | (( exists INDEL ) & (QUAL >= 20)) | (QUAL >= 30 ) - + (countHom() > 3) | (( exists INDEL ) & (QUAL >= 20)) | (QUAL >= 30 ) + - *...or any heterozygous sample with coverage 25 or more*: :: - ((countHet() > 0) & (DP >= 25)) | (countHom() > 3) | (( exists INDEL ) & (QUAL >= 20)) | (QUAL >= 30 ) - + ((countHet() > 0) & (DP >= 25)) | (countHom() > 3) | (( exists INDEL ) & (QUAL >= 20)) | (QUAL >= 30 ) + - *I want to keep samples where the genotype for the first sample is homozygous variant and the genotype for the second sample is reference*: :: - - (isHom( GEN[0] ) & isVariant( GEN[0] ) & isRef( GEN[1] )) + + (isHom( GEN[0] ) & isVariant( GEN[0] ) & isRef( GEN[1] )) **For information regarding HGVS and Sequence Ontology terms versus classic names**: @@ -183,7 +189,7 @@ @EXTERNAL_DOCUMENTATION@ http://snpeff.sourceforge.net/SnpSift.html#filter -@CITATION_SECTION@ - +]]> + diff -r 6bf58286d795 -r ed810da439cc snpSift_int.xml --- a/snpSift_int.xml Tue Oct 13 17:31:24 2015 -0400 +++ b/snpSift_int.xml Tue Jun 07 09:41:13 2016 -0400 @@ -1,6 +1,6 @@ - + Filter variants using intervals - @@ -8,13 +8,15 @@ - - java -Xmx2G -jar \$SNPEFF_JAR_PATH/SnpSift.jar intervals -i $input $exclude $bedFile > $output + + "$output" +]]> - @@ -44,14 +46,14 @@ - + + diff -r 6bf58286d795 -r ed810da439cc snpSift_macros.xml --- a/snpSift_macros.xml Tue Oct 13 17:31:24 2015 -0400 +++ b/snpSift_macros.xml Tue Jun 07 09:41:13 2016 -0400 @@ -1,7 +1,7 @@ - snpEff + snpEff @@ -10,6 +10,10 @@ + + java -jar "$SNPEFF_JAR_PATH/snpEff.jar" -version + + 4.1 For details about this tool, please go to: diff -r 6bf58286d795 -r ed810da439cc snpSift_rmInfo.xml --- a/snpSift_rmInfo.xml Tue Oct 13 17:31:24 2015 -0400 +++ b/snpSift_rmInfo.xml Tue Jun 07 09:41:13 2016 -0400 @@ -1,12 +1,14 @@ - + remove INFO field annotations snpSift_macros.xml - - java -Xmx2G -jar \$SNPEFF_JAR_PATH/SnpSift.jar rmInfo $input ' '.join($info_fields.split(',')) > $output + + "$output" +]]> @@ -39,18 +41,18 @@ - + + diff -r 6bf58286d795 -r ed810da439cc snpSift_vartype.xml --- a/snpSift_vartype.xml Tue Oct 13 17:31:24 2015 -0400 +++ b/snpSift_vartype.xml Tue Jun 07 09:41:13 2016 -0400 @@ -1,12 +1,14 @@ - + Annotate with variant type snpSift_macros.xml - - java -jar \$SNPEFF_JAR_PATH/SnpSift.jar varType $input 2> $log > $output + + "$log" > "$output" +]]> @@ -17,7 +19,7 @@ - + diff -r 6bf58286d795 -r ed810da439cc snpSift_vcfCheck.xml --- a/snpSift_vcfCheck.xml Tue Oct 13 17:31:24 2015 -0400 +++ b/snpSift_vcfCheck.xml Tue Jun 07 09:41:13 2016 -0400 @@ -1,12 +1,14 @@ - + basic checks for Vcf specification compliance snpSift_macros.xml - - java -Xmx2G -jar \$SNPEFF_JAR_PATH/SnpSift.jar vcfCheck $input > $output + + "$output" +]]> @@ -24,16 +26,16 @@ - + + diff -r 6bf58286d795 -r ed810da439cc tool_dependencies.xml --- a/tool_dependencies.xml Tue Oct 13 17:31:24 2015 -0400 +++ b/tool_dependencies.xml Tue Jun 07 09:41:13 2016 -0400 @@ -1,6 +1,6 @@ - - + +