|
2
|
1 <tool id="data_manager_snpeff_download" name="SnpEff Download" version="3.3" tool_type="manage_data">
|
|
0
|
2 <description>Download a new database</description>
|
|
|
3 <requirements>
|
|
2
|
4 <requirement type="package" version="3.3">snpEff</requirement>
|
|
0
|
5 </requirements>
|
|
|
6 <command interpreter="python">
|
|
2
|
7 data_manager_snpEff_download.py --jar_path \$SNPEFF_JAR_PATH/snpEff.jar --config \$SNPEFF_JAR_PATH/snpEff.config
|
|
0
|
8 --genome_version "${genome_databases.fields.value}"
|
|
|
9 --organism "${genome_databases.fields.name}"
|
|
|
10 "$out_file"
|
|
|
11 </command>
|
|
|
12 <inputs>
|
|
|
13 <param name="genome_databases" type="select" label="Genome Version">
|
|
|
14 <options from_data_table="snpeff_databases"/>
|
|
|
15 </param>
|
|
|
16 </inputs>
|
|
|
17
|
|
|
18 <outputs>
|
|
|
19 <data name="out_file" format="data_manager_json" label="${tool.name} : ${genome_databases.fields.value}"/>
|
|
|
20 </outputs>
|
|
|
21 <stdio>
|
|
|
22 <exit_code range=":-1" level="fatal" description="Error: Cannot open file" />
|
|
|
23 <exit_code range="1:" level="fatal" description="Error" />
|
|
|
24 </stdio>
|
|
4
|
25 <tests>
|
|
|
26 <test>
|
|
|
27 <param name="genome_databases" value="GRCh37.71"/>
|
|
|
28 <output name="out_file">
|
|
|
29 <assert_contents>
|
|
|
30 <!-- Check that a genome was added -->
|
|
|
31 <has_text text="GRCh37.71" />
|
|
|
32 <has_text text="snpeff_regulationdb" />
|
|
|
33 <has_text text="snpeff_annotations" />
|
|
|
34 </assert_contents>
|
|
|
35 </output>
|
|
|
36 </test>
|
|
|
37 </tests>
|
|
0
|
38 <help>
|
|
|
39
|
|
|
40 This tool downloads a SnpEff database.
|
|
|
41
|
|
|
42 For details about this tool, please go to http://snpEff.sourceforge.net
|
|
|
43
|
|
|
44 </help>
|
|
|
45 </tool>
|
|
|
46
|