view hicPlotDistVsCounts.xml @ 0:6abd5817e0cd draft

planemo upload for repository https://github.com/maxplanck-ie/HiCExplorer/tree/master/galaxy/wrapper/ commit 2f347b0756d720114f037ed1ff9ba4836e1b3b04
author bgruening
date Thu, 30 Mar 2017 02:40:49 -0400
parents
children f768ce54ee2a
line wrap: on
line source

<tool id="hicexplorer_hicplotdistvscounts" name="@BINARY@" version="@WRAPPER_VERSION@.0">
    <description>distance vs HiC counts plot per chromosome</description>
    <macros>
        <token name="@BINARY@">hicPlotDistVsCounts</token>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <command detect_errors="aggressive"><![CDATA[
        ln -s '$matrix' input_matrix.npz.h5 &&
        @BINARY@
            --matrix input_matrix.npz.h5
            $skipDiagonal
            --plotFile plot.png
            #if $plotTitle and $plotTitle is not None:
                --plotTitle '$plotTitle'
            #end if

            ## special: --chromosomeExclude is optional, but if given needs at least one argument
            #set chroms = '" "'.join([ str($var.chromosomeExclude) for $var in $chromosomeExclude ])
            #if $chromosomeExclude:
                --chromosomeExclude $chroms
            #end if
]]>
    </command>
    <inputs>
        <param argument="--matrix" type="data" format="h5" label="Hi-C normalized/corrected matrix"/>

        <param argument="--skipDiagonal" type="boolean" truevalue="--skipDiagonal" falsevalue="" label="Exclude diagonal counts" />
        <param argument="--plotTitle" type="text" optional="true" label="Plot title"/>
        <repeat name="chromosomeExclude" min="0" title="Chromosomes to exclude">
            <param argument="--chromosomeExclude" type="text" value="" />
        </repeat>

    </inputs>
    <outputs>
        <data name="plotFile" from_work_dir="plot.png" format="png" label="${tool.name} on ${on_string}"/>
    </outputs>
    <tests>
        <test>
            <param name="matrix" ftype="h5" value="small_test_matrix_50kb_res.h5"/>
            <param name="skipDiagonal" value="False"/>
            <output name="plotFile" file="hicPlotDistVsCounts_result1.png" ftype="png" compare="sim_size"/>
        </test>
        <test>
            <param name="matrix" ftype="h5" value="small_test_matrix_50kb_res.h5"/>
            <param name="skipDiagonal" value="False"/>
            <param name="plotTitle" value="Excluded chrUextra"/>
            <repeat name="chromosomeExclude">
                <param name="chromosomeExclude" value="chrUextra"/>
            </repeat>
            <output name="plotFile" file="hicPlotDistVsCounts_result1.png" ftype="png" compare="sim_size"/>
        </test>
    </tests>
    <help><![CDATA[

**What it does**

This program makes a distance vs. hi-c counts plot per chromosome.


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