comparison varscan_mpileup2snp.xml @ 1:9a39c4105901 draft default tip

planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/galaxy-tool-shed-tools commit bd543e68c1af82bcd6a04f0ae3d1180e8887e122
author erasmus-medical-center
date Wed, 15 Feb 2017 16:16:01 -0500
parents 0c5cc5763091
children
comparison
equal deleted inserted replaced
0:0c5cc5763091 1:9a39c4105901
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <tool id="varscan_mpileup2snp" name="VarScan2 Call SNPs from a mpileup file" version="2.3.6.a"> 2 <tool id="varscan_mpileup2snp" name="VarScan2 Call SNPs from a mpileup file" version="2.4.2.a">
3 <description>VarScan2 SNP/SNV detection; directly from a *.mpileup file.</description> 3 <description>VarScan2 SNP/SNV detection; directly from a *.mpileup file.</description>
4 4
5 <requirements> 5 <requirements>
6 <requirement type="package" version="2.3.6">varscan</requirement> 6 <requirement type="package" version="2.4.2">varscan</requirement>
7 </requirements> 7 </requirements>
8 8
9 <version_command>java -jar $JAVA_JAR_PATH/VarScan.v2.3.6.jar 2>&amp;1 | head -n 1</version_command> 9 <version_command>varscan 2&gt;&amp;1 | head -n 1</version_command>
10 10
11 <command> 11 <command detect_errors="exit_code"><![CDATA[
12 cat $mpileup_input | java 12 varscan mpileup2snp
13 -Xmx64G 13
14 -jar \$JAVA_JAR_PATH/VarScan.v2.3.6.jar 14 '${mpileup_input}'
15 mpileup2snp 15
16 16 #if $extended_parameters.parameters == "extended"
17 #if $extended_parameters.parameters == "extended" 17 --min-coverage $extended_parameters.varscan_min_coverage
18 --min-coverage $extended_parameters.varscan_min_coverage 18 --min-reads2 $extended_parameters.varscan_min_reads2
19 --min-reads2 $extended_parameters.varscan_min_reads2 19 --min-avg-qual $extended_parameters.varscan_min_avg_qual
20 --min-avg-qual $extended_parameters.varscan_min_avg_qual 20 --min-var-freq $extended_parameters.varscan_min_var_freq
21 --min-var-freq $extended_parameters.varscan_min_var_freq 21 --min-freq-for-hom $extended_parameters.varscan_min_freq_for_hom
22 --min-freq-for-hom $extended_parameters.varscan_min_freq_for_hom 22 --p-value $extended_parameters.varscan_p_value
23 --p-value $extended_parameters.varscan_p_value 23 $extended_parameters.varscan_strand_filter
24 $extended_parameters.varscan_strand_filter 24 $extended_parameters.varscan_variants
25 $extended_parameters.varscan_variants 25 #end if
26 #end if 26
27 27 #if $varscan_output == "vcf" or $varscan_output.value == "vcf"
28 #if $varscan_output == "vcf" or $varscan_output.value == "vcf" 28 --output-vcf 1
29 --output-vcf 1 29 #end if
30 #end if 30
31 31 > '${snv_output}'
32 2> stderr.txt 32 ]]></command>
33 > $snv_output ;
34 cat stderr.txt
35 </command>
36 33
37 <inputs> 34 <inputs>
38 <param format="pileup" name="mpileup_input" type="data" label="Alignment file" help="Mapped reads in mpileup format."/><!-- datatype "mpileup" does not exist.. it seems to be common to use pileup instead? --> 35 <param format="pileup" name="mpileup_input" type="data" label="Alignment file" help="Mapped reads in mpileup format."/><!-- datatype "mpileup" does not exist.. it seems to be common to use pileup instead? -->
39 36
40 <conditional name="extended_parameters"> 37 <conditional name="extended_parameters">
76 <param name="parameters" value="default" /> 73 <param name="parameters" value="default" />
77 <param name="varscan_output_vcf" value="1" /> 74 <param name="varscan_output_vcf" value="1" />
78 75
79 <output name="snv_output" file="hg19_mutant.vcf" /> 76 <output name="snv_output" file="hg19_mutant.vcf" />
80 </test> 77 </test>
78 <test>
79 <param name="mpileup_input" value="hg19_mutant.mpileup" dbkey="hg19" ftype="pileup" />
80 <param name="parameters" value="extended" />
81
82 <param name="varscan_min_coverage" value="8" />
83 <param name="varscan_min_reads2" value="2" />
84 <param name="varscan_min_avg_qual" value="15" />
85 <param name="varscan_min_var_freq" value="0.01" />
86 <param name="varscan_min_freq_for_hom" value="0.75" />
87 <param name="varscan_p_value" value="0.99" />
88 <param name="varscan_strand_filter" value=" --strand_filter 1" />
89 <param name="varscan_variants" value=" --variants 0" />
90
91 <param name="varscan_output_vcf" value="1" />
92
93 <output name="snv_output" file="hg19_mutant.2.vcf" />
94 </test>
81 </tests> 95 </tests>
82 96
83 <help> 97 <help>
84 **VarScan 2.3.6** 98 **VarScan 2.4.2**
85 99
86 VarScan is a platform-independent mutation caller for targeted, exome, and whole-genome resequencing data generated on Illumina, SOLiD, Life/PGM, Roche/454, and similar instruments. The newest version, VarScan 2, is written in Java, so it runs on most operating systems. 100 VarScan is a platform-independent mutation caller for targeted, exome, and whole-genome resequencing data generated on Illumina, SOLiD, Life/PGM, Roche/454, and similar instruments. The newest version, VarScan 2, is written in Java, so it runs on most operating systems.
87 http://dx.doi.org/10.1101/gr.129684.111 101 http://dx.doi.org/10.1101/gr.129684.111
88 http://www.ncbi.nlm.nih.gov/pubmed/19542151 102 http://www.ncbi.nlm.nih.gov/pubmed/19542151
89 103
90 *VarScan* requires mpileup formatted input files, which are generally derived from BAM files. Since mpileup files can become humongous, the interim step of storing it is bypassed. Thus, in this wrapper one or multiple BAM/SAM files go in, get processed into a mpileup file and get directly linked to VarScan. 104 *VarScan* requires mpileup formatted input files, which are generally derived from BAM files. Since mpileup files can become humongous, the interim step of storing it is bypassed. Thus, in this wrapper one or multiple BAM/SAM files go in, get processed into a mpileup file and get directly linked to VarScan.
91 The samtools package is not able to parallelize the mpileup generation which make it a very slow process. 105 The samtools package is not able to parallelize the mpileup generation which make it a very slow process.
92 Other people were aware of this and have written a version that can do parallelization: 106 Other people were aware of this and have written a version that can do parallelization:
93 https://github.com/mydatascience/parallel-mpileup 107 https://github.com/mydatascience/parallel-mpileup
94 108
95 Consequently, when a BAM files gets processed by this wrapper, it's processed by *parallel-mpileup* before its send to VarScan.
96
97 .. _VarScan: http://varscan.sourceforge.net/ 109 .. _VarScan: http://varscan.sourceforge.net/
98 110
99 **Input formats** 111 **Input formats**
100 112
101 VarScan2 accepts sequencing alignments in the same, either SAM or BAM format (http://samtools.sourceforge.net/). The alignment files have to be linked to a reference genome by galaxy. This is indicated under every history item with e.g.: *"database: hg19"* for a link to hg19, or *"database: ?"* if the link is missing. 113 VarScan2 accepts sequencing alignments in the same, either SAM or BAM format (http://samtools.sourceforge.net/). The alignment files have to be linked to a reference genome by galaxy. This is indicated under every history item with e.g.: *"database: hg19"* for a link to hg19, or *"database: ?"* if the link is missing.
102 114
103 **Installation**
104
105 Make sure your reference genomes are properly annotated in "tool-data/all_fasta.loc", and linked to the names of the reference used for alignment.
106
107 **License**
108
109 * VarScan2.3.6: Non-Profit Open Software License 3.0 (Non-Profit OSL 3.0)
110 * parallel-mpileup: MIT License (https://github.com/mydatascience/parallel-mpileup/blob/master/samtools-0.1.19/COPYING)
111
112 Contact
113 -------
114
115 The tool wrapper has been written by Youri Hoogstrate from the Erasmus
116 Medical Center (Rotterdam, Netherlands) on behalf of the Translational
117 Research IT (TraIT) project:
118
119 http://www.ctmm.nl/en/programmas/infrastructuren/traitprojecttranslationeleresearch
120
121 More tools by the Translational Research IT (TraIT) project can be found
122 in the following toolsheds:
123
124 http://toolshed.dtls.nl/
125
126 http://toolshed.g2.bx.psu.edu/
127
128 http://testtoolshed.g2.bx.psu.edu/
129 </help> 115 </help>
130 <citations> 116 <citations>
131 <citation type="doi">10.1101/gr.129684.111</citation> 117 <citation type="doi">10.1101/gr.129684.111</citation>
132 </citations> 118 </citations>
133 </tool> 119 </tool>