view macros_tests.xml @ 13:c4bde687c846 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/circos commit 0cfd88d16b0b20a66d4b21b037ddee6a8c440d88
author iuc
date Wed, 12 Apr 2023 15:09:05 +0000
parents 290a11559985
children
line wrap: on
line source

<?xml version="1.0"?>
<macros>
    <xml name="test_cases">
        <tests>
            <test>
                <section name="reference_genome">
                    <conditional name="ref">
                        <param name="ref_source" value="history" />
                        <param name="genome_fasta" value="1/input.fa" />
                    </conditional>
                </section>

                <section name="outputs">
                    <param name="png" value="yes" />
                    <param name="svg" value="yes" />
                </section>

                <output name="output_png" file="0/out.png" compare="sim_size" delta="15000" ftype="png"/>
                <output name="output_svg" file="0/out.svg" compare="sim_size" delta="15000" ftype="svg"/>
            </test>

            <test expect_failure="true">
                <section name="reference_genome">
                    <conditional name="ref">
                        <param name="ref_source" value="history" />
                        <param name="genome_fasta" value="too-many.fa" />
                    </conditional>
                </section>
            </test>

            <test>
                <section name="reference_genome">
                    <conditional name="ref">
                        <param name="ref_source" value="history" />
                        <param name="genome_fasta" value="1/input.fa" />
                    </conditional>
                </section>

                <section name="outputs">
                    <param name="svg" value="yes" />
                </section>

                <section name="ideogram">
                    <param name="units" value="kb" />
                </section>

                <section name="ticks">
                    <repeat name="tick_group">
                        <param name="spacing" value="1" />
                    </repeat>
                    <repeat name="tick_group">
                        <param name="spacing" value="5" />
                        <conditional name="ticks">
                            <param name="show_tick_labels" value="yes" />
                            <param name="format" value="%.1f" />
                        </conditional>
                    </repeat>
                </section>

                <section name="sec_tdd">
                    <repeat name="data">
                        <param name="r0" value="0.8" />
                        <param name="r1" value="0.9" />
                        <conditional name="plot_format">
                            <param name="plot_format_select" value="histogram" />
                            <param name="data_source" value="1/sine.tab" />
                        </conditional>
                    </repeat>
                    <repeat name="data">
                        <param name="r0" value="0.7" />
                        <param name="r1" value="0.8" />
                        <conditional name="plot_format">
                            <param name="plot_format_select" value="scatter" />
                            <param name="data_source" value="1/sine.tab" />
                        </conditional>
                    </repeat>
                    <repeat name="data">
                        <param name="r0" value="0.6" />
                        <param name="r1" value="0.7" />
                        <conditional name="plot_format">
                            <param name="plot_format_select" value="tile" />
                            <param name="data_source" value="1/tiles.bed" />
                        </conditional>
                    </repeat>
                </section>

                <section name="sec_links">
                    <repeat name="data">
                        <param name="radius" value="0.59" />
                        <param name="data_source" value="1/links.txt"/>
                        <conditional name="linktype">
                            <param name="ribbon" value="yes" />
                        </conditional>
                    </repeat>
                </section>

                <!-- Outputs -->
                <output name="output_png" file="1/out.png" compare="sim_size" delta="15000" ftype="png"/>
                <output name="output_svg" file="1/out.svg" compare="sim_size" delta="15000" ftype="svg"/>
            </test>
            <test>
                <section name="reference_genome">
                    <conditional name="ref">
                        <param name="ref_source" value="history" />
                        <param name="genome_fasta" value="1/input.fa" />
                    </conditional>
                </section>

                <section name="outputs">
                    <param name="tar" value="yes" />
                    <param name="png" value="no" />
                    <param name="svg" value="no" />
                </section>

                <output name="output_tar" file="2/out.tar" compare="sim_size" delta="15000"/>
            </test>
            <test>
                <section name="reference_genome">
                    <conditional name="ref">
                        <param name="ref_source" value="karyotype" />
                        <param name="input_karyotype" value="3/chrom.tab" />
                    </conditional>
                </section>

                <section name="outputs">
                    <param name="png" value="yes" />
                </section>

                <output name="output_tar" file="3/out.png" compare="sim_size" delta="15000"/>
            </test>
        </tests>
    </xml>
</macros>