|
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>
|
|
3
|
14 <requirement type="package" version="1.0" >openssl</requirement>
|
|
4
|
15 <requirement type="package" version="1.7.2">perl-bioperl</requirement>
|
|
0
|
16 </requirements>
|
|
|
17 <command><![CDATA[
|
|
|
18 #if str($veptools.veptoolsselect) =="downloadcache"
|
|
|
19
|
|
3
|
20 cd \$CONDA_PREFIX && [[ -d vep_cache ]] || mkdir vep_cache ;
|
|
0
|
21 cd bin && perl vep_install.pl
|
|
|
22 -a ac -s $veptools.species
|
|
|
23 --NO_HTSLIB
|
|
3
|
24 --CACHEDIR \$CONDA_PREFIX/vep_cache;
|
|
0
|
25 ## write the cache file downloaded
|
|
|
26 echo "CACHE DOWNLOADED YET">$output1;
|
|
3
|
27 ls \$CONDA_PREFIX/vep_cache/*/ >> $output1;
|
|
0
|
28 #end if
|
|
|
29
|
|
|
30
|
|
|
31 #if str($veptools.veptoolsselect) =="annotate"
|
|
3
|
32 perl \$CONDA_PREFIX/bin/variant_effect_predictor.pl
|
|
2
|
33 --fork 4
|
|
0
|
34 --offline
|
|
3
|
35 --dir \$CONDA_PREFIX/vep_cache
|
|
0
|
36 --force_overwrite
|
|
|
37 #if $veptools.everything.value
|
|
|
38 --everything
|
|
|
39 #end if
|
|
|
40 --species $veptools.species
|
|
|
41 --buffer_size $veptools.buffer
|
|
|
42 --vcf
|
|
|
43 --input_file $veptools.input
|
|
|
44 --output_file $output2
|
|
|
45 --stats_file stat.htm
|
|
|
46 #end if
|
|
|
47
|
|
|
48
|
|
|
49 #if str($veptools.veptoolsselect) =="vcf2maf"
|
|
|
50 ln -s $veptools.input_vcf ./input.vcf;
|
|
|
51 perl $__tool_directory__/vcf2maf.pl
|
|
|
52 --input-vcf ./input.vcf
|
|
|
53 --output-maf $output_maf
|
|
|
54 --vep-forks 1
|
|
|
55 --tumor-id $veptools.tumour_id
|
|
|
56 --normal-id $veptools.normal_id
|
|
|
57 --buffer-size $veptools.buffer
|
|
3
|
58 --vep-path \$CONDA_PREFIX/bin/
|
|
|
59 --vep-data \$CONDA_PREFIX/vep_cache
|
|
|
60
|
|
|
61
|
|
|
62
|
|
|
63
|
|
|
64
|
|
|
65 #if $veptools.reference_source.reference_source_selector == "history"
|
|
|
66 --ref-fasta $veptools.reference_source.reference
|
|
|
67 #end if
|
|
|
68 #if $veptools.reference_source.reference_source_selector == "cached"
|
|
|
69 --ref-fasta $veptools.reference_source.ref_file.fields.path
|
|
|
70 #end if
|
|
|
71
|
|
|
72 --species $veptools.species
|
|
|
73 --filter-vcf 0 ;
|
|
0
|
74
|
|
|
75 #end if
|
|
|
76 ]]>
|
|
|
77 </command>
|
|
|
78 <inputs>
|
|
|
79 <conditional name="veptools">
|
|
|
80 <param name="veptoolsselect" type="select" label="vep">
|
|
|
81 <option value="downloadcache" selected="true">vep-download-cache</option>
|
|
|
82 <option value="annotate">vep-annotate</option>
|
|
|
83 <option value="vcf2maf">vcf2maf</option>
|
|
|
84 </param>
|
|
|
85 <when value="downloadcache">
|
|
|
86 <expand macro="list-cache"/>
|
|
|
87 </when>
|
|
|
88 <when value="annotate">
|
|
|
89 <expand macro="vep-annotate-inputs-macro"/>
|
|
|
90 <expand macro="list-cache-annotate"/>
|
|
|
91 </when>
|
|
|
92 <when value="vcf2maf">
|
|
|
93 <expand macro="vcf2maf-inputs-macro"/>
|
|
|
94 <expand macro="list-vcf2maf"/>
|
|
|
95 </when>
|
|
|
96 </conditional>
|
|
|
97 </inputs>
|
|
|
98 <outputs>
|
|
|
99 <!--vep-download-cache-outputs-->
|
|
|
100 <data format="txt" name="output1" label="cache downloaded">
|
|
|
101 <filter>veptools['veptoolsselect'] == 'downloadcache'</filter>
|
|
|
102 </data>
|
|
|
103 <!--vep-annotate-outputs-->
|
|
|
104 <data format="vcf" name="output2" label="vep-annotated on ${on_string} ">
|
|
|
105 <filter>veptools['veptoolsselect'] == 'annotate'</filter>
|
|
|
106 </data>
|
|
|
107 <data format="html" name="stat" from_work_dir="stat.htm" label="stat on ${on_string}">
|
|
|
108 <filter>veptools['veptoolsselect'] == 'annotate'</filter>
|
|
|
109 </data>
|
|
|
110 <!--vcf2maf-outputs-->
|
|
|
111 <data name="output_maf" format="maf" label="vcf2maf on ${on_string} ">
|
|
|
112 <filter>veptools['veptoolsselect'] == 'vcf2maf'</filter>
|
|
|
113 </data>
|
|
|
114 </outputs>
|
|
|
115 <stdio>
|
|
|
116 <exit_code range="1:" level="fatal" description="Failure" />
|
|
|
117 </stdio>
|
|
|
118 <citations>
|
|
|
119 <citation type="doi">10.1186/s13059-016-0974-4</citation>
|
|
|
120 </citations>
|
|
|
121 <help>
|
|
|
122 **IMPORTANT**
|
|
|
123 before running vep_annotate or vcf2maf tool for the first time you have to download the cache file using vep_download_cache
|
|
|
124
|
|
|
125 **what it does**
|
|
|
126
|
|
|
127 - **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.
|
|
|
128
|
|
|
129 - **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.
|
|
|
130
|
|
|
131 - **vcf2maf** convert vcf in MAF format calling vep_annotate.
|
|
|
132
|
|
|
133 </help>
|
|
|
134 </tool>
|