view hicSumMatrices.xml @ 2:2bbe234ca6ce draft

planemo upload for repository https://github.com/maxplanck-ie/HiCExplorer/tree/master/galaxy/wrapper/ commit 4d61b6bf2fed275ab38c226d0c4390b095a38251
author bgruening
date Thu, 02 Nov 2017 11:13:21 -0400
parents c4ee66c35eb6
children d387dacb6867
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>