view rdeval_report.xml @ 9:37d67c252fed draft default tip

planemo upload for repository https://github.com/vgl-hub/rdeval commit f7426da9edc9e2d60f52789c0abe5e590994855f
author richard-burhans
date Thu, 10 Jul 2025 18:59:09 +0000
parents fdad714d7caf
children
line wrap: on
line source

<tool id="rdeval_report" name="rdeval report" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
    <description>Read summary and figures.</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements"/>
    <command detect_errors="exit_code"><![CDATA[
    mkdir render &&
    cd render &&
    export RDEVAL_SHARE_DIR="\$(dirname \$(dirname \$(type -P rdeval)))/share/rdeval" &&
    ln -s "\$RDEVAL_SHARE_DIR/figures.Rmd" &&
    ln -s "\$RDEVAL_SHARE_DIR/rdeval_interface.R" &&
    #set $input_file_list = []
    #for $idx, $input_file in enumerate($input_files)
        ln -s '$input_file' '${idx}.rd' &&
        #silent $input_file_list.append(f"'{idx}.rd'")
    #end for
    #set $r_vector = "c(" + ",".join(input_file_list) + ")"
    #set $interactive_value = "FALSE"
    #if $interactive
        #set $interactive_value = "TRUE"
    #end if
    R -e "rmarkdown::render('figures.Rmd', output_file='$outfile', output_format='html_document', params=list(input_files=$r_vector, interactive='$interactive_value'))"
	]]></command>
    <inputs>
        <param name="input_files" type="data" format="data" multiple="true" label="Input dataset" help="RD files"/>
        <param name="interactive" type="boolean" value="true" label="interactive" help="interactive"/>
    </inputs>
    <outputs>
        <data name="outfile" format="html" label="Rdeval report"/>
    </outputs>
    <tests>
        <test expect_num_outputs="1">
            <param name="input_files" value="input1.rd"/>
            <output name="outfile" ftype="html">
                <assert_contents>
                    <has_size size="833000" delta="8330"/>
                </assert_contents>
            </output>
        </test>
    </tests>
    <help><![CDATA[
This tool creates a report containing a read summary and figures from input RD files.
    ]]></help>
    <expand macro="citations"/>
</tool>