view dnadiff.xml @ 4:5561a1193611 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mummer4 commit 026db7297e987c1b7ce7f5dd4f8746d1bd435538
author iuc
date Mon, 18 Mar 2024 12:40:51 +0000
parents c9685bc0407c
children
line wrap: on
line source

<tool id="mummer_dnadiff" name="DNAdiff" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
    <description>Evaluate similarities/differences between two sequences</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="bio_tools"/>
    <expand macro="requirements" />
    <command detect_errors="exit_code">
        <![CDATA[
        ln -s $reference_sequence reference.fa &&
        ln -s $query_sequence query.fa &&
        dnadiff
            'reference.fa' 'query.fa'

        ]]>
    </command>
    <inputs>
        <param name="reference_sequence" type="data" format="fasta" label="Reference Sequence" help="FastA or multi-FastA" />
        <param name="query_sequence" type="data" format="fasta" label="Query Sequence(s)" help="FastA or multi-FastA" />
        <param name="report_only" type="select" label="Output only the general report file?" help="Select no to output all output files">
            <option value="yes">YES</option>
            <option value="no">NO</option>
        </param>
    </inputs>
    <outputs>
        <data name="report" format="txt" from_work_dir="out.report" label="${tool.name} on ${on_string}: report" />
        <data name="delta" format="tabular" from_work_dir="out.delta" label="${tool.name} on ${on_string}: delta">
            <filter> report_only == 'no'</filter>
        </data>
        <data name="delta1" format="tabular" from_work_dir="out.1delta" label="${tool.name} on ${on_string}: 1delta" >
            <filter> report_only == 'no' </filter>
        </data>
        <data name="mdelta" format="tabular" from_work_dir="out.mdelta" label="${tool.name} on ${on_string}: mdelta" >
            <filter> report_only == 'no' </filter>
        </data>
        <data name="coords1" format="tabular" from_work_dir="out.1coords" label="${tool.name} on ${on_string}: 1coords" >
            <filter> report_only == 'no' </filter>
            <actions>
                    <action name="column_names" type="metadata" default="[S1], [E1], [S2], [E2], [LEN 1], [LEN 2], [% IDY], [LEN R], [LEN Q], [COV R], [COV Q], [REF TAG], [QUERY TAG]" />
            </actions>
        </data>
        <data name="mcoords" format="tabular" from_work_dir="out.mcoords" label="${tool.name} on ${on_string}: mcoords" >
            <filter> report_only == 'no' </filter>
            <actions>
                    <action name="column_names" type="metadata" default="[S1], [E1], [S2], [E2], [LEN 1], [LEN 2], [% IDY], [LEN R], [LEN Q], [COV R], [COV Q], [REF TAG], [QUERY TAG]" />
            </actions>
        </data>
        <data name="snps" format="tabular" from_work_dir="out.snps" label="${tool.name} on ${on_string}: snps" >
            <filter> report_only == 'no' </filter>
            <actions>
                <action name="column_names" type="metadata" default="[P1], [REF SUB], [QUERY SUB], [P2], [BUFF], [DIST], [LEN REF], [LEN QUERY], [REF FRAME], [QUERY FRAME], [REF TAG], [QUERY TAG]" />
            </actions>
        </data>
        <data name="rdiff" format="tabular" from_work_dir="out.rdiff" label="${tool.name} on ${on_string}: rdiff" >
            <filter> report_only == 'no' </filter>
            <actions>
                <action name="column_names" type="metadata" default="Seq ID, Feature Type, Feature Start, Feature End, Feature Length" />
            </actions>
        </data>
        <data name="qdiff" format="tabular" from_work_dir="out.qdiff" label="${tool.name} on ${on_string}: qdiff" >
            <filter> report_only == 'no' </filter>
            <actions>
                <action name="column_names" type="metadata" default="Seq ID, Feature Type, Feature Start, Feature End, Feature Length" />
            </actions>
        </data>
    </outputs>
    <tests>
        <test  expect_num_outputs="9">
            <param name="reference_sequence" ftype="fasta" value="human_aqp3.fasta" />
            <param name="query_sequence" ftype="fasta" value="mouse_aqp3.fasta"/>
            <param name="report_only" value="no" />
            <output name="report" ftype="txt" compare="diff" sort="true" lines_diff="2" value="report.txt"/>
            <output name="delta" ftype="tabular" compare="diff" lines_diff="2" value="delta.txt"/>
            <output name="delta1" ftype="tabular" compare="diff" lines_diff="2" value="1delta.txt"/>
            <output name="mdelta" ftype="tabular" compare="diff" lines_diff="2" value="mdelta.txt"/>
            <output name="coords1" ftype="tabular" compare="diff" value="1coords.txt"/>
            <output name="mcoords" ftype="tabular" compare="diff" value="mcoords.txt"/>
            <output name="snps" ftype="tabular" compare="diff" value="snps.txt"/>
            <output name="rdiff" ftype="tabular" compare="diff" value="rdiff.txt"/>
            <output name="qdiff" ftype="tabular" compare="diff" value="qdiff.txt"/>
        </test>
    </tests>
     <help><![CDATA[
This script is a wrapper around nucmer that builds an alignment using default parameters, and runs many of nucmer's helper scripts to process the output and report alignment statistics, SNPs, breakpoints, etc. It is designed for evaluating the sequence and structural similarity of two highly similar sequence sets. E.g. comparing two different assemblies of the same organism, or comparing two strains of the same species.

**Output files:**
    * report: Summary of alignments, differences and SNPs
    * delta: Standard nucmer alignment output
    * 1delta: 1-to-1 alignment from delta-filter -1
    * mdelta: M-to-M alignment from delta-filter -m
    * 1coords: 1-to-1 coordinates from show-coords -THrcl .1delta
    * mcoords: M-to-M coordinates from show-coords -THrcl .mdelta
    * snps: SNPs from show-snps -rlTHC .1delta
    * rdiff: Classified ref breakpoints from show-diff -rH .mdelta
    * qdiff: Classified qry breakpoints from show-diff -qH .mdelta
    ]]></help>
    <expand macro="citation" />
</tool>