Mercurial > repos > bgruening > hicexplorer_hicplotmatrix
diff hicPlotMatrix.xml @ 0:70cdd1d37637 draft
planemo upload for repository https://github.com/maxplanck-ie/HiCExplorer/tree/master/galaxy/wrapper/ commit 6a4d8b48a6504eacbb9ed7228f77117fa759286d-dirty
author | bgruening |
---|---|
date | Sun, 09 Oct 2016 17:35:10 -0400 |
parents | |
children | 8116270ba934 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hicPlotMatrix.xml Sun Oct 09 17:35:10 2016 -0400 @@ -0,0 +1,130 @@ +<tool id="hicexplorer_hicplotmatrix" name="@BINARY@" version="@WRAPPER_VERSION@.0"> + <description>Plots a HiC matrix heatmap</description> + <macros> + <token name="@BINARY@">hicPlotMatrix</token> + <import>macros.xml</import> + </macros> + <expand macro="requirements" /> + <command> +<![CDATA[ + ln -s '$matrix' input_matrix.npz.h5 && + + @BINARY@ + + --matrix input_matrix.npz.h5 + + #if $title and $title is not None: + --title '$title' + #end if + + #if $scoreName and $scoreName is not None: + --scoreName '$scoreName' + #end if + + #if $outFileName and $outFileName is not None: + --outFileName plot.png + #end if + + $perChromosome + $clearMaskedBins + + + --whatToShow $whatToShow.whatToShow_select + + + ## special: --chromosomeOrder is optional, but if given needs at least one argument + #set chroms = '" "'.join([ str($var.chromosome) for $var in $chromosomeOrder ]) + #if chroms + --chromosomeOrder "$chroms" + #end if + + #if $region and $region is not None: + --region $region + #end if + + #if $region2 and $region2 is not None: + --region2 $region2 + #end if + $log1p + $log + + #if $colorMap and $colorMap is not None: + --colorMap $colorMap + #end if + + #if $vMin and $vMin is not None: + --vMin $vMin + #end if + + #if $vMax and $vMax is not None: + --vMax $vMax + #end if + + #if $whatToShow.whatToShow_select != 'heatmap': + --zMax $zMax + #end if + +]]> + </command> + <inputs> + <param argument="--matrix" type="data" format="h5" label="Hi-C matrix to plot"/> + <param argument="--title" type="text" optional="true" label="Plot title"/> + <param argument="--scoreName" type="text" optional="true" label="Score name"/> + <param argument="--perChromosome" type="boolean" truevalue="--perChromosome" falsevalue="" checked="false" + label="Plot per chromosome" + help="Instead of plotting the whole matrix each chromosome is plotted next to the other. This parameter is not compatible with --region" /> + <param argument="--clearMaskedBins" type="boolean" truevalue="--clearMaskedBins" falsevalue="" checked="false" + label="Remove masked bins from the matrix" /> + + <conditional name="whatToShow"> + <param argument="--whatToShow" name="whatToShow_select" type="select" label="Show heatmap/3D"> + <option value="both" selected="true">Show both</option> + <option value="heatmap">Only heatmap</option> + <option value="3D">Only 3D</option> + </param> + <when value="both"> + <expand macro="zMax" /> + </when> + <when value="3D"> + <expand macro="zMax" /> + </when> + <when value="heatmap"/> + </conditional> + + <repeat name="chromosomeOrder" min="1" title="Chromosomes to include (and order to plot in):" help="This option overrides --region and --region2"> + <param name="chromosome" type="text" /> + </repeat> + + <param argument="--region" type="text" label="Plot only this region" + help="The format is chr:start-end The plotted region contains the main diagonal and is symmetric unless --region2 is given"/> + <param argument="--region2" type="text" label="If given then only the region defined by --region and --region2 is given. The format is the same as --region1"/> + <param argument="--log1p" type="boolean" truevalue="--log1p" falsevalue="" checked="false" label="Plot the log1p of the matrix values."/> + <param argument="--log" type="boolean" truevalue="--log" falsevalue="" checked="false" label="Plot the *MINUS* log of the matrix values."/> + + <expand macro="colormap" /> + + <param argument="--vMin" type="float" optional="true" label="vMin"/> + <param argument="--vMax" type="float" optional="true" label="vMax"/> + <param argument="--zMax" type="float" optional="true" label="zMax" help="For 3D plots"/> + + </inputs> + <outputs> + <data name="outFileName" from_work_dir="plot.png" format="png" label="${tool.name} on ${on_string}"/> + </outputs> + <tests> + <test> + <param name="matrix" ftype="h5" value="hicCorrectMatrix_result1.npz.h5"/> + <param name="whatToShow_select" value="heatmap"/> + <output name="outFileName" file="hicPlotMatrix_result1.png" ftype="png" compare="sim_size"/> + </test> + </tests> + <help><![CDATA[ + +**What it does** + +Plots a HiC matrix heatmap. + +]]></help> + <expand macro="citations" /> +</tool> +