view mash_screen.xml @ 4:86dec4abcea8 draft default tip

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mash commit 57309b08e7a08b6f72982f0d78cb5574616c7b67"
author iuc
date Sat, 24 Apr 2021 11:29:35 +0000
parents f8e51626fc56
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>