|
19
|
1 <tool id="download_cache" name="Get VEP Cache" version="1.0.0">
|
|
|
2 <description>
|
|
|
3 Download and Index Genomes and Reference files used by Ensemble VEP
|
|
|
4 </description>
|
|
|
5 <requirements>
|
|
|
6 <requirement type="package" version="84">ensembl_vep</requirement>
|
|
|
7 </requirements>
|
|
|
8 <command>
|
|
|
9 #if $use_mirror.value == "no":
|
|
|
10 perl \$ENSEMBL_VEP_84_INSTALL_DIR/INSTALL.pl
|
|
|
11 --AUTO cf
|
|
|
12 --SPECIES \$(echo $species_select.value | sed 's/-/\t/g' | cut -f1)
|
|
|
13 --CACHEDIR \$ENSEMBL_VEP_84_INSTALL_DIR/cache
|
|
|
14 #if "-" in $species_select.value
|
|
|
15 --ASSEMBLY \$(echo $species_select.value | sed 's/-/\t/g' | cut -f2)
|
|
|
16 #end if
|
|
|
17 ;
|
|
|
18 #else:
|
|
|
19 perl \$ENSEMBL_VEP_84_INSTALL_DIR/INSTALL.pl
|
|
|
20 --AUTO cf
|
|
|
21 --SPECIES \$(echo $species_select.value | sed 's/-/\t/g' | cut -f1)
|
|
|
22 --CACHEDIR \$ENSEMBL_VEP_84_INSTALL_DIR/cache
|
|
|
23 --CACHEURL ftp://ftp03.bcgsc.ca/public/ensembl/VEP/ --FASTAURL ftp://ftp03.bcgsc.ca/public/ensembl/
|
|
|
24 #if "-" in $species_select.value
|
|
|
25 --ASSEMBLY \$(echo $species_select.value | sed 's/-/\t/g' | cut -f2)
|
|
|
26 #end if
|
|
|
27 ;
|
|
|
28 #end if
|
|
|
29 gzip -d \$ENSEMBL_VEP_84_INSTALL_DIR/cache/\$(echo $species_select.value | sed 's/-/\t/g' | cut -f1 | sed 's/\ /_/g')/*\$(echo $species_select.value | sed 's/-/\t/g' | cut -f2)/*.fa.gz;
|
|
|
30 samtools faidx \$ENSEMBL_VEP_84_INSTALL_DIR/cache/\$(echo $species_select.value | sed 's/-/\t/g' | cut -f1 | sed 's/\ /_/g')/*\$(echo $species_select.value | sed 's/-/\t/g' | cut -f2)/*.fa;
|
|
|
31
|
|
|
32 env > $output;
|
|
|
33 </command>
|
|
|
34 <inputs>
|
|
|
35 <expand macro="genome_list" />
|
|
|
36 <param name="use_mirror" type="boolean" checked="false" label="use North American mirror site for download" display="radio" truevalue="yes" falsevalue="no"/>
|
|
|
37 </inputs>
|
|
|
38 <outputs>
|
|
|
39 <data format="txt" name="output"/>
|
|
|
40 </outputs>
|
|
|
41 <stdio>
|
|
|
42 <exit_code range="1:" level="fatal" description="Failure" />
|
|
|
43 </stdio>
|
|
|
44 <macros>
|
|
|
45 <import>ensembl_vep_macros.xml</import>
|
|
|
46 </macros>
|
|
|
47
|
|
|
48 </tool>
|