view vegan_fisher_alpha.xml @ 3:0148e5cf20b2 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit f93edebf6c946402f105f0622aacb0baa216a70c
author iuc
date Fri, 15 Mar 2024 15:26:28 +0000
parents f9966e11885b
children
line wrap: on
line source

<tool id="vegan_fisher_alpha" name="Vegan Fisher Alpha" version="@TOOL_VERSION@">
    <description>
        index
    </description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="bio.tools_xrefs" />
    <expand macro="requirements" />
    <expand macro="stdio" />
    <expand macro="version_command" />
    <command><![CDATA[
        Rscript "${vegan_fisher_alpha_script}"
    ]]>
    </command>
    <configfiles>
        <configfile name="vegan_fisher_alpha_script"><![CDATA[
@RSCRIPT_PREAMBLE@
@RSCRIPT_LOAD_TABULAR_FILE@

write.table( fisher.alpha( input_abundance, MARGIN = ${margin} ), "${output_fisher_alpha}", quote=FALSE, col.names=NA, sep = "\t")
    ]]>
        </configfile>
    </configfiles>
    <inputs>
        <expand macro="params_load_tabular_file" />
        <param name="margin" type="integer" value="1" label="Margin for which the index is computed"/>
    </inputs>
    <outputs>
        <data format="tabular" name="output_fisher_alpha" />
    </outputs>
    <tests>
        <test expect_num_outputs="1">
            <param name="input_abundance" ftype="tabular" value="vegan_in.tabular"/>
            <param name="species_column" value="6"/>
            <param name="sample_columns" value="2"/>
            <param name="margin" value="1"/>
            <output name="output_fisher_alpha" ftype="tabular" file="output_fisher_alpha.tabular" />
        </test>
    </tests>
    <help>
        <![CDATA[
Calculate Diversity index using vegan and selected method.
        ]]>
    </help>
    <expand macro="citations" />
</tool>