view daa_meganizer.xml @ 2:bb2a8bd85c85 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/megan commit 5386f7bb4bf5bdd4b5303d0686c97fe5d9b99ca0"
author iuc
date Sat, 11 Dec 2021 11:52:14 +0000
parents f1b6527ba952
children 6ca88053665c
line wrap: on
line source

<tool id="megan_daa_meganizer" name="MEGAN: meganize a DIAMOND file" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
    <description>for use with MEGAN</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="bio_tools"/>
    <expand macro="requirements"/>
    <command detect_errors="exit_code"><![CDATA[
## daa-meganizer "meganizes" the input, altering
## the file itself instead of producing a separate
## output.  We'll make a copy of the input to handle
## this issue.  The input must also have a .daa file
## extension.
#set input_identifier = 'input.' + $in.ext
cp '${in}' '${input_identifier}' &&

daa-meganizer
--in '${input_identifier}'
#if $advanced_options.metaDataFile:
    --metaDataFile '$advanced_options.metaDataFile'
#end if
$advanced_options.longReads
$advanced_options.classify
--minScore $advanced_options.minScore
--maxExpected $advanced_options.maxExpected
--minPercentIdentity $advanced_options.minPercentIdentity
--topPercent $advanced_options.topPercent
--minSupportPercent $advanced_options.minSupportPercent
--minSupport $advanced_options.minSupport
--minPercentReadCover $advanced_options.minPercentReadCover
--minPercentReferenceCover $advanced_options.minPercentReferenceCover
--minReadLength $advanced_options.minReadLength
--lcaAlgorithm '$advanced_options.lcaAlgorithm'
--lcaCoveragePercent $advanced_options.lcaCoveragePercent
--readAssignmentMode '$advanced_options.readAssignmentMode'
#if $advanced_options.conFile:
    --conFile '$advanced_options.conFile'
#end if
#if $advanced_options.mapDB:
    --mapDB '$advanced_options.mapDB'
#end if
#if str($advanced_options.only) != '':
    --only '$advanced_options.only'
#end if
--threads \${GALAXY_SLOTS:-8}
--tempStoreDir '.'
&& mv '$input_identifier' '$output'
    ]]></command>
    <inputs>
        <expand macro="input_daa_param"/>
        <section name="advanced_options" title="Advanced options" expanded="false">
            <param argument="--metaDataFile" type="data" format="tabular" multiple="true" optional="true" label="Files containing metadata to be included in the output files"/>
            <expand macro="long_reads_param"/>
            <expand macro="classify_param"/>
            <expand macro="min_score_param"/>
            <expand macro="max_expected_param"/>
            <expand macro="min_percent_identity_param"/>
            <expand macro="top_percent_param"/>
            <expand macro="min_max_params"/>
            <expand macro="lca_params"/>
            <expand macro="read_assignment_mode_param"/>
            <expand macro="con_file_param"/>
            <expand macro="mapdb_param"/>
            <expand macro="only_named_classifications_param"/>
        </section>
    </inputs>
    <outputs>
        <data name="output" format="daa"/>
    </outputs>
    <tests>
        <test expect_num_outputs="1">
            <param name="in" ftype="daa" value="input.daa"/>
            <output name="output" ftype="daa">
                <assert_contents>
                    <has_size value="3500"/>
                </assert_contents>
            </output>
       </test>
    </tests>
    <help>
**What it does**

Meganizes a DIAMOND (i.e., a Direct Access Archive or DAA) file, a proprietary file format developed by PowerISO Computing
for disk image files.  The output is a DIAMOND file consisting of the original input file, but with additional blocks of
information appended to the end of the file.

    </help>
    <expand macro="citations"/>
</tool>