0
|
1 <tool id="data_manager_fetch_gff" name="Create entries in gff data table" version="0.0.1" tool_type="manage_data">
|
|
2 <description>fetching</description>
|
|
3 <command><![CDATA[
|
|
4 python "$__tool_directory__"/data_manager_fetch_gff.py "${out_file}"
|
2
|
5 --dbkey_description ${ dbkey.get_display_text() }
|
0
|
6
|
|
7 ]]></command>
|
|
8 <inputs>
|
2
|
9 <param name="dbkey" type="genomebuild" label="DBKEY to assign to data" />
|
0
|
10 <param type="text" name="sequence_name" value="" label="Name of sequence" />
|
|
11 <param type="text" name="sequence_id" value="" label="ID for sequence" />
|
|
12 <conditional name="reference_source">
|
|
13 <param name="reference_source_selector" type="select" label="Choose the source for the reference genome">
|
|
14 <option value="url">URL</option>
|
|
15 <option value="history">History</option>
|
|
16 <option value="directory">Directory on Server</option>
|
|
17 </param>
|
|
18 <when value="url">
|
|
19 <param type="text" area="True" name="user_url" value="http://" label="URLs" optional="False" />
|
|
20 </when>
|
|
21 <when value="history">
|
|
22 <param name="input_fasta" type="data" format="fasta" label="FASTA File" multiple="False" optional="False" />
|
|
23 </when>
|
|
24 <when value="directory">
|
|
25 <param type="text" name="fasta_filename" value="" label="Full path to FASTA File on disk" optional="False" />
|
|
26 <param type="boolean" name="create_symlink" truevalue="create_symlink" falsevalue="copy_file" label="Create symlink to original data instead of copying" checked="False" />
|
|
27 </when>
|
|
28 </conditional>
|
|
29 </inputs>
|
|
30 <outputs>
|
|
31 <data name="out_file" format="data_manager_json"/>
|
|
32 </outputs>
|
|
33 <tests>
|
|
34 <!-- TODO: need some way to test that new entry was added to data table -->
|
|
35 <test>
|
|
36 <param name="dbkey" value="anoGam1"/>
|
|
37 <param name="sequence_name" value=""/>
|
|
38 <param name="sequence_desc" value=""/>
|
|
39 <param name="sequence_id" value=""/>
|
|
40 <param name="reference_source_selector" value="history"/>
|
|
41 <param name="input_fasta" value="phiX174.fasta"/>
|
|
42 <param name="sort_selector" value="as_is"/>
|
|
43 <output name="out_file" file="phiX174.data_manager_json"/>
|
|
44 </test>
|
|
45 </tests>
|
|
46 <help>
|
|
47 **What it does**
|
|
48
|
|
49 Fetches a gff file from various sources (URL, Galaxy History, or a server directory) and populates the "all_gff" data table.
|
|
50
|
|
51 ------
|
|
52
|
|
53
|
|
54
|
|
55 .. class:: infomark
|
|
56
|
|
57 **Notice:** If you leave name, description, or id blank, it will be generated automatically.
|
|
58
|
|
59 </help>
|
|
60 </tool>
|