view recetox_aplcms_compute_template.xml @ 2:ca19ce8c2801 draft

planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 724ecb1b81ebd8a67488b8a9397177b2ff0357db
author recetox
date Wed, 24 May 2023 14:49:52 +0000
parents 38469e025939
children 51e37adf988f
line wrap: on
line source

<tool id="recetox_aplcms_compute_template" name="recetox-aplcms - compute template" version="@TOOL_VERSION@+galaxy0">
    <description>compute retention time correction template feature table</description>
    <macros>
        <import>macros.xml</import>
        <import>help.xml</import>
    </macros>
    <expand macro="creator"/>
    <expand macro="requirements"/>

    <command detect_errors="aggressive"><![CDATA[
        Rscript -e 'source("${__tool_directory__}/utils.R")' -e 'source("${run_script}")'
    ]]></command>
    <configfiles>
         <configfile name="run_script"><![CDATA[
              #set filenames = str("', '").join([str($f) for $f in $files])
              feature_tables <- load_parquet_collection(c('$filenames'))

              template_features <- compute_template(feature_tables)

              save_data_as_parquet_file(template_features, '$output_file')
         ]]></configfile>
    </configfiles>

    <inputs>
        <param name="files" type="data_collection" collection_type="list" format="parquet" label="Input data"
               help="Table containing clustered features." />
    </inputs>

    <outputs>
        <data label="${tool.name} on ${on_string}" name="output_file" format="parquet" />
    </outputs>

    <tests>

    </tests>

    <help>
        <![CDATA[
            @COMPUTE_TEMPLATE_HELP@

            @GENERAL_HELP@
            
        ]]>
    </help>

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