Mercurial > repos > morinlab > vardictjava
comparison vardictjava.xml @ 0:fba18d3160d1 draft default tip
planemo upload for repository https://github.com/morinlab/tools-morinlab/tree/master/tools/vardictjava commit 4ef2d91b7c1686a2696b92fe538d4aec51d05e40-dirty
author | morinlab |
---|---|
date | Tue, 11 Oct 2016 14:37:45 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:fba18d3160d1 |
---|---|
1 <tool id="vardictjava" name="VarDictJava" version="1.4.6"> | |
2 <description> | |
3 calls SNVs and indels for tumour-normal pairs. | |
4 </description> | |
5 | |
6 <requirements> | |
7 <requirement type="package" version="5.18.1">perl</requirement> | |
8 <requirement type="package" version="3.2.1">R</requirement> | |
9 <requirement type="package" version="1.4.6">vardictjava</requirement> | |
10 <requirement type="set_environment">VARDICTJAVA_ROOT_DIR</requirement> | |
11 </requirements> | |
12 | |
13 <command detect_errors="aggressive"><![CDATA[ | |
14 ## LINK BAM INDEX | |
15 ln -s $normal ./normal.bam; | |
16 ln -s $normal.metadata.bam_index ./normal.bam.bai; | |
17 ln -s $tumour tumor.bam; | |
18 ln -s $tumour.metadata.bam_index ./tumor.bam.bai; | |
19 | |
20 ## INDEX REFERENCE FASTA FILE IF FROM HISTORY | |
21 #if $reference_source.reference_source_selector == "history": | |
22 ln -s $reference_source.ref_file ref.fa; | |
23 samtools faidx ref.fa; | |
24 #else if $reference_source.reference_source_selector == "cached" | |
25 ln -s $reference_source.ref_file.fields.path ref.fa; | |
26 ln -s ${reference_source.ref_file.fields.path}.fai ref.fa.fai; | |
27 #end if | |
28 | |
29 ## BUILD BED FILE FROM CHROMOSOME LIST | |
30 #if $interval_file: | |
31 grep -w -f $interval_file ref.fa.fai > chromosomes.fa.fai; | |
32 #else | |
33 ln -s ref.fa.fai chromosomes.fa.fai; | |
34 #end if | |
35 awk 'BEGIN {FS=OFS="\t"} {print $1, "1", $2}' chromosomes.fa.fai > regions.bed; | |
36 | |
37 ## BUILD VARDICT COMMAND | |
38 \$VARDICTJAVA_ROOT_DIR/build/install/VarDict/bin/VarDict | |
39 -b "./tumor.bam|./normal.bam" | |
40 -G ref.fa | |
41 -z | |
42 -th \${GALAXY_SLOTS:-1} | |
43 | |
44 ## ADVANCED OPTIONS | |
45 -f $advancedsettings.f | |
46 -k $advancedsettings.k | |
47 -r $advancedsettings.r | |
48 -B $advancedsettings.B | |
49 -Q $advancedsettings.Q | |
50 -q $advancedsettings.q | |
51 -m $advancedsettings.m | |
52 -T $advancedsettings.T | |
53 -X $advancedsettings.X | |
54 -P $advancedsettings.P | |
55 -o $advancedsettings.o | |
56 -O $advancedsettings.O | |
57 -V $advancedsettings.V | |
58 | |
59 ## CONSTRUCT VCF TABLE | |
60 -c 1 -S 2 -E 3 -g 4 | |
61 | |
62 ## REGION SPECIFICATION (ENTIRE CHROMOSOMES) | |
63 regions.bed | |
64 | |
65 ## POSTPROCESSING | |
66 | \$VARDICTJAVA_ROOT_DIR/VarDict/testsomatic.R | |
67 | \$VARDICTJAVA_ROOT_DIR/VarDict/var2vcf_somatic.pl | |
68 -f $advancedsettings.f | |
69 | |
70 > $all_variants; | |
71 | |
72 ## Filter for PASS variants | |
73 awk 'BEGIN {FS=OFS="\t"} substr(\$0, 1, 1) == "#" {print \$0; next} \$7 == "PASS" {print \$0}' $all_variants > $passed_variants | |
74 ]]></command> | |
75 | |
76 <inputs> | |
77 <conditional name="reference_source"> | |
78 <param name="reference_source_selector" type="select" label="Choose the source for the reference genome file"> | |
79 <option value="cached" selected="True">Use a built-in genome</option> | |
80 <option value="history">Use a genome from the history</option> | |
81 </param> | |
82 <when value="cached"> | |
83 <param name="ref_file" type="select" label="Reference Genome File"> | |
84 <options from_data_table="fasta_indexes"/> | |
85 </param> | |
86 </when> | |
87 <when value="history"> | |
88 <param name="ref_file" format="fasta" type="data" label="Reference Genome File" /> | |
89 </when> | |
90 </conditional> | |
91 | |
92 <param name="normal" type="data" format="bam" label="Normal Alignment File" /> | |
93 <param name="tumour" type="data" format="bam" label="Tumour Alignment File" /> | |
94 <param name="interval_file" type="data" format="txt" optional="true" label="Chromosomes" help="Restrict SNV calls to the following list of chromosomes (one per line)" /> | |
95 | |
96 <section name="advancedsettings" title="Advanced Settings" expanded="False"> | |
97 <param name="f" type="float" value="0.01" label="Minimum variant allele fraction" /> | |
98 <param name="k" type="integer" value="1" label="Set to 0 to disable local realignment" /> | |
99 <param name="r" type="integer" value="2" label="Minimum number of reads supporting the variant" /> | |
100 <param name="B" type="integer" value="2" label="Minimum number of reads for determining strand bias" /> | |
101 <param name="Q" type="integer" value="1" label="Minimum mapping quality for reads to be considered" /> | |
102 <param name="m" type="integer" value="8" label="Maximum number of mismatches before a read is no longer considered (gaps are not counted as mismatches)" /> | |
103 <param name="T" type="integer" value="0" label="Maximum number of bases considered from 5' end (default: 0, no trimming)" /> | |
104 <param name="X" type="integer" value="3" label="Maximum number of extended based after indel to look for mismatches" /> | |
105 <param name="P" type="integer" value="5" label="Maximum average read position for a variant to be considered." /> | |
106 <param name="q" type="integer" value="25" label="Minimum phred score for a base to be considered a good call" /> | |
107 <param name="o" type="float" value="1.5" label="Minimum quality ratio [(good_quality_reads)/(bad_quality_reads+0.5)] (based on definition of a good call; see previous option)" /> | |
108 <param name="O" type="float" value="0" label="Minimum average mapping quality" /> | |
109 <param name="V" type="float" value="0.05" label="Maximum allowed variant allele fraction in the normal sample" /> | |
110 </section> | |
111 </inputs> | |
112 | |
113 <outputs> | |
114 <data name="all_variants" format="vcf" label="VarDict SNVs and Indels (All)" /> | |
115 <data name="passed_variants" format="vcf" label="VarDict SNVs and Indels (Passed)" /> | |
116 </outputs> | |
117 | |
118 <help> | |
119 <![CDATA[ | |
120 https://github.com/AstraZeneca-NGS/VarDictJava | |
121 ]]> | |
122 </help> | |
123 | |
124 <citations> | |
125 <expand macro="morinlab_citation" /> | |
126 <expand macro="galaxy_citation" /> | |
127 <expand macro="vardict_citation" /> | |
128 </citations> | |
129 </tool> |