view hicSumMatrices.xml @ 4:56dda810d0c2 draft

planemo upload for repository https://github.com/maxplanck-ie/HiCExplorer/tree/master/galaxy/wrapper/ commit 1beb50fdb3f5f8fd60e3b9c3d44964d70075616d
author iuc
date Mon, 27 Nov 2017 08:39:56 -0500
parents 81d637d11316
children 01803c0d5952
line wrap: on
line source

<tool id="hicexplorer_hicsummatrices" name="@BINARY@" version="@WRAPPER_VERSION@.0">
    <description>combines Hi-C matrices of the same size</description>
    <macros>
        <token name="@BINARY@">hicSumMatrices</token>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <command detect_errors="exit_code"><![CDATA[

        #for $counter, $m in enumerate($matrices):
            ln -s '$m' ${counter}.npz.h5 &&
        #end for

        #set $m = '" "'.join([ '%s.npz.h5' % $counter for $counter, $matrix in enumerate($matrices) ])
        hicSumMatrices
            --matrices "$m"
            --outFileName ./out.npz.h5
]]>
    </command>
    <inputs>
        <param argument="--matrices" type="data" format="h5" multiple="True"
            label="Matrices to combine" help="Needs to have the same shape"/>
    </inputs>
    <outputs>
        <data name="outFileName" from_work_dir="out.npz.h5" format="h5"/>
    </outputs>
    <tests>
        <test>
            <param name="matrices" value="hicCorrectMatrix_result1.npz.h5,hicCorrectMatrix_result1.npz.h5"/>
            <output name="outFileName" file="hicSumMatrices_result1.npz.h5" ftype="h5" compare="sim_size" delta="70000"/>
        </test>
    </tests>
    <help><![CDATA[

**What it does**

Combines Hi-C matrices of the same size.

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