view dr-disco_bam-extract.xml @ 4:3de621c44cf9 draft

planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/galaxytools-emc/tree/master/tools/dr-disco commit 272a4e52b9b11adee8d681a2e84802e945d1112a
author erasmus-medical-center
date Thu, 14 Sep 2017 04:30:12 -0400
parents 5348cfd3ba5c
children 922b52cf9b35
line wrap: on
line source

<tool id="dr_disco_bam_extract" name="Dr. Disco (bam-extract)" version="@TOOL_VERSION@-g0">
    <description>Extracts reads from two targeted regions</description>

    <macros>
        <import>macros.xml</import>
    </macros>
    
    <expand macro="requirements" />
    <expand macro="version_command"/>
    
    <command detect_errors="exit_code"><![CDATA[
        dr-disco bam-extract
            '$region1'
            '$region2'
            '$input_alignment'
            '$output'
    ]]></command>

    <inputs>
        <param name="input_alignment" type="data" format="bam" label="Discordant alignment file of STAR)" />
        <param name="region1" type="text" value="chr21:39737183-40035618" label="Genomic region 1" />
        <param name="region2" type="text" value="chr21:42834478-42882085" label="Genomic region 2" />
    </inputs>

    <outputs>
        <data name="output" format="bam" label="${tool.name} on ${input_alignment.name}" />
    </outputs>
    
    <tests>
        <test>
            <param name="input_alignment" value="bam_extract.bam" />
            <param name="region1" value="chr21:39737183-40035618" />
            <param name="region2" value="chr21:42834478-42882085" />
            
            <output name="output" file="bam_extract.bam" />
        </test>
        <test>
            <param name="input_alignment" value="bam_extract.bam" />
            <param name="region1" value="chr22:39737183-40035618" />
            <param name="region2" value="chr11:42834478-42882085" />
            
            <output name="output" file="bam_extract.empty.bam" />
        </test>
    </tests>
    
    <help><![CDATA[

**What it does**

Extract reads that have their mate within one of two chromosomal positions (and also takes mates that correspond to these reads)

Regions are in the format:
   chr1:123-546
    ]]></help>
    
     <expand macro="citations"/>
</tool>