view data_manager/data_manager_fetch_gff.xml @ 0:ac4fde07eaed draft

Uploaded
author ieguinoa
date Mon, 09 Jul 2018 11:58:50 -0400
parents
children c57bd7f3fb46
line wrap: on
line source

<tool id="data_manager_fetch_gff" name="Create entries in gff data table" version="0.0.1" tool_type="manage_data">
    <description>fetching</description>
    <command><![CDATA[
       python "$__tool_directory__"/data_manager_fetch_gff.py "${out_file}"
       --type $file_type
       #if str( $dbkey_source.dbkey_source_selector ) == 'existing':
       --dbkey_description ${ dbkey_source.dbkey.get_display_text() }
       #else
       --dbkey_description "${ dbkey_source.dbkey_name or $dbkey_source.dbkey }"
       #end if
        
    ]]></command>
    <inputs>
         <param name="file_type" type="select" label="GFF file with only one representative transcript per gene (for htseq-count use) or full features file">
                <option value="representative">Representative GFF</option>
                <option value="full">GFF with complete features</option>
            </param>
 
        <conditional name="dbkey_source">
            <param name="dbkey_source_selector" type="select" label="Use existing dbkey or create a new one.">
                <option value="existing" selected="True">Existing</option>
                <option value="new">New</option>
            </param>
            <when value="existing">
                <param name="dbkey" type="genomebuild" label="DBKEY to assign to data" />
            </when>
            <when value="new">
                <param type="text" name="dbkey" value="" label="dbkey" optional="False" />
                <param type="text" name="dbkey_name" value="" label="Display name for dbkey" />
            </when>
        </conditional>
        <param type="text" name="sequence_name" value="" label="Name of sequence" />
        <param type="text" name="sequence_id" value="" label="ID for sequence" />
        <conditional name="reference_source">
            <param name="reference_source_selector" type="select" label="Choose the source for the reference genome">
                <option value="url">URL</option>
                <option value="history">History</option>
                <option value="directory">Directory on Server</option>
            </param>
            <when value="url">
                <param type="text" area="True" name="user_url" value="http://" label="URLs" optional="False" />
            </when>
            <when value="history">
                <param name="input_fasta" type="data" format="fasta" label="FASTA File" multiple="False" optional="False" />
            </when>
            <when value="directory">
                <param type="text" name="fasta_filename" value="" label="Full path to FASTA File on disk" optional="False" />
                <param type="boolean" name="create_symlink" truevalue="create_symlink" falsevalue="copy_file" label="Create symlink to original data instead of copying" checked="False" />
            </when>
        </conditional>
    </inputs>
    <outputs>
        <data name="out_file" format="data_manager_json"/>
    </outputs>
    <tests>
        <!-- TODO: need some way to test that new entry was added to data table -->
        <test>
            <param name="dbkey" value="anoGam1"/>
            <param name="sequence_name" value=""/>
            <param name="sequence_desc" value=""/>
            <param name="sequence_id" value=""/>
            <param name="reference_source_selector" value="history"/>
            <param name="input_fasta" value="phiX174.fasta"/>
            <param name="sort_selector" value="as_is"/>
            <output name="out_file" file="phiX174.data_manager_json"/>
        </test>
    </tests>
    <help>
**What it does**

Fetches a gff file from various sources (URL, Galaxy History, or a server directory) and populates the "all_gff" data table.

------



.. class:: infomark

**Notice:** If you leave name, description, or id blank, it will be generated automatically.

    </help>
</tool>