annotate dnadiff.xml @ 0:491b007eec5d draft default tip

Uploaded
author greg
date Mon, 27 Feb 2023 20:02:43 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
491b007eec5d Uploaded
greg
parents:
diff changeset
1 <tool id="mummer_dnadiff" name="DNAdiff" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
491b007eec5d Uploaded
greg
parents:
diff changeset
2 <description>Evaluate similarities/differences between two sequences</description>
491b007eec5d Uploaded
greg
parents:
diff changeset
3 <macros>
491b007eec5d Uploaded
greg
parents:
diff changeset
4 <import>macros.xml</import>
491b007eec5d Uploaded
greg
parents:
diff changeset
5 </macros>
491b007eec5d Uploaded
greg
parents:
diff changeset
6 <expand macro="bio_tools"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
7 <expand macro="requirements"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
8 <command detect_errors="exit_code">
491b007eec5d Uploaded
greg
parents:
diff changeset
9 <![CDATA[
491b007eec5d Uploaded
greg
parents:
diff changeset
10 #if $reference_source.reference_source_selector == 'history':
491b007eec5d Uploaded
greg
parents:
diff changeset
11 ln -f -s '$reference_source.reference_sequence' reference.fa &&
491b007eec5d Uploaded
greg
parents:
diff changeset
12 #else:
491b007eec5d Uploaded
greg
parents:
diff changeset
13 ln -f -s '$reference_source.reference_sequence.fields.path' reference.fa &&
491b007eec5d Uploaded
greg
parents:
diff changeset
14 #end if
491b007eec5d Uploaded
greg
parents:
diff changeset
15 ln -s $query_sequence query.fa &&
491b007eec5d Uploaded
greg
parents:
diff changeset
16 dnadiff 'reference.fa' 'query.fa'
491b007eec5d Uploaded
greg
parents:
diff changeset
17 ]]>
491b007eec5d Uploaded
greg
parents:
diff changeset
18 </command>
491b007eec5d Uploaded
greg
parents:
diff changeset
19 <inputs>
491b007eec5d Uploaded
greg
parents:
diff changeset
20 <conditional name="reference_source">
491b007eec5d Uploaded
greg
parents:
diff changeset
21 <param name="reference_source_selector" type="select" label="Select a reference genome from your history or select a cached reference genome?">
491b007eec5d Uploaded
greg
parents:
diff changeset
22 <option value="cached">Select a cached reference genome</option>
491b007eec5d Uploaded
greg
parents:
diff changeset
23 <option value="history">Select a reference genome from the history and build the index</option>
491b007eec5d Uploaded
greg
parents:
diff changeset
24 </param>
491b007eec5d Uploaded
greg
parents:
diff changeset
25 <when value="cached">
491b007eec5d Uploaded
greg
parents:
diff changeset
26 <param name="reference_sequence" type="select" label="Using reference genome" help="Select genome from the list">
491b007eec5d Uploaded
greg
parents:
diff changeset
27 <options from_data_table="all_fasta">
491b007eec5d Uploaded
greg
parents:
diff changeset
28 <filter type="sort_by" column="2"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
29 <validator type="no_options" message="No reference genomes are available"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
30 </options>
491b007eec5d Uploaded
greg
parents:
diff changeset
31 <validator type="no_options" message="A cached reference genome is not available for the build associated with the selected input file"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
32 </param>
491b007eec5d Uploaded
greg
parents:
diff changeset
33 </when>
491b007eec5d Uploaded
greg
parents:
diff changeset
34 <when value="history">
491b007eec5d Uploaded
greg
parents:
diff changeset
35 <param name="reference_sequence" type="data" format="fasta" label="Use the following dataset as the reference genome" help="You can upload a FASTA or multi-Fasta file to your history and use it as reference"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
36 </when>
491b007eec5d Uploaded
greg
parents:
diff changeset
37 </conditional>
491b007eec5d Uploaded
greg
parents:
diff changeset
38 <param name="query_sequence" type="data" format="fasta" label="Query Sequence(s)" help="FastA or multi-FastA"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
39 <param name="report_only" type="select" label="Output only the general report file?" help="Select no to output all output files">
491b007eec5d Uploaded
greg
parents:
diff changeset
40 <option value="yes">YES</option>
491b007eec5d Uploaded
greg
parents:
diff changeset
41 <option value="no">NO</option>
491b007eec5d Uploaded
greg
parents:
diff changeset
42 </param>
491b007eec5d Uploaded
greg
parents:
diff changeset
43 </inputs>
491b007eec5d Uploaded
greg
parents:
diff changeset
44 <outputs>
491b007eec5d Uploaded
greg
parents:
diff changeset
45 <data name="report" format="txt" from_work_dir="out.report" label="${tool.name} on ${on_string}: report"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
46 <data name="delta" format="tabular" from_work_dir="out.delta" label="${tool.name} on ${on_string}: delta">
491b007eec5d Uploaded
greg
parents:
diff changeset
47 <filter> report_only == 'no'</filter>
491b007eec5d Uploaded
greg
parents:
diff changeset
48 </data>
491b007eec5d Uploaded
greg
parents:
diff changeset
49 <data name="delta1" format="tabular" from_work_dir="out.1delta" label="${tool.name} on ${on_string}: 1delta" >
491b007eec5d Uploaded
greg
parents:
diff changeset
50 <filter> report_only == 'no' </filter>
491b007eec5d Uploaded
greg
parents:
diff changeset
51 </data>
491b007eec5d Uploaded
greg
parents:
diff changeset
52 <data name="mdelta" format="tabular" from_work_dir="out.mdelta" label="${tool.name} on ${on_string}: mdelta" >
491b007eec5d Uploaded
greg
parents:
diff changeset
53 <filter> report_only == 'no' </filter>
491b007eec5d Uploaded
greg
parents:
diff changeset
54 </data>
491b007eec5d Uploaded
greg
parents:
diff changeset
55 <data name="coords1" format="tabular" from_work_dir="out.1coords" label="${tool.name} on ${on_string}: 1coords" >
491b007eec5d Uploaded
greg
parents:
diff changeset
56 <filter> report_only == 'no' </filter>
491b007eec5d Uploaded
greg
parents:
diff changeset
57 <actions>
491b007eec5d Uploaded
greg
parents:
diff changeset
58 <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]"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
59 </actions>
491b007eec5d Uploaded
greg
parents:
diff changeset
60 </data>
491b007eec5d Uploaded
greg
parents:
diff changeset
61 <data name="mcoords" format="tabular" from_work_dir="out.mcoords" label="${tool.name} on ${on_string}: mcoords" >
491b007eec5d Uploaded
greg
parents:
diff changeset
62 <filter> report_only == 'no' </filter>
491b007eec5d Uploaded
greg
parents:
diff changeset
63 <actions>
491b007eec5d Uploaded
greg
parents:
diff changeset
64 <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]"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
65 </actions>
491b007eec5d Uploaded
greg
parents:
diff changeset
66 </data>
491b007eec5d Uploaded
greg
parents:
diff changeset
67 <data name="snps" format="tabular" from_work_dir="out.snps" label="${tool.name} on ${on_string}: snps" >
491b007eec5d Uploaded
greg
parents:
diff changeset
68 <filter> report_only == 'no' </filter>
491b007eec5d Uploaded
greg
parents:
diff changeset
69 <actions>
491b007eec5d Uploaded
greg
parents:
diff changeset
70 <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]"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
71 </actions>
491b007eec5d Uploaded
greg
parents:
diff changeset
72 </data>
491b007eec5d Uploaded
greg
parents:
diff changeset
73 <data name="rdiff" format="tabular" from_work_dir="out.rdiff" label="${tool.name} on ${on_string}: rdiff" >
491b007eec5d Uploaded
greg
parents:
diff changeset
74 <filter> report_only == 'no' </filter>
491b007eec5d Uploaded
greg
parents:
diff changeset
75 <actions>
491b007eec5d Uploaded
greg
parents:
diff changeset
76 <action name="column_names" type="metadata" default="Seq ID, Feature Type, Feature Start, Feature End, Feature Length"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
77 </actions>
491b007eec5d Uploaded
greg
parents:
diff changeset
78 </data>
491b007eec5d Uploaded
greg
parents:
diff changeset
79 <data name="qdiff" format="tabular" from_work_dir="out.qdiff" label="${tool.name} on ${on_string}: qdiff" >
491b007eec5d Uploaded
greg
parents:
diff changeset
80 <filter> report_only == 'no' </filter>
491b007eec5d Uploaded
greg
parents:
diff changeset
81 <actions>
491b007eec5d Uploaded
greg
parents:
diff changeset
82 <action name="column_names" type="metadata" default="Seq ID, Feature Type, Feature Start, Feature End, Feature Length"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
83 </actions>
491b007eec5d Uploaded
greg
parents:
diff changeset
84 </data>
491b007eec5d Uploaded
greg
parents:
diff changeset
85 </outputs>
491b007eec5d Uploaded
greg
parents:
diff changeset
86 <tests>
491b007eec5d Uploaded
greg
parents:
diff changeset
87 <test>
491b007eec5d Uploaded
greg
parents:
diff changeset
88 <param name="reference_source_selector" value="history"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
89 <param name="reference_sequence" ftype="fasta" value="human_aqp3.fasta"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
90 <param name="query_sequence" ftype="fasta" value="mouse_aqp3.fasta"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
91 <param name="report_only" value="no"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
92 <output name="report" ftype="txt" compare="diff" sort="true" lines_diff="2" value="report.txt"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
93 <output name="delta" ftype="tabular" compare="diff" lines_diff="2" value="delta.txt"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
94 <output name="delta1" ftype="tabular" compare="diff" lines_diff="2" value="1delta.txt"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
95 <output name="mdelta" ftype="tabular" compare="diff" lines_diff="2" value="mdelta.txt"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
96 <output name="coords1" ftype="tabular" compare="diff" value="1coords.txt"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
97 <output name="mcoords" ftype="tabular" compare="diff" value="mcoords.txt"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
98 <output name="snps" ftype="tabular" compare="diff" value="snps.txt"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
99 <output name="rdiff" ftype="tabular" compare="diff" value="rdiff.txt"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
100 <output name="qdiff" ftype="tabular" compare="diff" value="qdiff.txt"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
101 </test>
491b007eec5d Uploaded
greg
parents:
diff changeset
102 <test>
491b007eec5d Uploaded
greg
parents:
diff changeset
103 <param name="reference_source_selector" value="cached"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
104 <param name="reference_sequence" ftype="fasta" value="human_aqp3"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
105 <param name="query_sequence" ftype="fasta" value="mouse_aqp3.fasta"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
106 <param name="report_only" value="no"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
107 <output name="report" ftype="txt" compare="diff" sort="true" lines_diff="2" value="report.txt"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
108 <output name="delta" ftype="tabular" compare="diff" lines_diff="2" value="delta.txt"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
109 <output name="delta1" ftype="tabular" compare="diff" lines_diff="2" value="1delta.txt"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
110 <output name="mdelta" ftype="tabular" compare="diff" lines_diff="2" value="mdelta.txt"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
111 <output name="coords1" ftype="tabular" compare="diff" value="1coords.txt"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
112 <output name="mcoords" ftype="tabular" compare="diff" value="mcoords.txt"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
113 <output name="snps" ftype="tabular" compare="diff" value="snps.txt"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
114 <output name="rdiff" ftype="tabular" compare="diff" value="rdiff.txt"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
115 <output name="qdiff" ftype="tabular" compare="diff" value="qdiff.txt"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
116 </test>
491b007eec5d Uploaded
greg
parents:
diff changeset
117 </tests>
491b007eec5d Uploaded
greg
parents:
diff changeset
118 <help><![CDATA[
491b007eec5d Uploaded
greg
parents:
diff changeset
119 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.
491b007eec5d Uploaded
greg
parents:
diff changeset
120
491b007eec5d Uploaded
greg
parents:
diff changeset
121 **Output files:**
491b007eec5d Uploaded
greg
parents:
diff changeset
122 * report: Summary of alignments, differences and SNPs
491b007eec5d Uploaded
greg
parents:
diff changeset
123 * delta: Standard nucmer alignment output
491b007eec5d Uploaded
greg
parents:
diff changeset
124 * 1delta: 1-to-1 alignment from delta-filter -1
491b007eec5d Uploaded
greg
parents:
diff changeset
125 * mdelta: M-to-M alignment from delta-filter -m
491b007eec5d Uploaded
greg
parents:
diff changeset
126 * 1coords: 1-to-1 coordinates from show-coords -THrcl .1delta
491b007eec5d Uploaded
greg
parents:
diff changeset
127 * mcoords: M-to-M coordinates from show-coords -THrcl .mdelta
491b007eec5d Uploaded
greg
parents:
diff changeset
128 * snps: SNPs from show-snps -rlTHC .1delta
491b007eec5d Uploaded
greg
parents:
diff changeset
129 * rdiff: Classified ref breakpoints from show-diff -rH .mdelta
491b007eec5d Uploaded
greg
parents:
diff changeset
130 * qdiff: Classified qry breakpoints from show-diff -qH .mdelta
491b007eec5d Uploaded
greg
parents:
diff changeset
131 ]]></help>
491b007eec5d Uploaded
greg
parents:
diff changeset
132 <expand macro="citation"/>
491b007eec5d Uploaded
greg
parents:
diff changeset
133 </tool>