view mash_screen.xml @ 3:f8e51626fc56 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mash commit c6efcbece52dec310253537b35419839746fff7f"
author iuc
date Wed, 26 Feb 2020 15:49:03 -0500
parents 7f7d8b0c8517
children
line wrap: on
line source

<tool id="mash_screen" name="mash screen" version="@TOOL_VERSION@+galaxy3" profile="19.01">
    <description>determines how well query sequences are contained within a pool of sequences</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <expand macro="version_command" />
    <command detect_errors="exit_code"><![CDATA[
        #if str( $queries_input_source.queries_input_source_selector ) == "tool_data_table":
          ln -s '$queries_input_source.queries.fields.path' queries.msh &&
        #elif str( $queries_input_source.queries_input_source_selector ) == 'history':
          ln -s '$queries_input_source.queries' queries.msh &&
        #end if
        mash screen
             $winner_takes_all
             -i $minimum_identity_to_report
             -v $maximum_p_value_to_report
             queries.msh
             #if str( $pool_input.pool_input_selector ) == "paired"
               '$pool_input.pool_1' '$pool_input.pool_2'
             #end if
             #if str( $pool_input.pool_input_selector ) == "paired_collection"
               '$pool_input.pool.forward' '$pool_input.pool.reverse'
             #end if
             #if str( $pool_input.pool_input_selector ) == "single"
               '$pool_input.pool'
             #end if
             > '$output'
    ]]></command>
    <inputs>
        <conditional name="pool_input">
            <param name="pool_input_selector" type="select" label="Single or Paired-end reads" help="Select between paired and single end data">
                <option value="paired">Paired</option>
                <option value="single">Single</option>
                <option value="paired_collection">Paired Collection</option>
            </param>
            <when value="paired">
                <param name="pool_1" type="data" format="@INTYPES@" label="Select first set of reads" help="Specify dataset with forward reads"/>
                <param name="pool_2" type="data" format="@INTYPES@" label="Select second set of reads" help="Specify dataset with reverse reads"/>
            </when>
            <when value="single">
                <param name="pool" type="data" format="@INTYPES@" label="Select fastq dataset" help="Specify dataset with single reads"/>
            </when>
            <when value="paired_collection">
                <param name="pool" format="@INTYPES@" type="data_collection" collection_type="paired" label="Select a paired collection" help="See help section for an explanation of dataset collections"/>
            </when>
        </conditional>
        <conditional name="queries_input_source">
            <param name="queries_input_source_selector" type="select" label="Select queries from your history or use one from a tool data table?" help="">
                <option value="tool_data_table">Queries from tool data table</option>
                <option selected="True" value="history">Queries from history</option>
            </param>
            <when value="tool_data_table">
                <param name="queries" type="select" label="Queries (Mash Sketch)">
                    <options from_data_table="mash_sketches"/>
                </param>
            </when>
            <when value="history">
                <param name="queries" type="data" format="msh" />
            </when>
        </conditional>
        <param name="winner_takes_all" argument="-w" type="boolean" checked="true" truevalue="-w" falsevalue="" label="'Winner takes all' to remove redundancy in the result"
            help="If this option is not enabled, every matching strain from the same species of the reference database is reported in the result."/>
        <param type="float" name="minimum_identity_to_report" argument="-i" value="0." min="-1." max="1." label="Minimum identity to report" />
        <param type="float" name="maximum_p_value_to_report" argument="-v" value="1." min="0." max="1." label="Maximum p-value to report" />
    </inputs>
    <outputs>
        <data name="output" format="tabular" />
    </outputs>
    <tests>
        <test>
            <param name="queries_input_source_selector" value="history"/>
            <param name="queries" value="NZ_MYON01000010.1.msh"/>
            <param name="pool_input_selector" value="single"/>
            <param name="pool" value="ERR024951_seqtk_sample_1000_1.fastq"/>
            <output name="output" file="mash_screen_NZ_MYON01000010.1_ERR024951_seqtk_sample_1000_1.tsv"/>
        </test>
        <test>
            <param name="queries_input_source_selector" value="tool_data_table"/>
            <param name="queries" value="test_sketch"/>
            <param name="pool_input_selector" value="single"/>
            <param name="pool" value="ERR024951_seqtk_sample_1000_2.fastq"/>
            <output name="output" file="mash_screen_NZ_MYON01000010.1_ERR024951_seqtk_sample_1000_2.tsv"/>
        </test>
        <test>
            <param name="queries_input_source_selector" value="history"/>
            <param name="queries" value="NZ_MYON01000010.1.msh"/>
            <param name="pool_input_selector" value="paired"/>
            <param name="pool_1" value="ERR024951_seqtk_sample_1000_1.fastq"/>
            <param name="pool_2" value="ERR024951_seqtk_sample_1000_2.fastq"/>
            <output name="output" file="mash_screen_NZ_MYON01000010.1_ERR024951_seqtk_sample_1000_1and2.tsv"/>
        </test>
    </tests>
    <help><![CDATA[

**What it does**

  Determine how well query sequences are contained within a pool of sequences.
  The queries must be formatted as a single Mash sketch file (.msh), created
  with the `mash sketch` command. The <pool> files can be contigs or reads, in
  fasta or fastq, gzipped or not, and "-" can be given for <pool> to read from
  standard input. The <pool> sequences are assumed to be nucleotides, and will
  be 6-frame translated if the <queries> are amino acids. The output fields are
  [identity, shared-hashes, median-multiplicity, p-value, query-ID,
  query-comment], where median-multiplicity is computed for shared hashes, based
  on the number of observations of those hashes within the pool.
  ]]></help>
    <expand macro="citations"/>
</tool>