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