view blockbuster.xml @ 2:0f3d3f9f120f draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/blockbuster commit 7a097197b6a5eda0ee430b36dd8e91bd3ce1db7b
author rnateam
date Fri, 15 Jan 2016 07:52:56 -0500
parents 293c1420bcd7
children 7c7ff7a3503f
line wrap: on
line source

<tool id="blockbuster" name="blockbuster" version="0.1.1.1">
    <description>detects blocks of overlapping reads using a gaussian-distribution approach</description>
    <requirements>
        <requirement type="package" version="0.0.1.1">blockbuster</requirement>
    </requirements>
    <command>
<![CDATA[
        blockbuster.x
            -distance $distance
            -minClusterHeight $minClusterHeight
            -minBlockHeight $minBlockHeight
            -scale $scale
            -merge $merge
            -tagFilter $tagFilter
            -print $print
            $input
            > data.blockbuster;
            #if str($print)=="1"
                awk '{if ($1 ~ /^>/) print $2"\t"$3"\t"$4"\t"$1"\t"$6"\t"$5"\t"$3"\t"$4; else print $2"\t"$3"\t"$4"\tblock_"$1"\t"$6"\t"$5"\t"$3"\t"$4}' data.blockbuster
            #else if str($print)=="2"
                awk '{if ($1 ~ /^>/) print $2"\t"$3"\t"$4"\t"$1"\t"$6"\t"$5"\t"$3"\t"$4; else print $1"\t"$2"\t"$3"\t"$3"\t"$4"\t"$5"\t"$6"\t"$2"\t"$3}' data.blockbuster
            #end if
            > $output
]]>
    </command>
    <inputs>
        <param name="input" type="data" format="bed" label="BED file containing read expressions"/>
        <param name="distance" type="integer" value="40" label="minimum distance between two clusters"/>
        <param name="minClusterHeight" type="float" value="50" label="minimum height (readno) of a cluster"/>
        <param name="minBlockHeight" type="float" value="1" label="minimum height (readno) of a block"/>
        <param name="scale" type="float" value="0.5" label="scale stddev for a single read"/>
        <param name="merge" type="integer" value="0" label="merge reads with almost similar means"/>
        <param name="tagFilter" type="integer" value="0" label="skip tags with expression smaller than this value"/>
        <param name="print" type="select" label="Type of output" >
            <option value="1">blocks</option>
            <option value="2" selected="True">reads</option>
        </param>
    </inputs>

    <outputs>
        <data format="bed" name="output" label="blockbuster on ${on_string}"/>
    </outputs>
    <help>
<![CDATA[

**What it does**

Blockbuster_ detects blocks of overlapping reads using a gaussian-distribution approach.


Once short read sequences are mapped to a reference genome, one will face the problem of dividing consecutive reads into blocks to detect specific expression patterns. Due to biological variability and sequencing inaccuracies, the read arrangement does not always show exact block boundaries. The blockbuster tool automatically assigns reads to blocks and gives a unique chance to actually see the different origins where the short reads come from.

.. _Blockbuster: http://hoffmann.bioinf.uni-leipzig.de/LIFE/blockbuster.html

**Input**

Input file can be a BED file or an Segemehl output file.


]]>
    </help>
    <citations>
        <citation type="doi">10.1093/bioinformatics/btp419</citation>
    </citations>
</tool>