view scHicPlotConsensusMatrices.xml @ 2:95b1216e1e70 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/schicexplorer commit d350f8e73ae518245a21f9720f8282f06eb9cc5d
author iuc
date Fri, 14 Apr 2023 14:25:56 +0000
parents 259899fbb6ae
children
line wrap: on
line source

<tool id="schicexplorer_schicplotconsensusmatrices" name="@BINARY@" version="@TOOL_VERSION@.1" profile="@PROFILE@">
    <description>plot single-cell Hi-C interaction matrices cluster consensus matrices</description>
    <macros>
        <token name="@BINARY@">scHicPlotConsensusMatrices</token>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <command detect_errors="exit_code"><![CDATA[
        @BINARY@

        --matrix $matrix_scooler
        #if $chromosomes:
            #set $chromosome = ' '.join([ '\'%s\'' % $chrom for $chrom in str($chromosomes).split(' ') ])
            --chromosomes $chromosome
        #end if
        
        #if $colormap:
            --colorMap $colormap
        #end if
        #if $dpi:
            --dpi $dpi
        #end if 
        --outFileName plot.$image_file_format

        --threads @THREADS@

        && mv plot.$image_file_format plot

    ]]></command>
    <inputs>
        <expand macro="matrix_scooler_macro"/>
        <param name='chromosomes' type='text' label='List of chromosomes to consider' help='Please separate the chromosomes by space'/>
        <expand macro="colormap" />
        <param name='dpi' type='integer' label='DPI for image' help='Change the default resolution of the plot.' optional='true'/>
        
        <param name="image_file_format" type="select" label="Image output format">
            <option value="png" selected="True">png</option>
            <option value="svg">svg</option>
            <option value="pdf">pdf</option>
        </param>
        
    </inputs>
    <outputs>
        <data name='output_plot' from_work_dir='plot' format='png' label='Consensus matrix plot on ${on_string}'>
            <change_format>
                <when input="image_file_format" value="svg" format="svg" />
                <when input="image_file_format" value="pdf" format="pdf" />
            </change_format>
        </data>
    </outputs>
    <tests>
        <test>
            <param name='matrix_scooler' value='scHicConsensusMatrices/consensus_matrix.scool' />
            <param name="image_file_format" value="png" />
            <param name="dpi" value="300" />
            <output name="output_plot" file="scHicPlotConsensusMatrices/plot.png" ftype="png" compare="sim_size" delta="35000"/>        
        </test>
         <test>
            <param name='matrix_scooler' value='scHicConsensusMatrices/consensus_matrix.scool' />
            <param name="image_file_format" value="png" />
            <param name="dpi" value="300" />
            <param name="chromosomes" value="chr1 chr2" />

            <output name="output_plot" file="scHicPlotConsensusMatrices/plot_chr1_chr2.png" ftype="png" compare="sim_size" delta="35000"/>        
        </test>
       
    </tests>
    <help><![CDATA[

Plot consensus matrices
=======================

scHicPlotConsensusMatrices plots the consensus (average) matrix of a cluster. This tool is useful to compare the single cell clusters.

.. image:: $PATH_TO_IMAGES/consensus_svl_spectral.png
   :width: 50%

For more information about scHiCExplorer please consider our documentation on readthedocs.io_

.. _readthedocs.io: http://schicexplorer.readthedocs.io/
]]></help>
    <expand macro="citations" />

</tool>