|
0
|
1 <tool id="vep-unico" name="vep-unico" version="1.0.0">
|
|
|
2 <description>
|
|
|
3 wrapper for variant-effect-predictor86 and vcf2maf
|
|
|
4 </description>
|
|
|
5 <macros>
|
|
|
6 <import>vep-unico-macros.xml</import>
|
|
|
7 <import>vcf2maf-macros.xml</import>
|
|
|
8 <import>vep-download-cache-macros.xml</import>
|
|
|
9 <import>vep-annotate-macros.xml</import>
|
|
|
10 </macros>
|
|
|
11 <requirements>
|
|
|
12 <requirement type="package" version="86">variant-effect-predictor</requirement>
|
|
|
13 <requirement type="package" version="1.3.1">samtools</requirement>
|
|
|
14 </requirements>
|
|
|
15 <command><![CDATA[
|
|
|
16 #if str($veptools.veptoolsselect) =="downloadcache"
|
|
|
17
|
|
|
18 cd \$CONDA_DEFAULT_ENV && [[ -d vep_cache ]] || mkdir vep_cache ;
|
|
|
19 cd bin && perl vep_install.pl
|
|
|
20 -a ac -s $veptools.species
|
|
|
21 --NO_HTSLIB
|
|
|
22 --CACHEDIR \$CONDA_DEFAULT_ENV/vep_cache;
|
|
|
23 ## write the cache file downloaded
|
|
|
24 echo "CACHE DOWNLOADED YET">$output1;
|
|
|
25 ls \$CONDA_DEFAULT_ENV/vep_cache/*/ >> $output1;
|
|
|
26 #end if
|
|
|
27
|
|
|
28
|
|
|
29 #if str($veptools.veptoolsselect) =="annotate"
|
|
|
30 perl \$CONDA_DEFAULT_ENV/bin/variant_effect_predictor.pl
|
|
|
31 --fork \${GALAXY_SLOTS:-4}
|
|
|
32 --offline
|
|
|
33 --dir \$CONDA_DEFAULT_ENV/vep_cache
|
|
|
34 --force_overwrite
|
|
|
35 #if $veptools.everything.value
|
|
|
36 --everything
|
|
|
37 #end if
|
|
|
38 --species $veptools.species
|
|
|
39 --buffer_size $veptools.buffer
|
|
|
40 --vcf
|
|
|
41 --input_file $veptools.input
|
|
|
42 --output_file $output2
|
|
|
43 --stats_file stat.htm
|
|
|
44 #end if
|
|
|
45
|
|
|
46
|
|
|
47 #if str($veptools.veptoolsselect) =="vcf2maf"
|
|
|
48 ln -s $veptools.input_vcf ./input.vcf;
|
|
|
49 perl $__tool_directory__/vcf2maf.pl
|
|
|
50 --input-vcf ./input.vcf
|
|
|
51 --output-maf $output_maf
|
|
|
52 --vep-forks 1
|
|
|
53 --tumor-id $veptools.tumour_id
|
|
|
54 --normal-id $veptools.normal_id
|
|
|
55 --buffer-size $veptools.buffer
|
|
|
56 --vep-path \$CONDA_DEFAULT_ENV/bin/
|
|
|
57 --vep-data \$CONDA_DEFAULT_ENV/vep_cache
|
|
|
58 --ref-fasta $veptools.reference
|
|
|
59 --species $veptools.species;
|
|
|
60
|
|
|
61 #end if
|
|
|
62 ]]>
|
|
|
63 </command>
|
|
|
64 <inputs>
|
|
|
65 <conditional name="veptools">
|
|
|
66 <param name="veptoolsselect" type="select" label="vep">
|
|
|
67 <option value="downloadcache" selected="true">vep-download-cache</option>
|
|
|
68 <option value="annotate">vep-annotate</option>
|
|
|
69 <option value="vcf2maf">vcf2maf</option>
|
|
|
70 </param>
|
|
|
71 <when value="downloadcache">
|
|
|
72 <expand macro="list-cache"/>
|
|
|
73 </when>
|
|
|
74 <when value="annotate">
|
|
|
75 <expand macro="vep-annotate-inputs-macro"/>
|
|
|
76 <expand macro="list-cache-annotate"/>
|
|
|
77 </when>
|
|
|
78 <when value="vcf2maf">
|
|
|
79 <expand macro="vcf2maf-inputs-macro"/>
|
|
|
80 <expand macro="list-vcf2maf"/>
|
|
|
81 </when>
|
|
|
82 </conditional>
|
|
|
83 </inputs>
|
|
|
84 <outputs>
|
|
|
85 <!--vep-download-cache-outputs-->
|
|
|
86 <data format="txt" name="output1" label="cache downloaded">
|
|
|
87 <filter>veptools['veptoolsselect'] == 'downloadcache'</filter>
|
|
|
88 </data>
|
|
|
89 <!--vep-annotate-outputs-->
|
|
|
90 <data format="vcf" name="output2" label="vep-annotated on ${on_string} ">
|
|
|
91 <filter>veptools['veptoolsselect'] == 'annotate'</filter>
|
|
|
92 </data>
|
|
|
93 <data format="html" name="stat" from_work_dir="stat.htm" label="stat on ${on_string}">
|
|
|
94 <filter>veptools['veptoolsselect'] == 'annotate'</filter>
|
|
|
95 </data>
|
|
|
96 <!--vcf2maf-outputs-->
|
|
|
97 <data name="output_maf" format="maf" label="vcf2maf on ${on_string} ">
|
|
|
98 <filter>veptools['veptoolsselect'] == 'vcf2maf'</filter>
|
|
|
99 </data>
|
|
|
100 </outputs>
|
|
|
101 <stdio>
|
|
|
102 <exit_code range="1:" level="fatal" description="Failure" />
|
|
|
103 </stdio>
|
|
|
104 <citations>
|
|
|
105 <citation type="doi">10.1186/s13059-016-0974-4</citation>
|
|
|
106 </citations>
|
|
|
107 <help>
|
|
|
108 **IMPORTANT**
|
|
|
109 before running vep_annotate or vcf2maf tool for the first time you have to download the cache file using vep_download_cache
|
|
|
110
|
|
|
111 **what it does**
|
|
|
112
|
|
|
113 - **vep_annotate** determines the effect of your variants (SNPs, insertions, deletions, CNVs or structural variants) on genes, transcripts, and protein sequence, as well as regulatory regions.
|
|
|
114
|
|
|
115 - **vep_download_cache** download the cache file, used by vep v.86.It is a file containing all transcript models, regulatory features and variant data for a species.
|
|
|
116
|
|
|
117 - **vcf2maf** convert vcf in MAF format calling vep_annotate.
|
|
|
118
|
|
|
119 </help>
|
|
|
120 </tool>
|