view mfassignr_findRecalSeries.xml @ 3:18e13043167d draft

planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 1e98df2131b9b5384ca2e4310f93270eae6f517c
author recetox
date Tue, 22 Oct 2024 07:25:22 +0000
parents ad4176b336dc
children 1b4881c150cc
line wrap: on
line source

<tool id="mfassignr_findRecalSeries" name="MFAssignR FindRecalSeries" version="@TOOL_VERSION@+galaxy1" profile="23.0">
    <description>Selects most suitable series for recalibration</description>
    <macros>
        <import>macros.xml</import>
        <import>help.xml</import>
    </macros>
    <edam_topics>
        <edam_topic>topic_3172</edam_topic>    
    </edam_topics>
    <edam_operations>  
        <edam_operation>operation_3627</edam_operation>  
    </edam_operations>
    <expand macro="creator" />
    <expand macro="refs" />

    <expand macro="requirements" />
    <command detect_errors="exit_code"><![CDATA[
        Rscript -e 'packageVersion("MFAssignR")' &&
        Rscript '${mfassignr_findrecalseries}'
    ]]>
    </command>
    <configfiles>
        <configfile name="mfassignr_findrecalseries"><![CDATA[
            library(dplyr)
            df <- read.table("$input_file", header=TRUE, sep="\t")
            result <- MFAssignR::FindRecalSeries(
                df = df,
                global_min = $global_min,
                global_max = $global_max,
                number_of_combinations = $number_of_combinations,
                abundance_score_threshold = $abundance_score_threshold,
                peak_distance_threshold = $peak_distance_threshold,
                coverage_threshold = $coverage_threshold,
                fill_series = $fill_series
            ) |> dplyr::rename(Series = series)
            
            write.table(result, file="$final_series", sep="\t", row.names=FALSE)
        ]]></configfile>
    </configfiles>
    <inputs>
        <expand macro="findrecalseries_param"/>
    </inputs>
    <outputs>
        <data name="final_series" format="tabular" label="Final recalibration series"/>
    </outputs>
    <tests>
        <test>
            <param name="input_file" value="recallist/recal_series.tabular"/>
            <param name="global_min" value="100"/>
            <param name="global_max" value="500"/>
            <param name="abundance_score_threshold" value="50"/>
            <param name="number_of_combinations" value="3"/>
            <param name="coverage_threshold" value="50"/>
            <param name="fill_series" value="TRUE"/>
            <output name="final_series" file="findrecalseries/selected_series.tabular"/>
        </test>
    </tests>
    <help>
        @FINDRECALSERIES_HELP@

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