view hicup_deduplicator.xml @ 4:46e5b4782715 draft

planemo upload for repository https://github.com/joachimwolff/galaxytools/tree/hicup/tools/hicup commit 22eec1b3b20b788e762837c02488f332f831fab3
author bgruening
date Fri, 25 May 2018 17:51:57 -0400
parents 6cc9a607f899
children a5934ac7c399
line wrap: on
line source

<tool id="hicup_deduplicator" name="Hicup Deduplicator" version="@VERSION@.0" profile="18.01">
    <description>removes duplicated di-tags (retaining one copy of each) from the data set.</description>
    <macros>
        <import>hicup_macros.xml</import>
    </macros>
    <expand macro="requirements_hicup" />
    <command detect_errors="exit_code"><![CDATA[
        #if $input_file.ext != 'sam':
            ln -s '$input_file' input.bam  &&
        #end if
        hicup_deduplicator --zip --quiet
        #if $input_file.ext != 'sam':
            input.bam
        #else
            '$input_file'
        #end if
    ]]></command>
    <inputs>
        <param name="input_file" type="data" format="qname_sorted.bam,sam" label="Input file(s)" help="Input files in BAM or SAM format."/>
    </inputs>
    <outputs>
        <data name="dedup_result" format="qname_sorted.bam" label="Deduplicator Result" from_work_dir="*dedup*.bam" />
        <data name="cis_trans_piechart" format="svg" from_work_dir="*deduplicator_cis_trans_piechart.svg" label="Hicup Deduplicator Cis Trans Piechart.svg"/>
        <data name="uniques_barchart" format="svg" from_work_dir="*deduplicator_uniques_barchart.svg" label="Hicup Deduplicator Uniques Barchart.svg" />
        <data name="hicup_deduplicator_summary" format="txt" from_work_dir="hicup_deduplicator_summary*.txt" label="Hicup Deduplicator Summary" />
    </outputs>
    <tests>
        <test>
            <param name="input_file" value="dataset1_2.filt.bam" ftype="qname_sorted.bam"/>
            <output name="dedup_result" file="dataset1_2.hicup.bam" lines_diff="5" ftype="qname_sorted.bam"/>
            <output name="cis_trans_piechart" file="dataset1_2.filt.bam.deduplicator_cis_trans_piechart.svg" ftype="svg" lines_diff="1000"/>
            <output name="uniques_barchart" file="dataset1_2.filt.bam.deduplicator_uniques_barchart.svg" ftype="svg" lines_diff="1000"/>
            <output name="hicup_deduplicator_summary" file="hicup_deduplicator_summary.txt" lines_diff="2"/>
        </test>
    </tests>
    <help><![CDATA[

    For help please consult the documentation of HiCUP: http://www.bioinformatics.babraham.ac.uk/projects/hicup/overview/

    To get more information about the deduplicator visit: http://www.bioinformatics.babraham.ac.uk/projects/hicup/scripts_description/#Deduplicator
    ]]></help>
    <expand macro="citation_hicup" />
</tool>