annotate varscan_mpileup2snp_from_bam.xml @ 0:0c5cc5763091 draft

planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
author yhoogstrate
date Thu, 05 Nov 2015 09:59:46 -0500
parents
children 9a39c4105901
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
2 <tool id="varscan_mpileup2snp_from_bam" name="VarScan2 Call SNPs from BAM" version="2.3.6.a">
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
3 <description>VarScan2 SNP/SNV detection; directly reading *.bam file(s) &amp; using parallel mpileup generation, to avoid unnecessairy I/O overhead and increase performance.</description>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
4
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
5 <requirements>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
6 <requirement type="package" version="0.1.19-a">samtools_parallel_mpileup</requirement>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
7 <requirement type="package" version="0.1.19">samtools</requirement>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
8 <requirement type="package" version="2.3.6">varscan</requirement>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
9 </requirements>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
10
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
11 <version_command>java -jar $JAVA_JAR_PATH/VarScan.v2.3.6.jar 2>&amp;1 | head -n 1</version_command>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
12
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
13 <command>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
14 #if $reference_genome_source.source_select == "attribute" and len({ alignment.metadata.dbkey:True for alignment in $alignments }.keys()) != 1
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
15 echo "Invalid number of dbkeys are found: ${ len({ alignment.metadata.dbkey:True for alignment in $alignments }.keys()) }, while only one should be used. Make sure that the alignments are done on the same reference genome and that 'tool-data/all_fasta.loc' is configured properly!" >&amp;2
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
16 #else
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
17 #import os.path
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
18 #for $alignment in $alignments
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
19 <!-- @todo use the existence of $alignment.metadata.bam_index or $alignment.metadata['bam_index'] -->
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
20 #if not os.path.isfile(str($alignment)+".bai")
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
21 echo "- Indexing alignment file: $alignment.name " ;
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
22 samtools index $alignment 2>&amp;1 ;
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
23 #else
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
24 echo "- Skiping indexing: $alignment.name " ;
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
25 #end if
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
26 #end for
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
27
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
28 #if $mpileup_parallelization.mpileup_parallelization_select == "true"
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
29 samtools-parallel-mpileup mpileup
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
30 -t $mpileup_parallelization.samtools_threads
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
31 #else
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
32 samtools mpileup
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
33 #end if
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
34 -f
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
35 #if $reference_genome_source.source_select == "indexed_filtered"
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
36 "$reference_genome_source.reference_genome"
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
37 #else if $reference_genome_source.source_select == "indexed_all"
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
38 "$reference_genome_source.reference_genome"
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
39 #else if $reference_genome_source.source_select == "history"
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
40 "$reference_genome_source.reference_genome"
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
41 #else
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
42 <!--
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
43 This is a workaround to obtain the "genome.fa" file that
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
44 corresponds to the dbkey of the alignments.
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
45 Because this file is "calculated" during run-time, it can
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
46 be used in a workflow.
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
47 -->
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
48 "${ filter( lambda x: str( x[0] ) == str( { alignment.metadata.dbkey:True for alignment in $alignments }.keys()[0] ), $__app__.tool_data_tables[ 'all_fasta' ].get_fields() )[0][-1] }"
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
49 #end if
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
50
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
51 #if $extended_parameters_regions.samtools_regions == "region"
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
52 -r $extended_parameters_regions.samtools_r
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
53 #elif $extended_parameters_regions.samtools_regions == "regions_file_pos" or $extended_parameters_regions.samtools_regions == "regions_file_bed"
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
54 -l $extended_parameters_regions.samtools_l
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
55 #end if
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
56
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
57 #if $extended_parameters.parameters == "extended"
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
58 $extended_parameters.samtools_6
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
59 $extended_parameters.samtools_A
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
60 $extended_parameters.samtools_B
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
61 -C $extended_parameters.samtools_C
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
62 -d $extended_parameters.samtools_d
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
63 $extended_parameters.samtools_E
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
64 -M $extended_parameters.samtools_M
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
65 $extended_parameters.samtools_R
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
66 -q $extended_parameters.samtools_q
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
67 -Q $extended_parameters.samtools_Q
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
68
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
69 -e $extended_parameters.samtools_e
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
70 -F $extended_parameters.samtools_F
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
71 -h $extended_parameters.samtools_h
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
72 $extended_parameters.samtools_I
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
73 -L $extended_parameters.samtools_L
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
74 -m $extended_parameters.samtools_m
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
75 -o $extended_parameters.samtools_o
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
76 $extended_parameters.samtools_p
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
77 -P $extended_parameters.samtools_P
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
78 #end if
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
79
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
80 #for $alignment in $alignments
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
81 ${alignment}
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
82 #end for
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
83 2>stderr_1.txt
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
84
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
85 #if $mpileup_parallelization.mpileup_parallelization_select == "true"
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
86 #if $mpileup_parallelization.sort_mpileup
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
87 | sort -k1,1V -k2,2g
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
88 #end if
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
89 #end if
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
90
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
91 ## Make for every MPILEUP file an
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
92 ## http://en.wikipedia.org/wiki/Named_pipe
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
93
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
94 | java
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
95 -Xmx64G
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
96 -jar \$JAVA_JAR_PATH/VarScan.v2.3.6.jar
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
97 mpileup2snp
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
98
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
99 #if $extended_parameters.parameters == "extended"
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
100 --min-coverage $extended_parameters.varscan_min_coverage
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
101 --min-reads2 $extended_parameters.varscan_min_reads2
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
102 --min-avg-qual $extended_parameters.varscan_min_avg_qual
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
103 --min-var-freq $extended_parameters.varscan_min_var_freq
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
104 --min-freq-for-hom $extended_parameters.varscan_min_freq_for_hom
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
105 --p-value $extended_parameters.varscan_p_value
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
106 $extended_parameters.varscan_strand_filter
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
107 $extended_parameters.varscan_variants
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
108 #end if
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
109
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
110 #if $varscan_output == "vcf" or $varscan_output.value == "vcf"
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
111 --output-vcf 1
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
112 #end if
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
113
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
114 2>stderr_2.txt
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
115 > $snv_output ;
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
116
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
117
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
118 echo "---------------[ mpileup generation ]---------------" ;
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
119 cat stderr_1.txt ;
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
120 echo "" ;
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
121 echo "---------------[ VarScan SNP detect ]---------------" ;
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
122 cat stderr_2.txt ;
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
123 echo "" ;
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
124 echo "----------------------------------------------------" ;
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
125 #end if
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
126 </command>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
127
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
128 <inputs>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
129 <param format="bam,sam" multiple="true" name="alignments" type="data" label="Alignment file(s)" help="Mapped reads in BAM or SAM format."/>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
130
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
131 <!-- Find out how to access the reference genome from the BAM file(s) -->
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
132 <conditional name="reference_genome_source">
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
133 <param name="source_select" type="select" label="Fasta Source">
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
134 <option value="indexed_filtered">Use a built-in index (which fits your reference)</option>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
135 <option value="history">Use reference from the history</option>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
136 <option value="indexed_all">Use a built-in index (entire list) - avoid this option if possible; only useful if you design a workflow</option>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
137 <option value="attribute">Use a built-in index based on the 'metadata.dbkey' attribute; ideal in workflows</option>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
138 </param>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
139 <when value="history">
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
140 <param name="reference_genome" format="fasta" type="data" label="Reference Genome used during alignment (FASTA)" help="Reference genome (genome.fa) that corresponds to the *.bam file." />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
141 </when>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
142 <when value="indexed_filtered">
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
143 <param name="reference_genome" type="select" label="Reference Genome used during alignment (FASTA)" >
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
144 <options from_data_table="all_fasta">
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
145 <column name="name" index="2"/>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
146 <column name="dbkey" index="1"/>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
147 <column name="value" index="3"/><!-- Value is the path of the fasta file -->
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
148 <filter type="data_meta" ref="alignments" multiple="false" key="dbkey" column="1" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
149 <validator type="no_options" message="No indexes are available for the selected input dataset" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
150 </options>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
151 </param>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
152 </when>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
153 <when value="indexed_all">
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
154 <param name="reference_genome" type="select" label="Reference Genome used during alignment (FASTA)" >
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
155 <options from_data_table="all_fasta">
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
156 <column name="name" index="2"/>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
157 <column name="dbkey" index="1"/>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
158 <column name="value" index="3"/><!-- Value is the path of the fasta file -->
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
159 <validator type="no_options" message="No indexes are available for the selected input dataset" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
160 </options>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
161 </param>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
162 </when>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
163 <when value="attribute" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
164 </conditional>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
165
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
166 <conditional name="extended_parameters_regions">
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
167 <param name="samtools_regions" type="select" label="Region specific parameters" help="Let samtools target specific genomic locations.">
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
168 <option value="entire_genome">Entire genome</option>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
169 <option value="region">Specific region</option>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
170 <option value="regions_file_pos">Specific positions (file); list of positions</option>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
171 <option value="regions_file_bed">Specific regions (file); list of regions in BED</option>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
172 </param>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
173 <when value="entire_genome" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
174 <when value="region">
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
175 <param type="text" name="samtools_r" label="Samtools: region in which pileup is generated" help="e.g. chrX or chr:pos or chr:start-end" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
176 </when>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
177 <when value="regions_file_pos">
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
178 <param type="data" name="samtools_l" format="tabular" label="Samtools: list of positions (chr pos)" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
179 </when>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
180 <when value="regions_file_bed">
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
181 <param type="data" name="samtools_l" format="bed" label="Samtools: specific regions (BED)" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
182 </when>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
183 </conditional>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
184
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
185 <conditional name="mpileup_parallelization">
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
186 <param name="mpileup_parallelization_select" type="select" label="Use parallelization for the mpileup generation (experimental)" help="Especially if larger numbers of bam/sam files are processed, or the file infrastructure is optimized for IO-paralellization, this feature might improve performance.">
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
187 <option value="false" >False - uses classical samtools</option>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
188 <option value="true">True - uses (experimental) samtools mpileup-parallel</option>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
189 </param>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
190 <when value="false" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
191 <when value="true">
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
192 <param type="integer" name="samtools_threads" value="2" min="1" label="Samtools: mpileup threads" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
193 <param type="boolean" name="sort_mpileup" truevalue="true" falsevalue="false" label="Sort mpileup file (SLOW)" help="Because parallelization may disrupt the outputs order, sorting can be conveniet for e.g. testing. Notice that this function has only use in a limited number of situations but consumes (much) resources. Only use it if it's really neccesairy." />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
194 </when>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
195 </conditional>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
196
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
197 <conditional name="extended_parameters">
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
198 <param name="parameters" type="select" label="Advanced parameters" help="For more advanced VarScan and samtools settings.">
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
199 <option value="default">Default settings</option>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
200 <option value="extended">Extended settings</option>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
201 </param>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
202 <when value="default" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
203 <when value="extended">
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
204 <param type="boolean" name="samtools_6" falsevalue="" truevalue=" -6" label="Samtools: assume the quality is in the Illumina-1.3+ encoding" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
205 <param type="boolean" name="samtools_A" falsevalue="" truevalue=" -A" label="Samtools: count anomalous read pairs" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
206 <param type="boolean" name="samtools_B" falsevalue="" truevalue=" -B" label="Samtools: disable BAQ computation" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
207 <param type="integer" name="samtools_C" value="0" label="Samtools: parameter for adjusting mapQ; 0 to disable [0]" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
208 <param type="integer" name="samtools_d" value="250" label="Samtools: max per-BAM depth to avoid excessive memory usage [250]" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
209 <param type="boolean" name="samtools_E" falsevalue="" truevalue=" -E" label="Samtools: recalculate extended BAQ on the fly thus ignoring existing BQs" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
210 <param type="integer" name="samtools_M" value="60" label="cap mapping quality at INT [60]" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
211 <param type="boolean" name="samtools_R" falsevalue="" truevalue=" -R" label="Samtools: ignore RG tags" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
212 <param type="integer" name="samtools_q" value="0" label="Samtools: skip alignments with mapQ smaller than INT [0]" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
213 <param type="integer" name="samtools_Q" value="13" label="Samtools: skip bases with baseQ/BAQ smaller than INT [13]" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
214
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
215 <param type="integer" name="samtools_e" value="20" label="Samtools: Phred-scaled gap extension seq error probability [20]" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
216 <param type="float" name="samtools_F" value="0.002" label="Samtools: minimum fraction of gapped reads for candidates [0.002]" help="Alias: -F" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
217 <param type="integer" name="samtools_h" value="100" label="Samtools: coefficient for homopolymer errors [100]" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
218 <param type="boolean" name="samtools_I" falsevalue="" truevalue=" -I" label="Samtools: do not perform indel calling" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
219 <param type="integer" name="samtools_L" value="250" label="Samtools: max per-sample depth for INDEL calling [250]" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
220 <param type="integer" name="samtools_m" value="1" label="Samtools: minimum gapped reads for indel candidates [1]" help="Alias: -m" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
221 <param type="integer" name="samtools_o" value="40" label="Samtools: Phred-scaled gap open sequencing error probability [40]" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
222 <param type="boolean" name="samtools_p" falsevalue="" truevalue=" -p" label="Samtools: apply -m and -F per-sample to increase sensitivity" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
223 <param type="text" name="samtools_P" value="all" label="Samtools: comma separated list of platforms for indels [all]" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
224
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
225 <param type="integer" name="varscan_min_coverage" value="8" label="VarScan: Minimum read depth at a position to make a call [8]" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
226 <param type="integer" name="varscan_min_reads2" value="2" label="VarScan: PMinimum supporting reads at a position to call variants [2]" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
227 <param type="integer" name="varscan_min_avg_qual" value="15" label="VarScan: Minimum base quality at a position to count a read [15]" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
228 <param type="float" name="varscan_min_var_freq" value="0.01" label="VarScan: minimum fraction of gapped reads for candidates [0.002]" help="Alias: -F" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
229 <param type="float" name="varscan_min_freq_for_hom" value="0.75" label="VarScan: Minimum frequency to call homozygote [0.75]" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
230 <param type="float" name="varscan_p_value" value="0.99" label="VarScan: Default p-value threshold for calling variants [99e-02]" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
231 <param type="boolean" name="varscan_strand_filter" falsevalue=" --strand_filter 0" truevalue=" --strand_filter 1" checked="true" label="VarScan: Ignore variants with >90% support on one strand [1]" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
232 <param type="boolean" name="varscan_variants" falsevalue=" --variants 0" truevalue=" --variants 1" checked="false" label="VarScan: Report only variant (SNP/indel) positions [0]" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
233 </when>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
234 </conditional>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
235
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
236 <param name="varscan_output" type="select" label="Output format">
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
237 <option value="vcf">VCF</option>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
238 <option value="tabular">tabular</option>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
239 </param>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
240 </inputs>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
241
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
242 <outputs>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
243 <data format="tabular" name="snv_output" label="${tool.name} on ${', '.join([ str(a.hid)+': '+a.name for a in $alignments ])}">
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
244 <change_format>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
245 <when input="varscan_output" value="vcf" format="vcf" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
246 </change_format>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
247 </data>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
248 </outputs>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
249
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
250 <tests>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
251 <test><!-- Use classical samtools -->
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
252 <param name="alignments" value="example.bam" ftype="bam" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
253
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
254 <param name="source_select" value="history" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
255 <param name="reference_genome" value="example.fa" ftypet="fasta" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
256
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
257 <param name="samtools_regions" value="entire_genome" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
258
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
259 <param name="mpileup_parallelization_select" value="false" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
260 <param name="sort_mpileup" value="true" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
261
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
262 <param name="parameters" value="default" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
263 <param name="varscan_output_vcf" value="1" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
264
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
265
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
266 <output name="snv_output" file="example.vcf" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
267 </test>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
268 <test><!-- Use parallelized samtools - @todo replace with sambamba! -->
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
269 <param name="alignments" value="example.bam" ftype="bam" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
270
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
271 <param name="source_select" value="history" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
272 <param name="reference_genome" value="example.fa" ftypet="fasta" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
273
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
274 <param name="samtools_regions" value="entire_genome" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
275
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
276 <param name="mpileup_parallelization_select" value="true" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
277 <param name="samtools_threads" value="2" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
278 <param name="sort_mpileup" value="true" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
279
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
280 <param name="parameters" value="default" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
281 <param name="varscan_output_vcf" value="1" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
282
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
283
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
284 <output name="snv_output" file="example.vcf" />
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
285 </test>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
286 </tests>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
287
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
288 <help>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
289 **VarScan 2.3.6**
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
290
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
291 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.
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
292 http://dx.doi.org/10.1101/gr.129684.111
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
293 http://www.ncbi.nlm.nih.gov/pubmed/19542151
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
294
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
295 *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.
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
296 The samtools package is not able to parallelize the mpileup generation which make it a very slow process.
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
297 Other people were aware of this and have written a version that can do parallelization:
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
298 https://github.com/mydatascience/parallel-mpileup
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
299
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
300 Consequently, when a BAM files gets processed by this wrapper, it's processed by *parallel-mpileup* before its send to VarScan.
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
301
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
302 .. _VarScan: http://varscan.sourceforge.net/
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
303
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
304 **Input formats**
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
305
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
306 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.
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
307
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
308 **Installation**
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
309
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
310 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.
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
311
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
312 **License**
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
313
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
314 * VarScan2.3.6: Non-Profit Open Software License 3.0 (Non-Profit OSL 3.0)
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
315 * parallel-mpileup: MIT License (https://github.com/mydatascience/parallel-mpileup/blob/master/samtools-0.1.19/COPYING)
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
316
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
317 Contact
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
318 -------
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
319
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
320 The tool wrapper has been written by Youri Hoogstrate from the Erasmus
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
321 Medical Center (Rotterdam, Netherlands) on behalf of the Translational
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
322 Research IT (TraIT) project:
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
323
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
324 http://www.ctmm.nl/en/programmas/infrastructuren/traitprojecttranslationeleresearch
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
325
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
326 More tools by the Translational Research IT (TraIT) project can be found
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
327 in the following toolsheds:
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
328
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
329 http://toolshed.dtls.nl/
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
330
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
331 http://toolshed.g2.bx.psu.edu/
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
332
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
333 http://testtoolshed.g2.bx.psu.edu/
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
334 </help>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
335 <citations>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
336 <citation type="doi">10.1101/gr.129684.111</citation>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
337 </citations>
0c5cc5763091 planemo upload for repository https://bitbucket.org/EMCbioinf/galaxy-tool-shed-tools commit 0bc9864516071632199ddf9a4ff403893060c99f
yhoogstrate
parents:
diff changeset
338 </tool>