view data_manager/mash_sketch_builder.xml @ 5:48fedda39b70 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_mash_sketch_builder/ commit 05fb8d8428ce9bc84837bb4043018ab2135f5727-dirty"
author dfornika
date Mon, 24 Feb 2020 18:18:33 +0000
parents d2ece5829b84
children 7941896a92e5
line wrap: on
line source

<?xml version="1.0"?>
<tool id="mash_sketch_builder" name="Mash Sketch" tool_type="manage_data" version="2.1+galaxy0" profile="18.09">
    <description>builder</description>
    <requirements>
        <requirement type="package" version="2.1">mash</requirement>
        <requirement type="package" version="3.7">python</requirement>
    </requirements>
    <version_command>mash --version</version_command>
    <command detect_errors="exit_code">
    <![CDATA[
        python '$__tool_directory__/mash_sketch_builder.py'
          '${out_file}'
          #if str( $input_sequence_source.input_sequence_source_selector ) == "tool_data_table":
            --fasta '${input_sequence_source.input_sequence.fields.path}'
          #elif str( $input_sequence_source.input_sequence_source_selector ) == 'history':
            --fasta '${input_sequence_source.input_sequence}'
          #end if
          --sketch-name '${sketch_name}'
          --sketch-size '${sketch_size}'
          --kmer-size '${kmer_size}'

    ]]>
    </command>
    <inputs>
        <conditional name="input_sequence_source">
            <param name="input_sequence_source_selector" type="select"
                   label="Select a sequence from your history or use one from a tool data table?">
                <option value="tool_data_table">Sequence from tool data table</option>
                <option value="history">Sequence from history</option>
            </param>
            <when value="tool_data_table">
                <param name="input_sequence" type="select" label="Source FASTA Sequence">
                    <options from_data_table="all_fasta"/>
                </param>
            </when>
            <when value="history">
                <param name="input_sequence" type="data" format="tabular" label="Input sequence" help=""/>
            </when>
        </conditional>
        <param type="text" name="sketch_name" label="Sketch name" />
        <param type="integer" name="sketch_size" value="1000" min="10" max="1000000" label="Sketch size" />
        <param type="integer" name="kmer_size" value="21" min="1" max="32" label="kmer size" />
    </inputs>
    <outputs>
        <data name="out_file" format="data_manager_json" />
    </outputs>
    <tests>
        <test>
            <param name="assembly" value="test_assembly.fasta"/>
            <param name="sketch_name" value="Test Sketch" />
            <output name="out_file" value="mash_sketch_data_manager.json" />
        </test>
    </tests>
    <help>
    </help>
    <citations>
        <citation type="doi">10.1186/s13059-016-0997-x</citation>
    </citations>
</tool>